How to I just add things from my Media which I uploaded to this dashboard? It doesn’t show up even if I directly open the picture and use the link and paste it in. What am I doing wrong here?
www=local you then can reference the file using local.
Specifically this
Hosting files
If you want to use Home Assistant to host or serve static files then create a directory called www under the configuration path (/config). The static files in www/ can be accessed by the following URL http://your.domain:8123/local/
EDIT…just saw your button card code is incorrect for entity_picture: here
Then the /media path becomes part of /local .
And put the mp3 in a folder in HA under
/media/mp3
(The media folder already exists, you would want to add a sub folder to that, or at least I did, to keep your OCD happy.)
When I want to use an MP3, the path is
So what if I’m using a custom:button-card how am I supposed to add it? Is it just
picture_entity: /local/media/dup.png
On the dashboard? I tried it and didn’t get anything. Just a white box. If I add a Boolean to it, it just shows the booleans icon photo.
I directly uploaded it right to the Media folder.
Yes. Changed it to show_entity_picture too. Nothing is available from the www folder. I even just put the same png files in there. It’s not available. How would someone access something from the www folder from the external Internet? Or just internally at least. Idk what I did wrong. I added media to my config too.
It says 401 unauthorized. Huh. I assumed it would display the picture. I uploaded it via file editor.
*I’m on the same local Network RN theirs no reason it shouldn’t work right? I mean it’s not like it could be an issue with loading it from a port that isn’t forwarded.