From 567869c53fb274c47d67a1d5ebee9d410df54f87 Mon Sep 17 00:00:00 2001 From: Tomasz Torcz Date: Sat, 26 Dec 2020 21:53:39 +0100 Subject: [PATCH] wc: jak nas nie ma, to nie psikaj --- rules/wc.rules | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rules/wc.rules b/rules/wc.rules index ca87356..e6e333c 100644 --- a/rules/wc.rules +++ b/rules/wc.rules @@ -10,16 +10,18 @@ then } end -/* HOLIDAY */ rule "Psikaj w WC" when Item sWC_occupied changed from ON to OFF or Time cron "0 50 05 ? * MON-FRI" or - Time cron "0 20 15 ? * MON-FRI" or Time cron "0 10/20 15-21 ? * MON-FRI" or Time cron "0 0,20,40 8-21 ? * SAT,SUN" then + if (sHolidayVacancy.state == ON) { + return; + } + sD1MINI04_refresh.sendCommand(ON) end