Looking for the most current, simplest (and ideally secure) way to add an image to my home assistant server (Pi w/ Home Assistant OS 0.115.2) and then reference it in a Picture Entity card.
The traditional way seems to be Hosting Files which requires manually creating folders, reboots, and publicly exposed files. I’m wondering if the new Media Source is the more modern way?
However, it’s unclear to me if / how Media Source items can be used in lovelace entities. I attempted things like /media/image_name.jpg but it does not work. The doc doesn’t help much.
Color me confused on how to best accomplish my goal (bolded above)
Dropping that into the Image Path of the Picture Entity card works but seems cumbersome and not the right way to go about it. Also makes the YAML editing in the UI impossible because it makes the UI edit element stretch way out to accommodate the long string and pushes Cancel, Save, and other elements off the screen.
Edit: Looks like that authSig value in the image string is user specific. If I try to view that Picture card from my wall panel (which is logged in as a different user) it doesn’t work. Guessing I’m going outside the bounds of what Media Source is meant for.
I have the same ask here. I recently found that everything in your www dir is more or less exposed to the internet without password, also when using nabu casa, so I changed my directory for images I take from my webcam and publish to my devices to the Media Source component.
Especially since the more recent security incidents I became more security aware. This works great when I attach it to a message I send to the IOS app since the app handles the auth to my instance.
But now I want to show the latest image, of a certain event when this image was shot, in the GUI, but I can’t get it to work. So if anyone has some good idea’s or if we can make this a standard practice with the enhanced security, I’m all for!
was this ever answered? Seems nobody can provide a way how to serve images from the /media share?
there have been recent posts asking about this on discord channels, but no response unfortunately. If it cant be done, its fine, but a somewhat definitive answer would be cool, and make us stop trying
I would love to know how to write the path (eg on a type: picture card) to files stored on the /media share in a folder /images… btw, shouldnt the UI editor have an image selector in place there?
hosting the files in the /config/www folder is no problem. its just that the /media share seems not to be found, even after enabling media_source: and image: in configuration.yaml.
I can find the images via Media in the left side menu and browse local files
I came here looking for the same answer. In its place, I’m using gallery-card. It supports media source. I set menu_alignment to hidden and maximum_files to 1. That was I just get a single image and a tight frame. I also set show_reload to true as my images change frequently. Here my config:
I cannot figure out how this works
My media path is
/media/Pfanzen/Esszimmer /Calathea
I want more gallery panel cards with oder medias
my yaml settings for the card is seen in the screenshot
i already use a gallery panel card (the picture shown) but there is no media path configured
I spent some time trying to show pictures stored in media source (so they’re private and not public) in lovelace with no luck so… I’ve built a very simple cards that gets the job done.
Hi.
Im trying to do slideshow from images in certain folder.
I have mapped Media network storage for HA and can access photos from Media on side bar.
If I have understood Gallery card should be able to do this slide show?
But after 2 days of googling I havent been able to get single image to show up in Gallery card nor Picture card.