06.04.2017, 20:27
Hi,
I am also trying to write a script that will turn on the lights (object 1/1/1, value) if there is a change in object a, b, c or d (tagged "alarm"). However, this should only happen if object (2/2/2 has value 1).
The idea of the script is that it should function as kind of alarm at night. We have sensors in all doors and windows, and if the alarm is on (2/2/2, 1), and there is a change in status for one of the sensors then the lights in the bedroom (1/1/1, 50) should turn it self on to 50%.
Any help would be appreciated
Mr.D
I am also trying to write a script that will turn on the lights (object 1/1/1, value) if there is a change in object a, b, c or d (tagged "alarm"). However, this should only happen if object (2/2/2 has value 1).
The idea of the script is that it should function as kind of alarm at night. We have sensors in all doors and windows, and if the alarm is on (2/2/2, 1), and there is a change in status for one of the sensors then the lights in the bedroom (1/1/1, 50) should turn it self on to 50%.
Any help would be appreciated
Mr.D