I’m using picture cards to display the SoC of a battery and range of a car. I would also like to show an additional icon per card when the battery or the car is charging. Home Assistant has this information, but is it possible to add it in this card type, or is there any other way to achieve this?
Thanks, I haven’t tried this element yet. Technically it’s working for what I’m trying to do, but positioning elements is a nightmare. It looks different on every device and in preview.
It shouldn’t make a difference which device you are using. The elements are positioned with a percentage of the image size. If for some reason your image size different per device, you could use the conditional element and use the screen size tag.
Please note you can use xx,xx as a percentage, so that might tweak it a little.
I was able to set the color in the card, but regarding position, nothing is really working. The reason is that the aspect ratio changes based on the viewport. This can easily be tested be resizing the browser window and watch the card stretching in one direction. It’s especially bad with this layout: