From da120b4210eacbdac6f71c75a278e2a98627337c Mon Sep 17 00:00:00 2001 From: Tomasz Torcz Date: Fri, 27 Sep 2024 09:53:53 +0200 Subject: [PATCH] kuchnia blat: autogaszenie i niezapalanie na urlopie --- rules/salon.cottonballs.rules | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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