Change icon-color in badge depending on state

Hey there, I would like to change the color of the state in a badge depending on the entitiys (sensor) state. I installed custom-UI to change the color of the icon in cards. That works great, but I just do not know how to change the state-color of an icon in a badge.

Do you have any suggestions?

I have the same question.
Is there a solution for this?

That can be easily achieved using card-mod. Look for “Badges” section in 🔹 Card-mod - Add css styles to any lovelace card - #1396 by Ildar_Gabdullin.

1 Like