import reguł
This commit is contained in:
51
rules/salon.cottonballs.rules
Normal file
51
rules/salon.cottonballs.rules
Normal file
@@ -0,0 +1,51 @@
|
||||
|
||||
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)
|
||||
*/
|
||||
Reference in New Issue
Block a user