Code: Alles auswählen
rule "xmas"
when
Item xmas_Light changed
then
Plug_2_shellyplug25_1_Relay_1.sendCommand(xmas_Light.state)
shellyswitch11_output1.sendCommand(xmas_Light.state)
moesswitch1_2.sendCommand(xmas_Light.state)
Fritz_Repeater_Stromstecker_switch.sendCommand(xmas_Light.state)
end
Code: Alles auswählen
rule "xmas"
when
Item xmas_Light changed
then
if (xmas_Light.state == ON) {
Plug_2_shellyplug25_1_Relay_1.sendCommand(ON)
shellyswitch11_output1.sendCommand(ON)
moesswitch1_2.sendCommand(ON)
Fritz_Repeater_Stromstecker_switch.sendCommand(ON)
}
else {
Plug_2_shellyplug25_1_Relay_1.sendCommand(OFF)
shellyswitch11_output1.sendCommand(OFF)
moesswitch1_2.sendCommand(OFF)
Fritz_Repeater_Stromstecker_switch.sendCommand(OFF)
}
end