salon: przed godz. 14 nie włączać świateł nawet jak jest pochmurno

This commit is contained in:
2021-12-14 16:02:02 +01:00
parent 7121a3bc51
commit ea16341b27

View File

@@ -48,8 +48,10 @@ rule "Zapal lampkę i kanapowe przez zmierzchem gdy pochmurno"
when
Item sSunset_Event_in_twohours received update ON
then
/* more than 90% cloud cover && TODO: only april-octotber */
if (wClouds.state > 90.0 && true) {
var Number hours = now.getHourOfDay
/* 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")
/* sSONOFF02.sendCommand(ON) */