Does "Upcoming Media Card" "Sonarr Upcoming Media" still work?

@mkanet can you help with this ?
Still not able to get the deeplinks working and no information seems available on this subject, except your teasing clip

Hi @GJ8787 there are many people successfully using these integrations for months now. I have squashed all known bugs. There is a very high likelihood you’re doing something wrong. The most common mistake is not using the correct repos. You have to manually add the below repos to HACS before you can even install them.

Original Correct Repos:

An easy way to know if you’re using the correct repos/versions, your main HACS screen should contain the temporary warning messages in the screenshot below. They are only warning message that can be ignored for now. These messages will disappear soon once HACS approves these repos to be back on HACS:

hi @mkanet

Each integration is working flawlessly :slight_smile:
However, I can’t click through on them towards my Plex. I don’t know how to set that part up, or where to check when it’s not working

@mkanet Nevermind, I found out through your help I was using another version of the upcoming media card by NemesisRE

Many thanks for listing all repos !

1 Like

Youre welcome. Glad you figure it out.

I’ve been waiting impatiently for the HACS moderators to approve my PR’s from nearly 6 months ago for all these PRs (link below).

After this happens, it will be much easier to find and choose the official repos on HACS. Until then, we will have to see those temporary messages about the integrations being archived (shown in my screenshot above).

If there is anyone from the HACS moderation group is watching this thread
 can you please approve the PRs below? There are many people waiting for this.

https://github.com/hacs/default/pulls/mkanet

Hi, just curious if anyone else is having issues w/ the Sonarr and Radarr Upcoming Media cards before I open an issue on github? I think it started around 2024.08 update where after a reboot both would be stuck at initializing. Plex Recently Added continues to work fine.

I deleted the Sonarr and Radarr integrations and after re-installing they hang up upon setup.

Logger: homeassistant.config_entries
Source: config_entries.py:604
First occurred: 9:51:20 AM (2 occurrences)
Last logged: 10:05:41 AM

Error setting up entry Sonarr for sonarr_upcoming_media
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/sonarr_upcoming_media/__init__.py", line 32, in async_setup_entry
    client = await hass.async_add_executor_job(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError: Global task timeout

Hi @pavlov70 it sounds like you still have the old/outdated integrations stuck in your Home Assistant installation. You will need to remove the broken/outdated integration(s) completely first before you can install the newer integrations.

If youre not sure how to do this, you can open an issue at the appropriate repo to get assistance.

Hi, apologies for the late response. Everything is working again, though not exactly sure how. I did a HassOS update in the last few days so maybe the full restart “fixed” things.

Thanks for the great integrations, btw!

1 Like

Hey @mkanet , any chance you could please share your raw code on how to make this view you added in this picture? i have been trying for hours with no luck. Thank you.

All those integrations were updated, I dont know what you’re running. But make sure you’re running the latest :slight_smile:

I have figured it out eventually, thank you :slight_smile:
Sharing in case others might have the need for it as well:

  - title: null
    type: sections
    entity: sensor.plex_plex_recently_added
    image_style: fanart
    line_size: small
    sort_by: airdate
    enable_transparency: true
    icon: mdi:plex
    theme: ios-dark-mode-blue-red
    cards: []
    max_columns: 3
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Plex Recently Added
            heading_style: title
            icon: mdi:plex
          - type: custom:upcoming-media-card
            entity: sensor.plex_plex_recently_added
            image_style: fanart
            line_size: small
            sort_by: airdate
            enable_transparency: true
            all_shadows: true
            max: 10
      - type: grid
        cards:
          - type: heading
            heading: Movies
            heading_style: title
            icon: mdi:movie-open
          - type: custom:upcoming-media-card
            entity: sensor.radarr_radarr_upcoming_media
            image_style: fanart
            line_size: small
            sort_by: airdate
            enable_transparency: true
            all_shadows: true
            max: 10
      - type: grid
        cards:
          - type: heading
            heading: TV Shows
            heading_style: title
            icon: mdi:television-box
          - type: custom:upcoming-media-card
            entity: sensor.sonarr_sonarr_upcoming_media
            image_style: fanart
            line_size: small
            sort_by: airdate
            enable_transparency: true
            all_shadows: true
            max: 10

Hey guys, my sonarr upcoming media stopped displaying
 upcoming media lol

It says its online, but nothing is showing up?

Any ideas?

I tried removing and readding, radarr is working fine.

The only thing is there is nothing coming up for some 11 days?

Thanks

@liminal if it was me, I would simply restore from backup from when it was last working. If it still doesn’t make a difference, then something must have changed/broken on your Sonarr server or network.

That ship has sailed LOL, I think I first noticed it a while ago, only now getting the time.

Anyway, if its a me thing and no one else is affected, ill try reinstalling the integration.

Thank Mkanet, you’re always super quick to try and help. Appreciate it :slight_smile:

You’re welcome. I haven’t made any recent changes; so, the change is going to be related to your setup, unfortunately.

BTW: Not sure if you know this, you can ask your support questions, feature requests, bug reports directly on the respective Github under: Issues:

https://github.com/custom-cards/upcoming-media-card

https://github.com/custom-components/sensor.sonarr_upcoming_media
https://github.com/custom-components/sensor.radarr_upcoming_media
https://github.com/custom-components/sensor.plex_recently_added

FYI: In case anyone noticed, all the above repos are now available/searchable on HACS without having to add the repo manually.

Just an FYI, Im getting;

When trying to add the sonarr upcoming media card from the;

Also, I cant see your one I think when looking though HACS

IS that the old one right?

Hi @liminal it looks like you tried to install the wrong/much older repo on HACS. You have to be careful not to install older/outdated forks of the original/official repos that don’t support installing via UI.

The older/incorrect forked repo was last updated over 3 years ago. You want to install the one that was last updated 4 months ago. You need to select the top item in your screenshot.below by maykar (original developer of the official repo).

NOTE: You need to remove/uninstall any versions of Upcoming Media Card, Radarr, Sonarr, etc
 you currently have downloaded/installed, reboot, then install the more recent versions (like the top item in your screenshot below)


Yeah that must have been it, it was only showing the older one. Rebooted and I could get the new one installed.

And after doing some actual troubleshooting I have worked out my issue.

It seems the calendar api path has changed?

https://192.168.1.2:7878/api/calendar?apikey=yOuRApiKEyg03sheRE&start=2018-10-31&end=2019-05-15

This shows nothing;

I now need /v3/ in there for it to return something.

Oh it is in the sonarr_api.py already

        self._address = 'http{0}://{1}:{2}/{3}api/v3/calendar?start={4}&end={5}&includeEpisodeImages=true&includeSeries=true'.format(
                            's' if ssl else '', 
                            host,
                            port,
                            "{}/".format(urlbase.strip('/')) if urlbase else urlbase,
                            get_date(timezone(str(self._hass.config.time_zone))),
                            get_date(timezone(str(self._hass.config.time_zone)), self._days)
                            )

Um, is it a date thing? My next show is not coming up for two weeks?

Thanks

1 Like

Yeah it was only 7 days; so all working now :slight_smile:

You have to remove and readd. Would be nice if we could confiure the days like you can with the Radarr upcoming media.