Local images won't show, but external will

Hello again…

I have a “problem” I just can’t wrap my head around and understand…

if I want to use an image as a background in a dashboard, local images will not be displayed…:

Example:

This will not work:
background: center / cover no-repeat fixed url(’/local/bgpictures/picture.jpg’)

but this will:
background: center / cover no-repeat fixed url(‘https://www.someadress.com/images/picture.jpg’)

Both images are the same but it won’t show my local images that I have in the “www” folder and the image is inside a folder called bgpictures…

can someone please help me with this, cause this is really irritating…
I search around the web, but i can’t find a solution…

Best regards.

Does http:///local/bgpictures/picture.jpg work in your browser?

Nope, it does not… :frowning:

i found these lines online and added them as well to “configuration.yaml”, but it has no effect:

  allowlist_external_dirs:
    - '/config/www'

  whitelist_external_dirs:
    - '/config/www'

Your local URL is wrong.
You must be able to see the images in your browser.

Sorry but, no .

It’s not the wrong url…

Did you create a “bgpictures” folder under the “www” folder, and is the picture in that folder?
The “www” folder is identical to the “local” folder in the path.

Jupp, off course I did :wink:

OK, then it is strange that it does not work.
It’s a long time ago since I added background pictures.
Maybe you have to restart HA before it will pick-up?

If you can’t see the pictures then the URL IS wrong.
You need to make sure that either the files is placed where the URL is pointing or change the URL to where the files are.

Hi - did you manage to resolve this? I have the same issue and spent hours trying to work out before realising it was working if I accessed with my external url (via duckdns ddns) but from internal ip, can’t seem to see “[config]/www”. Thanks!