custom-cards / upcoming-media-card

📺 A card to display upcoming episodes and movies from services like: Plex, Kodi, Radarr, Sonarr, and Trakt.
281 stars 79 forks source link

Card is not showing up in UI nor recognised when adding it as a custom card in ui. #80

Closed ToXinE closed 2 years ago

ToXinE commented 2 years ago

Describe the bug:

I'm not able to use the "Upcoming Media Card" it's not detected by HA despite I've installed it with HACS.

Config YAML:

- type: custom:upcoming-media-card
  entity: sensor.radarr_upcoming_media
  title: Upcoming Movies

Components:

I tried with sonarr or radarr and it's the same with both.

HA Error:

(not useful as no errors where detected)

Troubleshooting Guide:

The troobleshooting page needs to be refreshed as paths are not the same when installing with the HACS addon.

Home Assistant Version:

System Health

version core-2021.12.9
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.63-v8
arch aarch64
timezone Europe/Paris
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 5000 Installed Version | 1.19.3 Stage | running Available Repositories | 931 Downloaded Repositories | 10
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 7.1 -- | -- update_channel | stable supervisor_version | supervisor-2021.12.2 docker_version | 20.10.9 disk_total | 29.0 GB disk_used | 6.2 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Network UPS Tools (0.9.0), Mosquitto broker (6.0.1), Studio Code Server (4.0.0), SSH & Web Terminal (10.0.1)
Lovelace dashboards | 2 -- | -- resources | 2 views | 6 mode | storage

Screenshots:

image image image ressources added by the HACS installation.

Additional Context:

DavidFW1960 commented 2 years ago

Have you added the custom-components as well? Does the sensor.radarr_upcoming_media exist (or Sonarr)

ToXinE commented 2 years ago

The sensors does exists as you can see here: image. Is this what you meant with "custom-components" ?

ToXinE commented 2 years ago

here is what I pasted in my configuration.yaml:

sensor:
  - platform: sonarr_upcoming_media
    api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    host: 192.168.0.1
    port: 8989
    days: 7
    ssl: false
    max: 10
  - platform: radarr_upcoming_media
    api_key: yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
    host: 192.168.0.1
    port: 7878
    days: 14
    ssl: false
    theaters: false
    max: 10

the only part I didn't do was to "Add the code for the card to your ui-lovelace.yaml" as I have no ui-lovelace.yaml (storage mode) so I paste it directly where i want my card to be.

ToXinE commented 2 years ago

the custom-components seems to work: When I set Attribut to 'Data', It display something. It only seems to be displayed in a nice way thought the custom card upcoming media. image

DavidFW1960 commented 2 years ago

You need to add it to Lovelace like this. You can do it in the GUI as well. image

ToXinE commented 2 years ago

ok, it's working now : the help page said:

- type: custom:upcoming-media-card
entity: sensor.radarr_upcoming_media
title: Upcoming Movies

I just had to remove the "-" in front of "- type:" ...

Thank you for your help !

DavidFW1960 commented 2 years ago

I just had to remove the "-" in front of "- type:" ...

yeah if you are in the RAW yaml config you need the '-' but in the GUI you don't