From f56f7142684f4c00d94ed0a98bfb2e078d6243e8 Mon Sep 17 00:00:00 2001 From: Tomasz Torcz Date: Sat, 26 Dec 2020 21:54:22 +0100 Subject: [PATCH] =?UTF-8?q?przedpok=C3=B3j:=20postaraj=20si=C4=99=20odtwor?= =?UTF-8?q?zy=C4=87=20stan=20po=20restarcie=20sonoffa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rules/przedpokój.rules | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rules/przedpokój.rules b/rules/przedpokój.rules index 0d0669e..d0de5ed 100644 --- a/rules/przedpokój.rules +++ b/rules/przedpokój.rules @@ -65,3 +65,13 @@ then sSONOFF06.sendCommand(OFF) end +/* na wypadek rebootów sonoffa */ +rule "Synchronizuj przedpokój po restarcie" +when + Item rSONOFF06 changed to ON +then + logInfo("S06przedpokój", "Reappeared, applying state przedpokój {}", sSONOFF06.state) + sSONOFF06.sendCommand(sSONOFF06.state.toString) +end + +