feat(lamki kanapowe): uzależnienie zapalena od stanu Kodi
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user