Media Player - Media History

Hi

Maybe I am just overlooking something very basic, however I have a media player entitiy (Kodi) in my HA, which during playback shows a picture art and the file being played back. I now want to have a kind of history which files I played. However, I have no idea how to make HA create a kind of “string sensor” where the played files are stored as incresing list.

Is that wish to outlandish? Except from controlling the player, that is literarly the first thing I would like to do … see what happend… not just the changes from idle to playing, but what actually has been played (media_content_id, I guess).

Do I overlook something?

Figured it out, should have tried longer:

template:
  sensors:
  - name: "Kodi Play History"
    icon: mdi:video
    state: >
      {{ states.media_player.entity_id.attributes.media_title | default('Waiting') }}

This example confused me, I think it should only be sensor:, not sensorS:?

Other than that, thanks! I’ve been wanting to track this for a while!

Hi, I know this post is old, but I’m now trying to achieve the same as you…but your solution does not work for me…maybe because of the custom entity you are mentioning? If you ever read this, could you help me to get it working?

Thanks a lot!