Hi,
I want to switch the light on if KODI is on pause (contolled by my IR remote), but I don’t know how. I can only get the status STOP but not PAUSE.
I’m using OH2
I want something like this (I know this rule is wrong, only to explain)
rule "Kodi Pause"
when
Kodi_KNO_control.state == PAUSE
then
logInfo("default.rules", "Kodi is on pause")
end
This is my item:
Switch Kodi_KNO_Stop "Stop" { channel="kodi:kodi:Kodi_KNO:stop" }
String Kodi_KNO_Mediatype "Input [%s]" { channel="kodi:kodi:Kodi_KNO:mediatype" }
Player Kodi_KNO_control "Control" { channel="kodi:kodi:Kodi_KNO:control" }
Any help is more then welcome.
Regards
Michael