I would like to start using floorplans/maps with various device actions on them. This means I need locally stored images, that can be seen over the network.
I managed to upload images to HA, but as they need to be accessed with a token, I either need to refresh the token every day (no), or have an image with a long-lived token (also not a good idea).
How have other people done things?
Is it worth spinning up an http image host?
Or maybe throwing files into an nginx folder inside HA?
Thoughts on a postcard :)
Aha, that was what I was after, big thanks!
So, after a bit of meddling:
The location I was placing things in was media>my media (from the HA UI).
Assets there are stored in /media, and served in 8123/media/local, but require an autoSig.
Changing permissions doesn’t affect the availability, no sig is a 401 error.
However, if the file is copied from /media to /config/www/ , it’s then served (as you said) under 8123/local.
Brill, not too painful a process for a few static images (or indeed if I’m feeling brave, I could just symlink the folders).
Maybe one day there will be a way to upload background images for picture elements cards from the UI :)
If you’re using HAOS (ie not running in docker), there is an official add-on called “File Editor” that allows you to edit the config.yaml and upload files from the UI. It’s not perfect but gets the job done.
That’s a very good shout, as it’ll save me mucking about in bash.