prototyp pilota: przełączanie zielonym lampek kanapowych

Wcześniej była lampa nad stołem.
This commit is contained in:
2020-06-09 20:42:07 +02:00
parent 4c6c6c12a0
commit 896984b299

View File

@@ -3,10 +3,10 @@ rule "d1m03 przełączaj zielone"
when when
Item sD1MINI03_button_green received update Item sD1MINI03_button_green received update
then then
if (sSONOFF02.state == ON) { if (sSONOFF01.state == ON) {
sSONOFF02.sendCommand(OFF) sSONOFF01.sendCommand(OFF)
} else { } else {
sSONOFF02.sendCommand(ON) sSONOFF01.sendCommand(ON)
} }
end end
@@ -36,11 +36,11 @@ end
rule "d1mini03 synchronizuj kolorki" rule "d1mini03 synchronizuj kolorki"
when when
Item sSONOFF02 received update or Item sSONOFF01 received update or
Item Mpd_quodlibet_StartStop received update or Item Mpd_quodlibet_StartStop received update or
Item sD1MINI04_refresh received update Item sD1MINI04_refresh received update
then then
sD1MINI03_light_green.sendCommand(sSONOFF02.state.toString()) sD1MINI03_light_green.sendCommand(sSONOFF01.state.toString())
sD1MINI03_light_yellow.sendCommand(Mpd_quodlibet_StartStop.state.toString()) sD1MINI03_light_yellow.sendCommand(Mpd_quodlibet_StartStop.state.toString())