d1mini prototyp: zielonym przyciskiem przelaczaj lampke nad stolem

Do tej pory przelaczalo cottobalsy. Funkcja jest bardzij potrzebna
 do lampki nad stolem, bo tam jest build ESPEasy, ktory czasem sie resetuje
 i lampka gasnie.
.
This commit is contained in:
root
2018-09-26 18:53:47 +02:00
parent 22b7710d43
commit 6076ef8c07

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 (sOWFS01.state == ON) { if (sSONOFF02.state == ON) {
sOWFS01.sendCommand(OFF) sSONOFF02.sendCommand(OFF)
} else { } else {
sOWFS01.sendCommand(ON) sSONOFF02.sendCommand(ON)
} }
end end
@@ -36,11 +36,11 @@ end
rule "d1mini03 synchronizuj kolorki" rule "d1mini03 synchronizuj kolorki"
when when
Item sOWFS01 received update or Item sSONOFF02 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(sOWFS01.state.toString()) sD1MINI03_light_green.sendCommand(sSONOFF02.state.toString())
sD1MINI03_light_yellow.sendCommand(Mpd_quodlibet_StartStop.state.toString()) sD1MINI03_light_yellow.sendCommand(Mpd_quodlibet_StartStop.state.toString())