[Solved] Kodi: Switch light if KODI is paused (by IR Remote)

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

Perhaps you could debug the state of the Player type by

rule "Kodi Pause"
when
	Item Kodi_KNO_control  changed
then
	logInfo("default.rules",Kodi_KNO_control.state.toString() )
end

I think the rule should work if you do …

rule "Kodi Pause"
when
	Item Kodi_KNO_control  changed
then
       if (Kodi_KNO_control.state == PAUSE ) {
	 logInfo("default.rules","KODI PLAYER PAUSED" )
      }
end

Thank you.
Here the working rule.

rule "Kodi Kino Pause"
when
	Item Kodi_KNO_control changed to PAUSE
then
	logInfo("default.rules", "Kodi Kino PAUSE")
end