prototyp: czerwone do przełączanie kociej grzałki

lampka stołowa przestała działać już jakiś czas temu
This commit is contained in:
2023-10-21 16:51:12 +02:00
parent f7d3f12748
commit 0614838bbc

View File

@@ -26,10 +26,10 @@ rule "d1m03 przełączaj czerwone"
when
Item sD1MINI03_button_red received update
then
if (sSONOFF02.state == ON) {
sSONOFF02.sendCommand(OFF)
if (sSONOFF04MASTER.state == ON) {
sSONOFF04MASTER.sendCommand(OFF)
} else {
sSONOFF02.sendCommand(ON)
sSONOFF04MASTER.sendCommand(ON)
}
end
@@ -38,12 +38,12 @@ rule "d1mini03 synchronizuj kolorki"
when
Item sSONOFF09b received update or
Item Mpd_quodlibet_StartStop received update or
Item sSONOFF02 received update
Item sSONOFF04MASTER received update
then
sD1MINI03_light_green.sendCommand(sSONOFF09b.state.toString())
sD1MINI03_light_yellow.sendCommand(Mpd_quodlibet_StartStop.state.toString())
sD1MINI03_light_red.sendCommand(sSONOFF02.state.toString())
sD1MINI03_light_red.sendCommand(sSONOFF04MASTER.state.toString())
end