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
|
when
|
||||||
Item sSunset_Event_in_twohours received update ON
|
Item sSunset_Event_in_twohours received update ON
|
||||||
then
|
then
|
||||||
/* more than 60% cloud cover */
|
/* more than 90% cloud cover */
|
||||||
if (wClouds.state > 60.0) {
|
if (wClouds.state > 90.0) {
|
||||||
logInfo("stollampka", "Powyżej 60% chmur, zapalam")
|
logInfo("stollampka", "Powyżej 90% chmur, zapalam")
|
||||||
|
|
||||||
sSONOFF02.sendCommand(ON)
|
sSONOFF02.sendCommand(ON)
|
||||||
sSONOFF02_expected.postUpdate(ON)
|
sSONOFF02_expected.postUpdate(ON)
|
||||||
@@ -63,6 +63,7 @@ rule "Zapal lampkę i kanapowe przed zmierzchem"
|
|||||||
when
|
when
|
||||||
Item sSunset_Event_in_halfhour received update ON
|
Item sSunset_Event_in_halfhour received update ON
|
||||||
then
|
then
|
||||||
|
|
||||||
dSONOFF01LED.sendCommand(0)
|
dSONOFF01LED.sendCommand(0)
|
||||||
dSONOFF02LED.sendCommand(0)
|
dSONOFF02LED.sendCommand(0)
|
||||||
Thread::sleep(500)
|
Thread::sleep(500)
|
||||||
|
|||||||
Reference in New Issue
Block a user