TarheelGrad1998 / gallery-card

A custom card for Home Assistant that will display images and/or videos from a folder in the style of a gallery.
97 stars 30 forks source link

Images not picked up when used with Play Media to Tv via Google Cast #71

Open jane-t opened 10 months ago

jane-t commented 10 months ago

The dashboard displays, but the images are shown as broken links. I use Nabu Casa for external access, so I suspect the problem is that the card is using the internal address to access the images (perhaps)

My card code is as follows and works fine locally on web browsers, it also works fine when used remotely using Nabu Casa in the app.

`type: custom:gallery-card entities:

TarheelGrad1998 commented 10 months ago

Wow, so it's just the google cast that's the issue? I've never tried that, that's a heck of a trick there and you're probably right on the cause. I'll try to figure out how to debug it.

jane-t commented 10 months ago

Thank you for looking at it. I wanted to be able to show a slideshow on the TV, plus status information. The gallery worked fine right up to the point I tried to use it on the TV via play_media.

ludwig27 commented 7 months ago

Exact same issue here, except I am not using Nabu Casa. All images shown correctly on the web browser, but missing when casting to google chromecast. Prior to showing the dashboard, the TV does show a message stating that "The custom element: gallery-card does not exist", and shows the card code I have:

type: custom:gallery-card menu_alignment: Hidden entities:

ludwig27 commented 7 months ago

BTW, I read here (), the following (in case it helps):

"WHY DO SOME CUSTOM CARDS NOT WORK? Home Assistant needs to be configured to allow Home Assistant Cast to load custom cards. Starting with Home Assistant 0.97, this is done automatically. If you are on an older version, or have manually configured CORS for the HTTP integration, add the following to your configuration.yaml file:

http: cors_allowed_origins:

If you're a custom card developer: the most common mistake is that LitElement is extracted from an element that is not available on the page."