Files
openhab/rules/salon.cottonballs.rules
2024-09-24 18:22:07 +02:00

61 lines
1022 B
Plaintext

rule "Zapal cottonballs i blat rano"
when
Time cron "0 45 5 ? * MON-FRI *"
then
sOWFS01.sendCommand(ON)
sD1MINI02MOS.sendCommand(ON)
end
rule "Zgaś cottonball i blat rano"
when
Time cron "0 35 6 * * ?"
then
sOWFS01.sendCommand(OFF)
sOWFS01_expected.postUpdate(OFF)
/* commented out during stay-at-home
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
if (sHolidayVacancy.state == ON) {
return;
}
sOWFS01.sendCommand(ON)
sOWFS01_expected.postUpdate(ON)
sD1MINI02MOS.sendCommand(ON)
end
/* niech czeka na "goodnight" */
/*
rule "Zgaś cottonballsy i balkon wieczorem"
when
Time cron "0 20 22 * * ?"
then
sOWFS01.sendCommand(OFF)
sOWFS01_expected.postUpdate(OFF)
sSHELLY01.sendCommand(OFF)
end
*/
/*
1 Seconds
2 Minutes
3 Hours
4 Day-of-Month
5 Month
6 Day-of-Week
7 Year (optional field)
*/