Disabling 'active' icons

Hey all, this is my first post here! I was wondering, is it possible to disable the dynamic coloring of icons? I finally got around to making a floorplan panel, however it’s a mess with all the different colors and icons. All my lights are a slightly different color (ranging from brown to yellow), the google home is showing album covers instead of just a yellow ‘active’ icon, etc.

Can I just make all icons blue when off, and yellow when on? I’ve tried everything I can think off in Lovelace, but nothing is working. “state-icon” has the dynamic icons, “icon” only shows a black icon and doesn’t react to all the state_filters I’ve tried (neither does state-icon by the way).

I figured it out, sorry guys! I’ll leave this up in case someone else stumbles on this:

I found out there is something called Custom UI, that provides some more features regarding customizing. Using a template that calls on these extra customization features, I was able to tell the icons what color to be based on the state.

By adding the following code to the entity in your customize.yaml (or under customize in you configuration.yaml) the icons can be whatever color you want:

  templates:
    icon_color: "if (state === 'on') return ['#FDD835']; else return ['#44739E'];"
1 Like