Custom component to feed recently added tv shows and movies to the custom card "Upcoming Media Card" for Home Assistant.
MIT License
Home Assistant component to feed Upcoming Media Card with Kodi's recently added media.
NOTE: This component only works with Home Assistant version 0.115 and above. Additionally Kodi must be setup via the UI in the integrations section of the Home Assistant configuration.
Kodi Recently Added Component
under Integrations
in the HACS Store tab.configuration.yaml
using the config options below. See Conifuring via YAML.ui-lovelace.yaml
, or via the lovelace dashboard./config
directory, create a custom_components
folder if one does not exist.custom_components
directory.key | required | default | description |
---|---|---|---|
host | yes | -- | The host Kodi is running on. This is the same host that was configured when adding the Kodi integration via the UI. |
hide_watched | no | false | Indicates if watched media should be skipped or not. |
The host is the same host you entered when configuring Kodi via the integrations page.
sensor:
- platform: kodi_recently_added
host: 10.1.1.2
hide_watched: true
- platform: kodi_recently_added
host: 10.1.1.3
Kodi Recently Added Media
.sensor.kodi_recently_added_tv
. The other tracks your recently added moviessensor.kodi_recently_added_movies
.An Options
button will appear on the integration. Clicking this will allow you to
toggle additional options. Currently the only option is whether or not the sensor should
ignore watched media or not. By default it does not.
- type: custom:upcoming-media-card
entity: sensor.kodi_recently_added_tv
title: Recently Added Episodes
image_style: fanart
- type: custom:upcoming-media-card
entity: sensor.kodi_recently_added_movies
title: Recently Added Movies
image_style: fanart
configuration.yaml
that reference the kodi_recently_added
Kodi Recently Added Media
.sensor.kodi_recently_added_tv
. The other tracks your recently added moviessensor.kodi_recently_added_movies
.Below is a list of known issues that either can't be fixed by changes to the component itself due to external factors.
One reason this could occur is if you setup you Home Assistance instance to use SSL and your Kodi instance does not use SSL. When the upcoming-media-card tries to load the artwork it will fail to do so since modern browsers do not allow loading insecure requests. See #6 for more details and possible workarounds.
Currently genres, rating, and studio are only populated for Movies. This is a limitation of the data Kodi stores for TV shows.