feat: synchronizacja stanów przy restartach kontrolerów

This commit is contained in:
2023-06-01 14:45:55 +02:00
parent 66ea303cff
commit cf648bbd48
3 changed files with 84 additions and 21 deletions

View File

@@ -159,18 +159,6 @@ then
sD1MINI02MOS.sendCommand(OFF)
end
/* na wypadek rebootów sonoffa */
rule "Synchronizuj balkon & lampka po restarcie"
when
Item rSHELLY01 received update ON or
Item rSONOFF02 received update ON
then
logInfo("S02,SH01", "Reappeared, applying state balkon {}, lampka {}", sSHELLY01.state, sSONOFF02.state)
sSONOFF02.sendCommand(sSONOFF02.state.toString)
sSHELLY01.sendCommand(sSHELLY01.state.toString)
end
/*
1 Seconds
2 Minutes