feat(lamki kanapowe): uzależnienie zapalena od stanu Kodi
This commit is contained in:
@@ -105,8 +105,13 @@ then
|
|||||||
sSONOFF02_expected.postUpdate(ON)
|
sSONOFF02_expected.postUpdate(ON)
|
||||||
|
|
||||||
/* kanapa */
|
/* kanapa */
|
||||||
|
if ( Kodi_State.state == "Play" ) {
|
||||||
|
sSONOFF09b_expected.postUpdate(ON)
|
||||||
|
} else {
|
||||||
|
/* zapalamy tylko jeśli kodi nic nie gra */
|
||||||
sSONOFF09b.sendCommand(ON)
|
sSONOFF09b.sendCommand(ON)
|
||||||
Thread::sleep(1000)
|
Thread::sleep(1000)
|
||||||
|
}
|
||||||
sSONOFF09a.sendCommand(ON)
|
sSONOFF09a.sendCommand(ON)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user