lampki balkonowe: zapalanie jak lampa stolowa (rano) i sufitowe (wieczorem)

This commit is contained in:
root
2018-12-10 18:44:44 +01:00
parent 9e066cd790
commit 4c2e90397d

View File

@@ -1,12 +1,15 @@
/*
rule "Zapal stółlampkę rano" rule "Zapal stółlampkę rano"
when when
Time cron "0 47 5 ? * MON-FRI *" Time cron "0 47 5 ? * MON-FRI *"
then then
sSONOFF02.sendCommand(ON) sSONOFF02.sendCommand(ON)
/* balkon */
sSONOFF05.sendCommand(OFF)
end end
*/
rule "Zgaś stółlampkę rano" rule "Zgaś stółlampkę rano"
@@ -14,6 +17,9 @@ when
Time cron "0 30 6 * * ?" Time cron "0 30 6 * * ?"
then then
sSONOFF02.sendCommand(OFF) sSONOFF02.sendCommand(OFF)
/* balkon */
sSONOFF05.sendCommand(OFF)
end end
@@ -23,9 +29,14 @@ when
Item sSunset_Event_in_hour received update ON Item sSunset_Event_in_hour received update ON
then then
/* HOLIDAY */ /* HOLIDAY */
sD1MINI01_lampki_sufitowe.sendCommand(ON) sD1MINI01_lampki_sufitowe.sendCommand(ON)
/* balkon */
sSONOFF05.sendCommand(ON)
end end
/* HOLIDAY */
rule "Zapal lampkę i kanapowe przez zmierzchem gdy pochmurno" rule "Zapal lampkę i kanapowe przez zmierzchem gdy pochmurno"
when when
@@ -46,6 +57,8 @@ end
/* TODO: przerobic na espeasy pulse command. /* TODO: przerobic na espeasy pulse command.
pulse 500ms, thread sleep 1s*/ pulse 500ms, thread sleep 1s*/
/* HOLIDAY */
rule "Zapal lampkę i kanapowe przed zmierzchem" 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
@@ -77,6 +90,8 @@ then
sSONOFF01.sendCommand(ON) sSONOFF01.sendCommand(ON)
end end
rule "Przedzgaś stółlampkę wieczorem" rule "Przedzgaś stółlampkę wieczorem"
when when
Time cron "0 12 22 * * ?" Time cron "0 12 22 * * ?"
@@ -96,6 +111,9 @@ then
sD1MINI01_lampki_sufitowe.sendCommand(OFF) sD1MINI01_lampki_sufitowe.sendCommand(OFF)
sD1MINI02MOS.sendCommand(OFF) sD1MINI02MOS.sendCommand(OFF)
/* balkon */
sSONOFF05.sendCommand(OFF)
end end
/* /*