diff --git a/rules/salon.lampka-stolowa.rules b/rules/salon.lampka-stolowa.rules index 63d65fe..6612f61 100644 --- a/rules/salon.lampka-stolowa.rules +++ b/rules/salon.lampka-stolowa.rules @@ -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