Iām trying to add an animation to the native badges. The animation code works in cards but I canāt get it to work in badges. Iāve canāt figure out the element to select it seems. Any help would be appreciated.
Hereās the badge YAML, the animation part works in cards but not this badge.
Iāve looked through many examples of this mod but havenāt found an answer yet to my particular question: Is there a way to make just the text state of an entity a certain color?
I posted about my specific situation here:
In this screen shot, the top is the standard script entity card. The blue RUN is the default color for this.
The bottom is a timer-bar-card where Iāve swapped out the state text from āOffā to āRUN.ā
Iām looking just to make the bottom āRUNā text blue again, not the whole entity.
EDIT: Many thanks to @LiQuid_cOOled who developed an answer
Hello good Morning!
Iām new to this forum as a writer, but learning and reading since more than 2 years, as i daily use my HA installation really intensive.
I was really happy with card_mod, until last weekend, where some Update popped up. HA update to 2025.2.1 Core / 2025.02.0 Supervisor / 14.2 OS / 20250205.0 Frontend.
Solar Dashboard is stuffed with info, but works for me so far, i liked the compressed look of so much detailed infom without icons in every line.
Summarized in one pic:
how it looks now, which code i used, and how poerfect it looked before the update.
Yes, there were changes in a basis UI element hui-generic-entity-row, scroll up a bit for my āWarningā post. So, probably styles for āthinned rowsā should be revised (I have no idea what āthinningā styles did you have).
Iām struggling trying to figure this out or do anything basic. Iāve searched this thread and looked at the links. Something simple as changing the icon color isnāt working for me when I have this code in my badge. If I select the the ha-state-icon element in dev tools and add a color property there, it changes the icon. I donāt know what Iām missing.
Thnaks a lot, tried some lines i found in several threads - at the moment its working. Added these lines in every entities, now it looks OKish, but its never nice that it works and i dont know HOW it works, if i want to change sth to it
Is there anyone able to help me? IĀ“ve been trying for 2 month to have this issue solved but I cannot find the correct selector to make the button show the complete name. I only see the āā¦ā. I have the correct css structure to modify it, but I cannot get it applied.
I have it here modified but I cannot make it point to .primary.