import reguł
This commit is contained in:
27
rules/sypialnia.lampka-nocna.rules
Normal file
27
rules/sypialnia.lampka-nocna.rules
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
rule "Zapal lampkę rano"
|
||||
when
|
||||
Time cron "0 39 5 ? * MON-FRI *"
|
||||
then
|
||||
sOWFS02.sendCommand(ON)
|
||||
end
|
||||
|
||||
|
||||
rule "Zgaś lampkę rano"
|
||||
when
|
||||
Time cron "0 20 6 * * ?"
|
||||
then
|
||||
sOWFS02.sendCommand(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