Using Kodi JSON RPC Results

Hi every1,

after looking at several solutions, I decided to use Home Assistant to make my house a bit smarter :slight_smile:

Currently I’m just playing around with stuff I already have at home to understand Home Assistant better. After that my plan is to buy new stuff and implement it all to fully utilize Home Assistant.

I’m stuck with the Kodi JSON command rights now. Sending commands to Kodi is easy. I used buttons to make a small remote. Like a button to go right in Kodi:

type: button
        show_name: true
        hold_action:
          action: none
        tap_action:
          action: call-service
          service: kodi.call_method
          service_data:
            entity_id: media_player.kodi_8e49d3c04ae5477b1a69b3d1e3d98fef
            method: Input.Right
        entity: media_player.kodi_8e49d3c04ae5477b1a69b3d1e3d98fef
        name: Right
        show_icon: true

Now, I’d like to show the movie/tv-show/music poster of the currently playing file from Kodi.
I think I know it should be possible with Player.GetItem which would return an object with the infos I need. Problem is: How do I work with the results from there? How could I display the poster in a picture card or a picture entity?(what’s better suited for that?)

Or do I have to go another way that I don’t see yet?

Thanks

Before digging further, if you haven’t yet, I suggest trying out the official Kodi integration with media-control card which has some media info (poster?) built in already.

Yes, that would work as well and might be easier to access since it’s already there.
But I’d like to do it with the JSON Rpc. In the future I want to access even more data from Kodi that the medie control card is not showing. So I think it might be better if I use it from the beginning :slight_smile:

Totally understood, have fun :smiley: