It works when i replace the icon with a pic inside the img-cell (i like to keep the icon though) but not inside the three custom fields or in the âstylesâ section of the custom fields.
Wondering if I could get some assistance with adding the battery level (sensor.steel_gate_battery_level) in the top right corner of my sensor cards? I see someone has done it and it looks great but I canât seem to see the full code.
Iâve managed to copy some code here to get my light brightness working that way and itâs super helpful so looking to add more value to some other cards. What would I need in the custom_fields section for a sensor to report a value?
Iâve been hunting high and low this evening trying to find the full code to implement the same circle battery levels inside cards that display the other sensors. Any chance you could provide a link?
This is only for the developper panel where you can test jinja2 templates. Unrelated to what button-card is doing or any other card.
You need to use css transitions for that but it works unreliably with media_player images as those are fetched asynchronously. Nothing I can do on button-card.
Yeah, thatâs because the icon represents the color of the light, and if the light is set to pure white (rgb(255, 255, 255)), then the icon is going to be white and since your background is white also itâs displayed but not visible. Iâm not sure how to fix this because everyone has a different theme and the background color is different for everyone.
But the icon shows as yellow in HA. That was shown in the image. Also if I use an entity card it shows yellow. I get that itâs white. Just shows different that in HA natively. Also I swear that this started maybe 4 or 5 versions ago and was not always like that. But I could be wrong.
I donât think HAâs icon follows the color of the light anymore. If you donât want the icon to follow the color of the light then you can use an empty value for the color parameter and then the icon will be yellow (or whatever your theme defines as the color for on).
As for default Home Assistant behavior:
If itâs slightly off white, it shows the color. If itâs exactly white, it shows paper-item-active-icon-color.
Itâs just weird to me that HA shows yellow icon when I set it to pure white, button card sets it to while. I dont know enough about theming, etc to know why the button card shows the âtrueâ color and an HA entity card shows yellow. Itâs not a big deal, just weird to me.