Media folder!

I am really going to eat my hat!

Here is my config.yaml

homeassistant:

  media_dirs:

    day: /config/allmedia/day

    night: /config/allmedia/night

    other: /config/allmedia/other

    media: /media

I am using folder image_url: /night for wallpanel and it reads all the jpeg in it. However when I try to assign a background for my card none of these are working
/config/allmedia/other/123.jpeg
/allmedia/other/123.jpeg
/other/123.jpeg

then I put 123.jpeg into folder named “www” then /local/1233.jpeg works!!!

media folder configration should not be that complicated!!!

Everything put in /config/www is available unauthenticated at <your HA URL>/local/<path within www>. The www folder is the only folder that works like this. You cannot change the name or designate any other folder as the “unauthenticated access” folder.

Things you declare as media dirs are accessible as media sources in supported integrations. I have no idea where you’re trying to use those URLs but they don’t look like media source URLs. So I’m guessing you’re trying to use them somewhere that doesn’t support media sources and only allows unauthenticated images. If so the only place you can put those images is within the /config/www folder.

1 Like