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

I just installed the below items via HACS.
-Upcoming Media Card
-Sonarr Upcoming Media

I then added the below to my raw configuration editor:

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

Lastly, I added the below lines to my configuration.yaml file:

sensor:
- platform: sonarr_upcoming_media
  api_key: 285e90a22afe48f3b05925ef15fdc2a1
  host: 192.168.1.2
  port: 9989
  days: 2
  ssl: false
  max: 10

My sonar URL is: http://192.168.1.2:9989
I can get to it in a web browser anywhere on my LAN.

Unfortunately, the card looks like this:
Screenshot

I’ve followed the instructions down to a T. I’m not sure what I’m missing. It doesn’t see the element for whatever reason. Hopefully, I’m just overlooking something.

where did you add the card configuration? You should just be creating a new manual card and pasting in what you have there. When I do it I need to get rid of the - so its:

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

Thanks for replying so quickly. I was adding those entries in the raw configuration editor before. If I add a blank card as you did; and, add the two lines without the hyphens, I get basically the same result:

I have already reinstalled these items via HACS and rebooted. I also double-checked my ui-lovelace.yaml file… it has the below lines right at the top:

resources:
  - url: /hacsfiles/upcoming-media-card/upcoming-media-card.js
    type: module

This is the first time I’ve been totally stumped on Home Assistant. I have to admit, it’s pretty frusterating.

when you installed the card in HACS did you get an option to load the card into lovelace. They recently changed it so you don’t have to manually copy and paste into your resources.

No it didn’t. It might have something to do with the resources: lines I added to ui-lovelace.yaml (per the HACS instructions for “Upcoming Media Card”):

resources:
  - url: /hacsfiles/upcoming-media-card/upcoming-media-card.js
    type: module

The actual location of this file on the file system (created by HACS) here:

./config/www/community/upcoming-media-card/upcoming-media-card.js

I have a similar question, but different result. I’m not getting an error, I simply have a blank page. I assume if I try to migrate to HACS it should just work*?

1 Like

I have exactly the same problem as you, my configuration seems to be good and yet nothing is displayed. I have a blank page and nothing else, after several hours of research and a lot of tutorials followed, nothing works, I still have a blank page.

If you found a solution, could you share it with me?

Yea, not working here either… removed and reinstalled several times… Odd thing is I dont even see it loaded during boot… I’m at a loss

It’s a shame that the nicest looking Home Assistant addons aren’t even in development anymore. The good news is they work great once you get them installed. There are alot of people still using them including me.

I was able to install and successfully use Upcoming Media Card,.Plex Recently Added, Sonarr Upcoming Media addons by cloning the original GitHub repositories and adding them under HACS/Custom Repositories (select the 3 dots on the top/right of the HACS screen). Or, you could add an existing repository like mine without cloning. I wasn’t able to get them to show until I did that.

1 Like

Hello! Might you consider adding Radarr upcoming media to your repository please?

I have the others working using your repository but don’t know how to do this myself for Radarr.

Thanks for reading!

Hi. Glad I was able to help.

I created a fork of the original/archived repository on GitHub… you can access it via the URL below:

GitHub - mkanet/sensor.radarr_upcoming_media: 🎬 Radarr component to feed Upcoming Media Card.

Hey man, thanks for posting this, I have been trying to get this to work for a while, using your repository made it work!

1 Like

I can only assume that this Sonarr/Radarr integration is dead now.

I tried the source version and this one. It seems to me that it hasn’t been updated to account for the changes in Sonarr/Radarr regarding the API calls. I think the calls are no longer accepted on /api but instead need to go to /api/v3 for calendar calls (https://sonarr.tv/docs/api/#/Calendar/get_api_v3_calendar).

After that, I’m unsure what else could be different in the response that could break with the current parsing.

I don’t get any errors, everything is just blank. Doing a test pull on /api returns a complete blank page.

Run this test on your Sonarr and you should get back a full JSON response.

http://{insert your sonarr address:port}/api/v3/calendar?apikey={insert your sonarr API key}&start=2023-05-26&end=2023-05-31&includeEpisodeImages=true&includeSeries=true

I don’t have any issues luckily. I’m using the latest Sonarr V3. However, I had to clone the original archived repositories and use my identical forked version and add them to HA"s custom repositories (see below screenshot). However, I haven’t tried Sonarr V4 beta yet or Radarr V4.

I’m actually surprised that nobody has continued maintenance of these integrations since they are after all the best-looking cards on Home Assistant currently; and, extremely useful. Hopefully, someone will maintain these repositories who knows what they’re doing.

Could you share your card YAML? Maybe I’m not creating the card right.

I am a little confused about how yours is still working though. Looking at the scraper code, it definitely goes to /api/calendar which doesn’t work on my install of Sonarr at all. All I get is a 404

What do you get back when you run these two different queries on your Sonarr?

http://{insert your sonarr 
address:port}/api/v3/calendar?apikey={insert your sonarr API 
key}&start=2023-05-26&end=2023-05-31&includeEpisodeImages=true&includeSeries=true
http://{insert your sonarr 
address:port}/api/calendar?apikey={insert your sonarr API 
key}&start=2023-05-26&end=2023-05-31&includeEpisodeImages=true&includeSeries=true

