I have a script to perform some actions. I’ve made a button with a “call service” action to call this script. It works great, everything is wonderful. The only issue is, the icon is always yellow. It is not dependent on state or anything, I just want it to be the highlight color of the theme, but no matter what I do it is yellow. I can resize it, but not change the color.
This has been difficult to search for; often things about this pull results of how to change the color of an icon dependent on state (not what I want). Also, anything searching with the term “yellow” brings up nonsense results from the “Home Assistant Yellow” and not about yellow icons.
I don’t even know where yellow comes from, it’s not in my theme or user preferences or anything. Any advice on how to fix the color is appreciated.
That’s the thing, I don’t want it to change based on state, I just want it a static color (like the purple or something). I guess because that is a “state” element, I have to theme it that way, based on the state? If I inspect it, I can see it’s defined as a “HA State Icon” even though it’s calling a script? It’s meant to be kind of a “Stateless” button, so whatever state it has (it does show a state if I toggle the slider, “On” for every button) is I guess what I have to theme? I wish there was away to just…not make it a stateful button?