Page 1 of 1
Why not working?
Posted: Sunday 10 September 2017 17:03
by Eddiever
I am starting with Blocky. I made a very simple script but it does not work. What am I overlooking? "Schuurdeur" is a Kerui doorsensor (open/closed). Kaku1_buitenlamp is a klikaanklikuit switch device. If used manual this light (kaku1_buitenlamp) works.
- Knipsel.PNG (8.32 KiB) Viewed 1139 times
- Knipsel1.PNG (21.08 KiB) Viewed 1139 times
Re: Why not working?
Posted: Sunday 10 September 2017 17:10
by mrf68
"Schuurdeur" is a sensor with status "open" or "closed", but you want something to happen when it has status " alarm"?? Try "schuurdeur" = "open".
Re: Why not working?
Posted: Sunday 10 September 2017 17:16
by Eddiever
Great, I did use "on" and "alarm" but didn't think of "open". This did it! Thank you.
Re: Why not working?
Posted: Sunday 10 September 2017 17:37
by SweetPants
Eddiever wrote: ↑Sunday 10 September 2017 17:16
Great, I did use "on" and "alarm" but didn't think of "open". This did it! Thank you.
When editing, you can always show "current states" of devices
Re: Why not working?
Posted: Sunday 10 September 2017 22:04
by DomoUHT
Hi,
note that when using a (eg. dummy) door contact in blocky, to set it to open you have to use ''set doorcontact = On'' (and to off for having it closed).