[Integration][Kodi] Provide sensors for Kodi integration to home assistant

Hi

I am using Kodi as my main media center and I am currently introducing Home Assistant as my smart home solution. I am pretty pleased that Kodi is already supported and appears as media player. However it missed some verbosity besides the media player entity.

For example:

  • A sensor which contains the currently playing media information (media name, audio, subtitle, artwork, format, resolution, etc.,)
  • A sensor which contains information about how many movies, series, episodes, music pieces are in the DB
  • A sensor which exposes the media added within a configurable timespan (e.g. last 3 days)
  • A sensor giving information about kodi itself is running on (e.g. version, OS-type, Uptime, Monitor Resolution, etc).
  • A sensor which contains all installed addons and their state (on/off)
  • A sensor which contains all configured media sources

Maybe I am just having weird ideas about integrations, but I would really like to winkle out more informations about the “conneteced devices”.

Why? To do crazy things of cause…
Like having a list of what you watched (currently playing media sensor).
Like having a dashboard where new additions to Kodi Sources are listed for you to choose from, just tip on them and playing starts (with artwork, e.g. as button).