Blockly to switch lights when alarm = On
Posted: Monday 25 July 2016 9:53
Hi there.
I tried creating a blockly script to make my lights turn on if the alarm is in the on state. My alarm is a simple threeway switch ("On", "Off", "Home on"), as I have not found a way to change the "armed" state of my home using a switch.
My current blockly looks like this. None of the events are ever triggered. My devices look like this Can anyone suggest how to fix the problem or suggest a Lua script alternative?
Could timers on a switch be conditional e.g. if "Alarm=On" the timer is active else it is not?
I tried creating a blockly script to make my lights turn on if the alarm is in the on state. My alarm is a simple threeway switch ("On", "Off", "Home on"), as I have not found a way to change the "armed" state of my home using a switch.
My current blockly looks like this. None of the events are ever triggered. My devices look like this Can anyone suggest how to fix the problem or suggest a Lua script alternative?
Could timers on a switch be conditional e.g. if "Alarm=On" the timer is active else it is not?