Files
openhab/rules/salon.cottonballs.rules

62 lines
1.0 KiB
Plaintext
Raw Normal View History

2018-07-01 21:48:20 +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
sOWFS01.sendCommand(ON)
sD1MINI02MOS.sendCommand(ON)
end
rule "Zgaś cottonball i blat rano"
2018-07-01 21:48:20 +02:00
when
Time cron "0 35 6 * * ?"
then
sOWFS01.sendCommand(OFF)
sOWFS01_expected.postUpdate(OFF)
/* commented out during stay-at-home
sD1MINI02MOS.sendCommand(OFF) */
2018-07-01 21:48:20 +02:00
end
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
if (sHolidayVacancy.state == ON) {
return;
}
2018-07-01 21:48:20 +02:00
sOWFS01.sendCommand(ON)
sOWFS01_expected.postUpdate(ON)
sD1MINI02MOS.sendCommand(ON)
2018-07-01 21:48:20 +02:00
end
/* niech czeka na "goodnight" */
/*
2018-07-01 21:48:20 +02:00
rule "Zgaś cottonballsy wieczorem"
when
Time cron "0 20 22 * * ?"
then
sOWFS01.sendCommand(OFF)
sOWFS01_expected.postUpdate(OFF)
/* balkon */
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)
*/