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

Trouble showing media source #37

Closed
AnthonyKNorman opened this issue Apr 22, 2022 · 5 comments
Closed

Trouble showing media source #37

AnthonyKNorman opened this issue Apr 22, 2022 · 5 comments

Comments

@AnthonyKNorman
Copy link

Hi

error in card:

Path does not exist. media-source://media_source/local/front_drive/plant.jpg

yaml:

type: custom:gallery-card
entities:
  - path: media-source://media_source/local/front_drive/plant.jpg

Run this in a browser and it produces the required image

http://192.168.68.130:8123/local/front_drive/plant.jpg

Is there anything else I can tell you?

Thanks

@AnthonyKNorman
Copy link
Author

Hi, sorry

I now realise I was using the wrong directory.
Card works great, Thank you.

@TarheelGrad1998
Copy link
Owner

Glad you like it. Thanks!

@dbolton
Copy link

dbolton commented Jan 16, 2024

I could benefit from more complete examples. For example, how do I reference the images in /config/nest/event_media/6a9f9a6fbd8692dc5ef63004c98a09fb using media-source (ideally) or any other method?

image

card yaml (camera.front_door works, but none of my attempts to reference the snapshot images from the camera work.

type: custom:gallery-card
entities:
  - camera.front_door
  - sensor.nest
  - path: media-source://media_source/6a9f9a6fbd8692dc5ef63004c98a09fb/
  - path: >-
      media-source://media_source/local/config/nest/event_media/6a9f9a6fbd8692dc5ef63004c98a09fb/
  - path: media-source://api/nest/event_media/6a9f9a6fbd8692dc5ef63004c98a09fb/
menu_alignment: Responsive
maximum_files: 10
file_name_format: YYYYMMDD-HHmmss
caption_format: M/D h:mm A

config/configuration.yaml

sensor: 
  - platform: folder
    folder: /config/nest

I can see the images in the companion app under Media side bar > Nest > Front Door: Recent Events -- Just not using the gallery-card yet.

@timdonovanuk
Copy link

Any luck with this? I'm quite proficient in HA but this media_source stuff has me scratching my head.

"media-source://media_source" is how it's supposed to be? 😕

@dbolton
Copy link

dbolton commented Mar 24, 2024

After reading every relevant forum post and issue plus hours of experimentation, I concluded that media source isn't working with gallery card. And since gallery card is no longer under active development, that's unlikely to change.

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

4 participants