Files
openhab/rules/kuchnia.rules
2018-09-09 16:22:11 +02:00

12 lines
193 B
Plaintext

rule "Kuchnia: przełącz LED"
when
Item sD1MINI02LEDS received update
then
if (sD1MINI02MOS.state == ON) {
sD1MINI02MOS.sendCommand(OFF)
} else {
sD1MINI02MOS.sendCommand(ON)
}
end