diff --git a/rules/salon.lampka-stolowa.rules b/rules/salon.lampka-stolowa.rules index d0efc39..67ef5dc 100644 --- a/rules/salon.lampka-stolowa.rules +++ b/rules/salon.lampka-stolowa.rules @@ -42,9 +42,9 @@ rule "Zapal lampkę i kanapowe przez zmierzchem gdy pochmurno" when Item sSunset_Event_in_twohours received update ON then - /* more than 60% cloud cover */ - if (wClouds.state > 60.0) { - logInfo("stollampka", "Powyżej 60% chmur, zapalam") + /* more than 90% cloud cover */ + if (wClouds.state > 90.0) { + logInfo("stollampka", "Powyżej 90% chmur, zapalam") sSONOFF02.sendCommand(ON) sSONOFF02_expected.postUpdate(ON) @@ -63,6 +63,7 @@ rule "Zapal lampkę i kanapowe przed zmierzchem" when Item sSunset_Event_in_halfhour received update ON then + dSONOFF01LED.sendCommand(0) dSONOFF02LED.sendCommand(0) Thread::sleep(500)