przedpokój: postaraj się odtworzyć stan po restarcie sonoffa

This commit is contained in:
2020-12-26 21:54:22 +01:00
parent 567869c53f
commit f56f714268

View File

@@ -65,3 +65,13 @@ then
sSONOFF06.sendCommand(OFF) sSONOFF06.sendCommand(OFF)
end 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