salon: zapalanie lampki wczesniej przy 90% chmur
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user