Lovelace: Upcoming Media Card

Had it working showing posters a few minutes ago using this.

type: 'custom:upcoming-media-card'
entity: sensor.sonarr_upcoming_media

It was working for a while then the card went red and said this.

Custom element doesn’t exist: upcoming-media-card.
type: ‘custom:upcoming-media-card’
entity: sensor.sonarr_upcoming_media

Refresh your web page

Got it working. I wasn’t calling the js properly…

I had the exact problem with my Sonarr fanart not showing up, while it was showing up on Radarr with no issues. Disabling the Adblock Chrome Extension on that particular page FIXED the issue for me :grinning:

https://www.youtube.com/watch?v=ao8CNIUYA1Y&feature=youtu.be

1 Like

That got it!
uBlock was blocking it!
Thanks @sharpe7852 !
I wonder where the content is coming from. Oh well… Who cares…

I’d pull my hair out if my UI took that long to load. Holy cow! LOL!

its coming from http://thetvdb.com/. They recently updated their API and for some reason it is now tripping ad blockers, not sure why.

1 Like

There are also chrome errors about cross site cookies as well… will be an issue at some point I guess.
A cookie associated with a cross-site resource at http://thetvdb.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.

I would hope that thetvdb will remedy that issue when it becomes a problem, else their API will be useless to just about anyone who currently uses it. Plus, it’s probably only an issue with cookies and not the images themselves.

Lol…I am currently on a German military base in Afghanistan that is why it is soo slow. I will be back in Australia soon enough :grinning:

Sorry if this a stupid question, but cannot find the answer.
Where i get the Radarr API key?

https://www.google.com/search?q=find+radarr+api+key

First result

Thanks, i followed your indications, installed radarr and got the API key, but after a restart i get this inside HA:

39

I configured the sensor in this way:

- platform: radarr_upcoming_media
  api_key: xxxxxxxxxxxxxxxxxxxx

Am i missing something?
EDIT: i added the IP of my MAC (where i installed Radarr app) in the configuration of the sensor and now i get the sensor online, but configuring the card in this way:

      - type: custom:upcoming-media-card
        entity: sensor.radarr_upcoming_media
        date: ddmm
        clock: 24
        image_style: poster

I get no card… Maybe i misunderstood something but as newbie cannot know what… any help?

Try the 2 links mentioned here in the readme here:

For the troubleshooting guide you’re mainly looking at the component section to be sure it’s working. The @thomasloven’s link will help if you are unfamiliar with lovelace addons. Also check out my post a few posts above here

Still working great after 103.2!

1 Like

I will love to send my new Movies and TV show from this card to TTS so when My TV setup turn on HA sends a TTS msg to tell me whats new any help will be nice :slight_smile:

You might be able to make something using creative Jinja or the like to read from the sensor’s values, but that’s not something that I can help you with. I’ll consider adding sensor attributes to make something like this easier for the components I’ve written, but it might be a while before I would get to it. I’ve currently got my hands full with Custom Header, then a Swipe Navigation rewrite, and then a complete rewrite of this card.

1 Like

Not sure if i missed it, but i’m still unclear on the Emby component, in particular this

Spy on Emby API calls to retrieve yours.

Might want to ask on that components GitHub as this is one that I did not create.

Hi
I’m new to home assistant. Upcoming Media Card is the first card I installed.
Everything works fine except when I try to split movies and tv shows.
Here is my configuration.yaml :

sensor:
  - platform: plex_recently_added
    name: Derniers films
    token: !secret plex_token
    host: !secret unraid_ip
    port: 32400
    section_types:
    - movie
  - platform: plex_recently_added
    name: Derniers épisodes
    token: !secret plex_token
    host: !secret unraid_ip
    port: 32400
    section_types:
    - show

And the ui-lovelace section :

      - type: custom:upcoming-media-card
        entity: sensor.plex_recently_added
        title: Plex
        image_style: fanart
        hide_empty: true
        all_shadows: off
        date: ddmm

I’m sure I forgot something but I don’t know what
Can someone help me please ?
Thanks