See below, I only pasted the first item for each response below:

[
    {
        "seriesId": 607,
        "tvdbId": 9655337,
        "episodeFileId": 14992,
        "seasonNumber": 1,
        "episodeNumber": 5,
        "title": "The Janitor’s Boy",
        "airDate": "2023-05-26",
        "airDateUtc": "2023-05-26T07:00:00Z",
        "overview": "Sims appoints Billings as chief deputy to keep tabs on Juliette, whose efforts to solve two murders lead to a showdown.",
        "hasFile": true,
        "monitored": true,
        "unverifiedSceneNumbering": false,
        "series": {
            "title": "Silo",
            "sortTitle": "silo",
            "status": "continuing",
            "ended": false,
            "overview": "In a ruined and toxic future, thousands live in a giant silo deep underground. After its sheriff breaks a cardinal rule and residents die mysteriously, engineer Juliette starts to uncover shocking secrets and the truth about the silo.",
            "network": "Apple TV+",
            "airTime": "03:00",
            "images": [
                {
                    "coverType": "banner",
                    "url": "https://artworks.thetvdb.com/banners/v4/series/403245/banners/6449d56a60674.jpg"
                },
                {
                    "coverType": "poster",
                    "url": "https://artworks.thetvdb.com/banners/v4/series/403245/posters/6448e8150ff14.jpg"
                },
                {
                    "coverType": "fanart",
                    "url": "https://artworks.thetvdb.com/banners/v4/series/403245/backgrounds/6448d53fbb199.jpg"
                },
                {
                    "coverType": "unknown",
                    "url": "https://artworks.thetvdb.com/banners/v4/series/403245/clearlogo/6455710e48c96.png"
                }
            ],
            "seasons": [
                {
                    "seasonNumber": 1,
                    "monitored": true
                }
            ],
            "year": 2023,
            "path": "E:\\TV\\Silo",
            "qualityProfileId": 5,
            "languageProfileId": 1,
            "seasonFolder": false,
            "monitored": true,
            "useSceneNumbering": false,
            "runtime": 52,
            "tvdbId": 403245,
            "tvRageId": 0,
            "tvMazeId": 38052,
            "firstAired": "2023-05-05T00:00:00Z",
            "seriesType": "standard",
            "cleanTitle": "silo",
            "imdbId": "tt14688458",
            "titleSlug": "silo",
            "certification": "TV-MA",
            "genres": [
                "Drama",
                "Science Fiction"
            ],
            "tags": [],
            "added": "2023-05-05T23:45:39.7260205Z",
            "ratings": {
                "votes": 0,
                "value": 0
            },
            "id": 607
        },
        "images": [
            {
                "coverType": "screenshot",
                "url": "https://artworks.thetvdb.com/banners/v4/episode/9655337/screencap/6438f1675af9f.jpg"
            }
        ],
        "id": 31292
    },
...
[
    {
        "seriesId": 607,
        "episodeFileId": 14992,
        "seasonNumber": 1,
        "episodeNumber": 5,
        "title": "The Janitor’s Boy",
        "airDate": "2023-05-26",
        "airDateUtc": "2023-05-26T07:00:00Z",
        "overview": "Sims appoints Billings as chief deputy to keep tabs on Juliette, whose efforts to solve two murders lead to a showdown.",
        "episodeFile": {
            "seriesId": 607,
            "seasonNumber": 1,
            "relativePath": "Silo - S01E05 - The Janitor's Boy WEBDL-1080p.mkv",
            "path": "E:\\TV\\Silo\\Silo - S01E05 - The Janitor's Boy WEBDL-1080p.mkv",
            "size": 4160916723,
            "dateAdded": "2023-05-26T01:34:44.1635162Z",
            "sceneName": "Silo.S01E05.1080p.WEB.H264-CAKES",
            "quality": {
                "quality": {
                    "id": 3,
                    "name": "WEBDL-1080p",
                    "source": "web",
                    "resolution": 1080
                },
                "revision": {
                    "version": 1,
                    "real": 0,
                    "isRepack": false
                }
            },
            "language": {
                "id": 1,
                "name": "English"
            },
            "mediaInfo": {
                "audioChannels": 5.1,
                "audioCodec": "EAC3 Atmos",
                "videoCodec": "h264"
            },
            "originalFilePath": "Silo.S01E05.1080p.WEB.H264-CAKES\\silo.s01e05.1080p.web.h264-cakes.mkv",
            "qualityCutoffNotMet": true,
            "id": 14992
        },
        "hasFile": true,
        "monitored": true,
        "unverifiedSceneNumbering": false,
        "series": {
            "title": "Silo",
            "sortTitle": "silo",
            "seasonCount": 1,
            "status": "continuing",
            "overview": "In a ruined and toxic future, thousands live in a giant silo deep underground. After its sheriff breaks a cardinal rule and residents die mysteriously, engineer Juliette starts to uncover shocking secrets and the truth about the silo.",
            "network": "Apple TV+",
            "airTime": "03:00",
            "images": [
                {
                    "coverType": "banner",
                    "url": "https://artworks.thetvdb.com/banners/v4/series/403245/banners/6449d56a60674.jpg"
                },
                {
                    "coverType": "poster",
                    "url": "https://artworks.thetvdb.com/banners/v4/series/403245/posters/6448e8150ff14.jpg"
                },
                {
                    "coverType": "fanart",
                    "url": "https://artworks.thetvdb.com/banners/v4/series/403245/backgrounds/6448d53fbb199.jpg"
                },
                {
                    "coverType": "unknown",
                    "url": "https://artworks.thetvdb.com/banners/v4/series/403245/clearlogo/6455710e48c96.png"
                }
            ],
            "seasons": [
                {
                    "seasonNumber": 1,
                    "monitored": true
                }
            ],
            "year": 2023,
            "path": "E:\\TV\\Silo",
            "profileId": 5,
            "languageProfileId": 1,
            "seasonFolder": false,
            "monitored": true,
            "useSceneNumbering": false,
            "runtime": 52,
            "tvdbId": 403245,
            "tvRageId": 0,
            "tvMazeId": 38052,
            "firstAired": "2023-05-05T00:00:00Z",
            "lastInfoSync": "2023-05-26T18:31:23.3483902Z",
            "seriesType": "standard",
            "cleanTitle": "silo",
            "imdbId": "tt14688458",
            "titleSlug": "silo",
            "certification": "TV-MA",
            "genres": [
                "Drama",
                "Science Fiction"
            ],
            "tags": [],
            "added": "2023-05-05T23:45:39.7260205Z",
            "ratings": {
                "votes": 0,
                "value": 0
            },
            "qualityProfileId": 5,
            "id": 607
        },
        "id": 31292
    },

Card code is very simple:

accent_color: '#222222'
border_color: '#222222'
box_shadows: false
entity: sensor.recently_added_tv
image_style: fanart
title: TV
type: custom:upcoming-media-card
accent_color: '#222222'
border_color: '#222222'
box_shadows: false
entity: sensor.recently_added_movies
image_style: fanart
title: Movies
type: custom:upcoming-media-card
accent_color: '#222222'
border_color: '#222222'
box_shadows: false
entity: sensor.sonarr_upcoming_media
image_style: fanart
title: Upcoming TV
type: custom:upcoming-media-card

Here’s my suspicion, you’ve had your Sonarr install for some time now? Prior to v3 release?

Mines new, never had a release other than v3. Also running in Docker on UnRaid so it’s updated regularly.

I’m betting that if yours is older it’s somehow ‘grandfathered’ in the old /api access and newer installs don’t have that.

It was a clean install from scratch for Sonarr V3. I never used Sonarr V2.

PS: I don’t use the Docker version. I installed the native Windows version on Windows 11.

OK so this gives me something to go on.

thx for your help!!

I’ll update this thread when/if I find an answer

BTW: Even Radarr V4 uses API V3 so, hopefully, that also means that Sonarr V4 will also be backwards compatible just like Sonarr V3.

I also get a valid response below:

http://{insert your radarr 
address:port}/api/v3/calendar?apikey={insert your radarr API 
key}&start=2023-05-26&end=2023-05-31