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