levelhab-config/rules/alllights.rules

32 lines
879 B
Plaintext

rule "All Lights ON"
when
Item all_lights changed from OFF to ON
then
engineering_table_lamps.sendCommand("ON")
engineering_ceiling_lamps.sendCommand("ON")
//all_engineering_lights.postUpdate("ON")
chill_zone_lamps.sendCommand("ON")
chill_zone_ikea_led.sendCommand("ON")
entrance_ceiling_lamps.sendCommand("ON")
entrance_marbleadder_lamps.sendCommand("ON")
area42_table_lamp1.sendCommand("ON")
area42_table_lamp2.sendCommand("ON")
end
rule "All Lights OFF"
when
Item all_lights changed from ON to OFF
then
engineering_table_lamps.sendCommand("OFF")
engineering_ceiling_lamps.sendCommand("OFF")
chill_zone_lamps.sendCommand("OFF")
chill_zone_ikea_led.sendCommand("OFF")
entrance_ceiling_lamps.sendCommand("OFF")
entrance_marbleadder_lamps.sendCommand("OFF")
area42_table_lamp1.sendCommand("OFF")
area42_table_lamp2.sendCommand("OFF")
end