salon: przed godz. 14 nie włączać świateł nawet jak jest pochmurno
This commit is contained in:
@@ -48,8 +48,10 @@ 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 90% cloud cover && TODO: only april-octotber */
|
var Number hours = now.getHourOfDay
|
||||||
if (wClouds.state > 90.0 && true) {
|
|
||||||
|
/* more than 90% cloud cover && not before 14:00 hour && TODO: only april-october */
|
||||||
|
if (wClouds.state > 90.0 && hours >= 14 && true) {
|
||||||
logInfo("stollampka", "Powyżej 90% chmur, zapalam")
|
logInfo("stollampka", "Powyżej 90% chmur, zapalam")
|
||||||
|
|
||||||
/* sSONOFF02.sendCommand(ON) */
|
/* sSONOFF02.sendCommand(ON) */
|
||||||
|
|||||||
Reference in New Issue
Block a user