Files
openhab/rules/sypialnia.lampka-nocna.rules

44 lines
629 B
Plaintext
Raw Normal View History

2018-07-01 21:48:20 +02:00
rule "Zapal lampkę i cottonballs rano"
2018-07-01 21:48:20 +02:00
when
Time cron "0 43 5 ? * MON-FRI *"
/* Time cron "0 33 6 ? * MON-FRI *" */
2024-09-24 18:22:07 +02:00
/* Time cron "0 59 8 ? * MON-FRI *" */
2018-07-01 21:48:20 +02:00
then
2024-09-24 18:22:07 +02:00
if (sHolidayVacancy.state != ON) {
sOWFS02.sendCommand(ON)
sSONOFF08a.sendCommand(ON)
}
2018-07-01 21:48:20 +02:00
end
2024-09-24 18:22:07 +02:00
/*
rule "Zapal lampkę WFH"
when
Time cron "0 29 7 ? * FRI *"
then
sOWFS02.sendCommand(ON)
end
*/
2018-07-01 21:48:20 +02:00
rule "Zgaś lampkę i cottonballs rano"
2018-07-01 21:48:20 +02:00
when
/* Time cron "0 30 6 * * ?" */
2024-09-24 18:22:07 +02:00
Time cron "0 10 7 * * ?"
2018-07-01 21:48:20 +02:00
then
sOWFS02.sendCommand(OFF)
sSONOFF08a.sendCommand(OFF)
2018-07-01 21:48:20 +02:00
end
/*
1 Seconds
2 Minutes
3 Hours
4 Day-of-Month
5 Month
6 Day-of-Week
7 Year (optional field)
*/