diff --git a/rules/salon.cottonballs.rules b/rules/salon.cottonballs.rules index 4c8ed97..0b4bf16 100644 --- a/rules/salon.cottonballs.rules +++ b/rules/salon.cottonballs.rules @@ -3,18 +3,22 @@ rule "Zapal cottonballs i blat rano" when Time cron "0 45 5 ? * MON-FRI *" then + if (sHolidayVacancy.state == ON) { + return; + } + sOWFS01.sendCommand(ON) sD1MINI02MOS.sendCommand(ON) end -rule "Zgaś cottonball i blat rano" +rule "Zgaś cottonballs 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) */ + /* commented out during stay-at-home */ + sD1MINI02MOS.sendCommand(OFF) end