sync: wiatrak WC zapobiegawczo na ON

This commit is contained in:
2024-12-30 21:04:54 +01:00
parent 640814ee15
commit 64ba43a357

View File

@@ -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