feat(lamki kanapowe): uzależnienie zapalena od stanu Kodi

This commit is contained in:
2022-09-10 15:20:59 +02:00
parent f7a32c919e
commit 622f58fe22

View File

@@ -105,8 +105,13 @@ then
sSONOFF02_expected.postUpdate(ON)
/* kanapa */
sSONOFF09b.sendCommand(ON)
Thread::sleep(1000)
if ( Kodi_State.state == "Play" ) {
sSONOFF09b_expected.postUpdate(ON)
} else {
/* zapalamy tylko jeśli kodi nic nie gra */
sSONOFF09b.sendCommand(ON)
Thread::sleep(1000)
}
sSONOFF09a.sendCommand(ON)
end