From 6320e596c980f5d4f4b817fa9d6b08a05f6c2b03 Mon Sep 17 00:00:00 2001 From: Tomasz Torcz Date: Mon, 15 May 2023 11:21:35 +0200 Subject: [PATCH] =?UTF-8?q?wc:=20chwilowe=20w=C5=82=C4=85czanie=20wiatraka?= =?UTF-8?q?=20w=20nocy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rules/wc.rules | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/rules/wc.rules b/rules/wc.rules index dc996cb..553fd50 100644 --- a/rules/wc.rules +++ b/rules/wc.rules @@ -40,6 +40,24 @@ then sSONOFF01.sendCommand(OFF) end +/* periodyczne włączanie na minutę, żeby się nie zastał */ +rule "Włączaj na chwilę w nocy" +when + Time cron "0 15 23,0,1,2,3,4,5 * * ?" +then + sSONOFF01.sendCommand(ON) +end + +rule "Wyłączaj po chwili w nocy" +when + Time cron "0 16 23,0,1,2,3,4,5 * * ?" +then + if (sHolidayVacancy.state != ON) { + sSONOFF01.sendCommand(OFF) + } +end + + rule "Włączaj wiatrak rano" when Time cron "0 00 6 ? * MON-FRI" or