Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jane-t opened this issue Aug 12, 2023 · 4 comments
Open

Comments

@jane-t
Copy link

jane-t commented Aug 12, 2023

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:

  • media-source://media_source/local/wallpapers/
    menu_alignment: hidden
    maximum_files: 50
    slideshow_timer: 5
    random_sort: true
    caption_format: ' '
    `
@TarheelGrad1998
Copy link
Owner

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
Copy link
Author

jane-t commented Aug 12, 2023

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
Copy link

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:

  • path: media-source://media_source
    recursive: false
    slideshow_timer: '10'
    parsed_date_sort: false
    include_images: true
    slideshow_timer: '30'

@ludwig27
Copy link

ludwig27 commented Nov 24, 2023

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:
- https://cast.home-assistant.io
Some custom cards rely on things that are only available in the normal Home Assistant interface. This requires an update by the custom card developer.

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."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants