I have a picture-element card to show a football match. I’m trying to add the club badge next to each team using an image as below but the image is not showing up, just a grey missing image box.
I have tried setting image : “/local/images/football/Liverpool.svg” and that works as expected and {{ sensor.next_liverpool_fixture_away_team }} returns Liverpool so the path would be the same.
Am I doing something wrong or is it not possible to do it this way?
I AM wanting to do something similar… and found this post but I’m confused what a hui-image-element is? I can’t really find any reference to this when Googling. After LOTS of fiddling I got the above code snippet to be accepted into my lovelace, I had to include it like this. At the moment it displays nothing, because I don’t have the liverpool fixtures sensors etc.
Is an image element for the picture-elements card which is being used in an ‘unsupported’ way as a row in an entities card. No harm in this as long as you accept the functionality might not be available in future releases.
Mr Ian would you mind posting the full ‘tab’ or ‘page’ for your lovelace config? I can’t figure out how to insert this into an existing lovelace ‘tab’ or ‘page’ ? Thank you
I’m also using node-red to send the full local image location as an MQTT sensor to Home Assistant but I’m not sure that’s gonna work…
Thanks Ian - got it sort of working but for some weird reason even though all the sensors are updating correctly unless I refresh the page, when the local URL changes, the lovelace page doesn’t want to show the image. It shows a broken image. But a refresh sorts it out straight away. Weird. Thanks
Old post but i´m having problem with this setup…
I´ve tried everything suggested above but i just cant style the image itself…
Not move it, size it, hide it, color it. nothing.
What am I doing wrong?
Note: I see the correct image, its just way to big. I´ve also tried Card Mod but without success