lampki balkonowe: zapalanie jak lampa stolowa (rano) i sufitowe (wieczorem)
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
|
||||
/*
|
||||
|
||||
rule "Zapal stółlampkę rano"
|
||||
when
|
||||
Time cron "0 47 5 ? * MON-FRI *"
|
||||
then
|
||||
sSONOFF02.sendCommand(ON)
|
||||
|
||||
/* balkon */
|
||||
sSONOFF05.sendCommand(OFF)
|
||||
end
|
||||
*/
|
||||
|
||||
|
||||
|
||||
rule "Zgaś stółlampkę rano"
|
||||
@@ -14,6 +17,9 @@ when
|
||||
Time cron "0 30 6 * * ?"
|
||||
then
|
||||
sSONOFF02.sendCommand(OFF)
|
||||
|
||||
/* balkon */
|
||||
sSONOFF05.sendCommand(OFF)
|
||||
end
|
||||
|
||||
|
||||
@@ -23,9 +29,14 @@ when
|
||||
Item sSunset_Event_in_hour received update ON
|
||||
then
|
||||
/* HOLIDAY */
|
||||
|
||||
sD1MINI01_lampki_sufitowe.sendCommand(ON)
|
||||
|
||||
/* balkon */
|
||||
sSONOFF05.sendCommand(ON)
|
||||
end
|
||||
|
||||
/* HOLIDAY */
|
||||
|
||||
rule "Zapal lampkę i kanapowe przez zmierzchem gdy pochmurno"
|
||||
when
|
||||
@@ -46,6 +57,8 @@ end
|
||||
|
||||
/* TODO: przerobic na espeasy pulse command.
|
||||
pulse 500ms, thread sleep 1s*/
|
||||
/* HOLIDAY */
|
||||
|
||||
rule "Zapal lampkę i kanapowe przed zmierzchem"
|
||||
when
|
||||
Item sSunset_Event_in_halfhour received update ON
|
||||
@@ -77,6 +90,8 @@ then
|
||||
sSONOFF01.sendCommand(ON)
|
||||
end
|
||||
|
||||
|
||||
|
||||
rule "Przedzgaś stółlampkę wieczorem"
|
||||
when
|
||||
Time cron "0 12 22 * * ?"
|
||||
@@ -96,6 +111,9 @@ then
|
||||
sD1MINI01_lampki_sufitowe.sendCommand(OFF)
|
||||
|
||||
sD1MINI02MOS.sendCommand(OFF)
|
||||
|
||||
/* balkon */
|
||||
sSONOFF05.sendCommand(OFF)
|
||||
end
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user