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

44 lines
625 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
2025-12-03 09:58:05 +01:00
/* Time cron "0 43 5 ? * MON-FRI *" */
Time cron "0 14 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
2025-04-07 10:49:43 +02:00
2024-09-24 18:22:07 +02:00
rule "Zapal lampkę WFH"
when
2025-04-07 10:49:43 +02:00
Time cron "0 09 7 ? * FRI *"
2024-09-24 18:22:07 +02:00
then
sOWFS02.sendCommand(ON)
end
2025-04-07 10:49:43 +02:00
2024-09-24 18:22:07 +02:00
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)
*/