ashscott
(Ash)
September 5, 2021, 9:00am
1
For some reason, as yet unfathomable to me, I can’t get images to show on cards in lovelace.
I have an image located here
The card is configured as below:
I know it’s just a path thing but I can’t figure it out.
I’ve also tried /config/image/koi.png.
Any suggestions that’ll point me in the right direction?
T_L
September 5, 2021, 9:07am
2
I have mine located in the www folder and use local/xxx.png as image path. That’s what works for me.
ashscott
(Ash)
September 5, 2021, 9:09am
3
I don’t have a www folder.
Is your under config?
/config/www/
ashscott
(Ash)
September 5, 2021, 9:46am
5
Thank you!
Turns out it also required a restart.
1 Like
If anyone still runs into the same issue, I changed /local/floorplan.png to
http://homeassistant.local:8123/local/floorplan.png
and the floorplan finally showed.
I run HA in a virtual machine.
lepton
(lepton)
September 2, 2023, 10:43pm
7
I have the impression that the Home Assistant “local” feature is indeed broken (also still in 2023). I don’t see why these people can’t just properly document all the preconditions required for a given feature to work.
Unfortunately I am still struggling with this topic.
I am trying to use a picture in a dashboard card and tried to add it via “www”-folder.
type: custom:lawn-mower-card
entity: lawn_mower.yuka
image: http://homeassistant.local:8123/local/yuka.png
I already tried all kinds of variants - using the IP-Adress of HA instead of homeassistant.local, using the Nabu Casa Cloud Link, but nothing seems to work.
Also tried with HTTPS instead of HTTP.
Am I missing something with the image path?
Why not using “/local/file.png” as a path?
Also, filenames are case-sensitive, should be “Yuka”
I tried that also - unfortunately not working.
What I did notice is that when I use http:// this small icon appears in the card.
When I use https:// instead the icon disappears but the image is still not appearing.
I used https://myipadress:8123/local/Yuka.png