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