From 64ba43a357c5dde01f522cfddd0cbea68069c1ca Mon Sep 17 00:00:00 2001 From: Tomasz Torcz Date: Mon, 30 Dec 2024 21:04:54 +0100 Subject: [PATCH] sync: wiatrak WC zapobiegawczo na ON --- rules/sync.rules | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rules/sync.rules b/rules/sync.rules index 2e5587c..0cef3f6 100644 --- a/rules/sync.rules +++ b/rules/sync.rules @@ -1,12 +1,14 @@ /* na wypadek rebootów sonoffa */ -rule "Synchronizuj wiatrak wc po restarcie" +rule "Włączaj wiatrak wc po restarcie" when Item rSONOFF01 received update ON then - logInfo("S01wiatrakWC", "Reappeared, applying state wiatrak WC {}", sSONOFF01.state) - sSONOFF01.sendCommand(sSONOFF01.state.toString) + /*logInfo("S01wiatrakWC", "Reappeared, applying state wiatrak WC {}", sSONOFF01.state) + sSONOFF01.sendCommand(sSONOFF01.state.toString)*/ + logInfo("S01wiatrakWC", "Appeared, turning ON") + sSONOFF01.sendCommand(ON) end