Access file system with lovelace

Hello,
I have installed the HA OS via ova-image on a virtual mashine (on my NAS).

Now for a visualization, I want to use pictures (e.g. a floor plan). Therefore I uploaded a PNG-picture to the /media folder. The picture is viewable with the filebrowser and through the mediaplayer.

But I cannot use that picture in lovelace with the code:

image: /media/plan.png

Seaching for a solution I found plenty suggestions:

  • folder needs to be mounted via configuration.yaml (different constellations)
  • using a different media folder (/config/media or /homeassistant/media/ or …)

None of these solutions worked.
I found no way to display any picture placed in the file system.

So my question: where to place pictures and how to link to them to use with lovelace.
Help is much appreciated.

/config/www/plan.png

works fine here

and then on lovelace it is

type: picture
tap_action:
  action: none
hold_action:
  action: none
image: /local/plan.png

Thanks for your reply!
I tried you way, but sadly that’s not working here…

Did you mount something in the configuration.yaml, like:

homeassistant:
  media_dirs:
    local: /media

Tried different combinations, but that also did not work…

no, no any mounts

it has to work according to documentation: HTTP - Home Assistant

Now I got it:
The “/config”-folder actually is named “/homeassistant” (folder with configuration.yaml inside)

Based on your suggestion, I created the folder

/homeassistant/www

Now I can access the files via:

image: /local/plan.png

Thanks for pointing me in the right direction!