52 lines
892 B
Plaintext
52 lines
892 B
Plaintext
|
|
|
||
|
|
rule "Zapal cottonballs, kanapowe i blat rano"
|
||
|
|
when
|
||
|
|
Time cron "0 45 5 ? * MON-FRI *"
|
||
|
|
then
|
||
|
|
sOWFS01.sendCommand(ON)
|
||
|
|
/* sSONOFF01.sendCommand(ON) */
|
||
|
|
sD1MINI02MOS.sendCommand(ON)
|
||
|
|
end
|
||
|
|
|
||
|
|
rule "Zgaś cottonballs, kanapowe i blat rano"
|
||
|
|
when
|
||
|
|
Time cron "0 35 6 * * ?"
|
||
|
|
then
|
||
|
|
sOWFS01.sendCommand(OFF)
|
||
|
|
sSONOFF01.sendCommand(OFF)
|
||
|
|
sD1MINI02MOS.sendCommand(OFF)
|
||
|
|
end
|
||
|
|
|
||
|
|
/* kanapowe zmierzchowe sterowane z lampki stolowej */
|
||
|
|
|
||
|
|
rule "Zapal cottonballsy i blat przed zmierzchem"
|
||
|
|
when
|
||
|
|
Item sSunset_Event_in_hour received update ON
|
||
|
|
then
|
||
|
|
sOWFS01.sendCommand(ON)
|
||
|
|
sOWFS01_expected.postUpdate(ON)
|
||
|
|
|
||
|
|
/* HOLIDAY */
|
||
|
|
D1MINI02MOS.sendCommand(ON)
|
||
|
|
end
|
||
|
|
|
||
|
|
rule "Zgaś cottonballsy wieczorem"
|
||
|
|
when
|
||
|
|
Time cron "0 20 22 * * ?"
|
||
|
|
then
|
||
|
|
sOWFS01.sendCommand(OFF)
|
||
|
|
sOWFS01_expected.postUpdate(OFF)
|
||
|
|
end
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/*
|
||
|
|
1 Seconds
|
||
|
|
2 Minutes
|
||
|
|
3 Hours
|
||
|
|
4 Day-of-Month
|
||
|
|
5 Month
|
||
|
|
6 Day-of-Week
|
||
|
|
7 Year (optional field)
|
||
|
|
*/
|