Kodi binding problem with playfavorite item

Hi,
after upgrade of OH 2.4 to 2.5 I have a small problem with Kodi binding.
Previously this item worked without issues, it was getting populated automatically as you add new stuff to favourites you could select them in OH sitemap.
Selection item=myKodi_playfavorite label=“Playlist” icon=“colorpicker”

but now since upgrade, this list is empty (nothing to select)
However, all the other commands work fine, and even if you aim at a specific favorite with rules like
myKodi_playfavorite.sendCommand(“Radio 101”) work fine!

what could be the issue?

thanks

Try recreating the myKodi_playfavorite item and see if OH will pick it up. Also have a browser open with frontail log so you can see if there are errors.

tried, nothing in log except item had been removed, item added and then
myKodi_playfavorite changed from NULL to UNDEF

maybe i should enable debug logging for kodi binding?

with enabled debug I’m getting some messages like:
but they dont look related to the playfavorite problem…

2020-08-02 20:23:18.668 [DEBUG] [ng.kodi.internal.handler.KodiHandler] - Received unknown PVR channel group 'All channels'. Using default.
2020-08-02 20:23:18.671 [DEBUG] [ng.kodi.internal.handler.KodiHandler] - Received unknown PVR channel group 'All channels'. Using default.
2020-08-02 20:23:18.678 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"error":{"code":-32602,"message":"Invalid params."},"id":36876,"jsonrpc":"2.0"}
2020-08-02 20:23:18.680 [DEBUG] [i.internal.protocol.KodiClientSocket] - Error received from server: {"code":-32602,"message":"Invalid params."}

Hi @vanja,

Would it be possible to set logging to TRACE level. You then will see request and responses to Kodi too. Watch for something like “Favourites.GetFavourites” Wich queries all’s favorites or “Player.Open” which handles playing a favorite.

Additionally it would be nice to see your full configuration of your myKodi_playfavorite Item.

hi,
here is the item:

String myKodi_playfavorite          "Play favorite"             { channel="kodi:kodi:8f67bed9-afbb-92b8-5cad-c6cb49e53ecb:playfavorite" }

here is the trace log from the moment item is enabled

2020-08-02 21:42:32.330 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'kodi.items'

==> /var/log/openhab2/events.log <==
2020-08-02 21:42:32.391 [.ItemChannelLinkAddedEvent] - Link 'myKodi_playfavorite-kodi:kodi:8f67bed9-afbb-92b8-5cad-c6cb49e53ecb:playfavorite' has been added.
2020-08-02 21:42:32.393 [vent.ItemStateChangedEvent] - myKodi_playfavorite changed from NULL to UNDEF

==> /var/log/openhab2/openhab.log <==
2020-08-02 21:42:36.567 [TRACE] [i.internal.protocol.KodiClientSocket] - send message: {"jsonrpc":"2.0","id":39132,"method":"Player.GetActivePlayers"}
2020-08-02 21:42:36.572 [TRACE] [i.internal.protocol.KodiClientSocket] - Message received from server: {"id":39132,"jsonrpc":"2.0","result":[{"playerid":0,"playertype":"internal","type":"audio"}]}
2020-08-02 21:42:36.576 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":39132,"jsonrpc":"2.0","result":[{"playerid":0,"playertype":"internal","type":"audio"}]}
2020-08-02 21:42:36.580 [TRACE] [i.internal.protocol.KodiClientSocket] - send message: {"jsonrpc":"2.0","id":39133,"method":"Application.GetProperties","params":{"properties":["version"]}}
2020-08-02 21:42:36.585 [TRACE] [i.internal.protocol.KodiClientSocket] - Message received from server: {"id":39133,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":7,"revision":"18.7.1-Leia","tag":"stable"}}}
2020-08-02 21:42:36.589 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":39133,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":7,"revision":"18.7.1-Leia","tag":"stable"}}}
2020-08-02 21:42:36.592 [TRACE] [i.internal.protocol.KodiClientSocket] - send message: {"jsonrpc":"2.0","id":39134,"method":"Player.GetProperties","params":{"playerid":0,"properties":["speed"]}}
2020-08-02 21:42:36.597 [TRACE] [i.internal.protocol.KodiClientSocket] - Message received from server: {"id":39134,"jsonrpc":"2.0","result":{"speed":1}}
2020-08-02 21:42:36.601 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":39134,"jsonrpc":"2.0","result":{"speed":1}}
2020-08-02 21:42:36.615 [TRACE] [i.internal.protocol.KodiClientSocket] - send message: {"jsonrpc":"2.0","id":39135,"method":"Player.GetProperties","params":{"playerid":0,"properties":["subtitleenabled","currentsubtitle","currentaudiostream","currentvideostream","percentage","time","totaltime","audiostreams","subtitles"]}}
2020-08-02 21:42:36.622 [TRACE] [i.internal.protocol.KodiClientSocket] - Message received from server: {"id":39135,"jsonrpc":"2.0","result":{"audiostreams":[],"currentaudiostream":{},"currentsubtitle":null,"currentvideostream":null,"percentage":0.0,"subtitleenabled":false,"subtitles":[],"time":{"hours":0,"milliseconds":32,"minutes":25,"seconds":40},"totaltime":{"hours":0,"milliseconds":0,"minutes":0,"seconds":0}}}
2020-08-02 21:42:36.627 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":39135,"jsonrpc":"2.0","result":{"audiostreams":[],"currentaudiostream":{},"currentsubtitle":null,"currentvideostream":null,"percentage":0.0,"subtitleenabled":false,"subtitles":[],"time":{"hours":0,"milliseconds":32,"minutes":25,"seconds":40},"totaltime":{"hours":0,"milliseconds":0,"minutes":0,"seconds":0}}}
2020-08-02 21:42:36.677 [TRACE] [i.internal.protocol.KodiClientSocket] - send message: {"jsonrpc":"2.0","id":39136,"method":"Player.GetItem","params":{"playerid":0,"properties":["uniqueid","title","originaltitle","album","artist","track","director","thumbnail","fanart","file","showtitle","season","episode","channel","channeltype","genre","mpaa","rating","votes","userrating"]}}

Okay, Thanks. And after the linkage? Which requests occur later in the log? Or when you try play the mentioned favorite?

what do you mean after the linkage? after I uncomment this kodi item, it is already linked to kodi thing…and there is a selection in sitemap linked to the item.and you see what happens in the log…not much
also, if i try to open it nothing happens, as there is nothing on this button

but if i make a manual mapping buttons then it works

Selection item=myKodi_playfavorite label=“Playlist” icon=“colorpicker” mappings=[‘Radio Paradise’=“Radio Paradise”,‘Radio 101’=“Radio 101”]

so as a workaround i will have to manually write all favorites like this, and then it will work