prototyp: przepiecie czerwonego przycisku na kontrole lampki nad stołem

Bo skubana świeci po oczach za bardzo.
This commit is contained in:
2021-01-03 19:37:31 +01:00
parent a250f2d621
commit 4cbf74ac08

View File

@@ -26,11 +26,11 @@ rule "d1m03 przełączaj czerwone"
when when
Item sD1MINI03_button_red received update Item sD1MINI03_button_red received update
then then
/* if (sD1MINI04_refresh.state == ON) { if (sSONOFF02.state == ON) {
sD1MINI04_refresh.sendCommand(OFF) sSONOFF02.sendCommand(OFF)
} else {*/ } else {
sD1MINI04_refresh.sendCommand(ON) sSONOFF02.sendCommand(ON)
/* }*/ }
end end
@@ -38,12 +38,12 @@ rule "d1mini03 synchronizuj kolorki"
when when
Item sSONOFF01 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 sSONOFF02 received update
then then
sD1MINI03_light_green.sendCommand(sSONOFF01.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())
sD1MINI03_light_red.sendCommand(sD1MINI04_refresh.state.toString()) sD1MINI03_light_red.sendCommand(sSONOFF02.state.toString())
end end