Motion controlled light not working as expected in blocky
Posted: Saturday 30 January 2016 9:32
Hi guys.
I have a very basic blocky (below) which is supposed to activate my office light ("Light X") when my motion sensor is tripped and it is dark (and off again when motion is no longer detected). The sensor and Light are both Z-Wave and "IsDark" is a virtual switch, set to ON by timers before sunset.
The blocky only works if I remove the "Light X" checks (second "and" statement) from both "if" blocks. Otherwise, as it is below, the first "if" block works but the second one is always ignored.
Can anyone explain why this might be happening?
Domoticz Beta v2.4020.
Thanks.
I have a very basic blocky (below) which is supposed to activate my office light ("Light X") when my motion sensor is tripped and it is dark (and off again when motion is no longer detected). The sensor and Light are both Z-Wave and "IsDark" is a virtual switch, set to ON by timers before sunset.
The blocky only works if I remove the "Light X" checks (second "and" statement) from both "if" blocks. Otherwise, as it is below, the first "if" block works but the second one is always ignored.
Can anyone explain why this might be happening?
Domoticz Beta v2.4020.
Thanks.