2018-07-01 21:48:20 +02:00
|
|
|
|
2018-07-07 20:23:39 +02:00
|
|
|
rule "Zapal cottonballs i blat rano"
|
2018-07-01 21:48:20 +02:00
|
|
|
when
|
|
|
|
|
Time cron "0 45 5 ? * MON-FRI *"
|
|
|
|
|
then
|
2024-09-27 09:53:53 +02:00
|
|
|
if (sHolidayVacancy.state == ON) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-01 21:48:20 +02:00
|
|
|
sOWFS01.sendCommand(ON)
|
|
|
|
|
sD1MINI02MOS.sendCommand(ON)
|
|
|
|
|
end
|
|
|
|
|
|
2024-09-27 09:53:53 +02:00
|
|
|
rule "Zgaś cottonballs i blat rano"
|
2018-07-01 21:48:20 +02:00
|
|
|
when
|
|
|
|
|
Time cron "0 35 6 * * ?"
|
|
|
|
|
then
|
|
|
|
|
sOWFS01.sendCommand(OFF)
|
2021-10-03 14:38:16 +02:00
|
|
|
sOWFS01_expected.postUpdate(OFF)
|
2024-09-27 09:53:53 +02:00
|
|
|
/* commented out during stay-at-home */
|
|
|
|
|
sD1MINI02MOS.sendCommand(OFF)
|
2018-07-01 21:48:20 +02:00
|
|
|
end
|
|
|
|
|
|
2018-07-07 20:23:39 +02:00
|
|
|
|
2018-07-01 21:48:20 +02:00
|
|
|
/* kanapowe zmierzchowe sterowane z lampki stolowej */
|
|
|
|
|
|
|
|
|
|
rule "Zapal cottonballsy i blat przed zmierzchem"
|
|
|
|
|
when
|
|
|
|
|
Item sSunset_Event_in_hour received update ON
|
|
|
|
|
then
|
2022-05-05 17:20:53 +02:00
|
|
|
if (sHolidayVacancy.state == ON) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-01 21:48:20 +02:00
|
|
|
sOWFS01.sendCommand(ON)
|
|
|
|
|
sOWFS01_expected.postUpdate(ON)
|
|
|
|
|
|
2018-07-07 20:23:39 +02:00
|
|
|
sD1MINI02MOS.sendCommand(ON)
|
2021-10-03 14:38:16 +02:00
|
|
|
|
2018-07-01 21:48:20 +02:00
|
|
|
end
|
|
|
|
|
|
2021-10-03 14:38:16 +02:00
|
|
|
/* niech czeka na "goodnight" */
|
|
|
|
|
/*
|
2024-09-24 18:22:07 +02:00
|
|
|
rule "Zgaś cottonballsy i balkon wieczorem"
|
2018-07-01 21:48:20 +02:00
|
|
|
when
|
|
|
|
|
Time cron "0 20 22 * * ?"
|
|
|
|
|
then
|
|
|
|
|
sOWFS01.sendCommand(OFF)
|
|
|
|
|
sOWFS01_expected.postUpdate(OFF)
|
|
|
|
|
|
2021-10-03 14:38:16 +02:00
|
|
|
sSHELLY01.sendCommand(OFF)
|
|
|
|
|
end
|
|
|
|
|
*/
|
2018-07-01 21:48:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
1 Seconds
|
|
|
|
|
2 Minutes
|
|
|
|
|
3 Hours
|
|
|
|
|
4 Day-of-Month
|
|
|
|
|
5 Month
|
|
|
|
|
6 Day-of-Week
|
|
|
|
|
7 Year (optional field)
|
|
|
|
|
*/
|