16
submitted 1 day ago by [email protected] to c/[email protected]

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 :)

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 8 points 1 day ago

HA has a "www" folder that by default that is accessible to the network. Anything in /config/www appears at http://yourhassaddress:8123/local, so your images will be at http://homeassistant.local:8123/local/image.jpg

[-] [email protected] 3 points 1 day ago* (last edited 1 day ago)

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 :)

[-] [email protected] 2 points 1 day ago

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.

[-] [email protected] 2 points 1 day ago

That's a very good shout, as it'll save me mucking about in bash.

this post was submitted on 13 Jun 2025
16 points (100.0% liked)

homeassistant

14807 readers
23 users here now

Home Assistant is open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.

Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation

Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @[email protected]

founded 2 years ago
MODERATORS