Hi I have a 2 garage doors that have door sensors attached to them. I set my rule so three lights in the house turn on when either of the garage doors are open.
I find that sometimes if both doors are open and one closes that my alert lights will turn off. What do I need to do so my rule is smart enough to keep the light on or do some kind of check.
/GARAGE DOOR ALARMS/
rule “willie garage door ON”
when
Item WillGarageDoorSensor received update OPEN
then
/turn tv alert lights on/
GarageAlert.sendCommand(ON)
OfficeFloorLight.sendCommand(ON)
XXmasTree.sendCommand(ON)
end
rule “willie garage door OFF”
when
Item WillGarageDoorSensor received update CLOSED
then
/turn tv alert lights off/
GarageAlert.sendCommand(OFF)
OfficeFloorLight.sendCommand(OFF)
XXmasTree.sendCommand(OFF)
end
rule “nic garage door ON”
when
Item NicGarageDoorSensor received update OPEN
then
/turn tv alert lights on/
GarageAlert.sendCommand(ON)
OfficeFloorLight.sendCommand(ON)
XXmasTree.sendCommand(ON)
end
rule “nic garage door OFF”
when
Item NicGarageDoorSensor received update CLOSED
then
/turn tv alert lights off/
GarageAlert.sendCommand(OFF)
OfficeFloorLight.sendCommand(OFF)
XXmasTree.sendCommand(OFF)
end