Closed ech0-py closed 4 months ago
The workaround will be adding the color option like
color: '{{ is_state("automation.heating_night_tariff", "on") | iif("yellow") }}'
Thanks for that workaround @ech0-py that works great.
Sticking to the theme that might be configured differently for any user I'd advise using instead something in the lines of:
color: '{{ is_state("automation.heating_night_tariff", "on") | iif("var(--state-active-color)") }}'
.
I hope to see this issue propperly fixed though.
I'm noticing this behavior as well. However, "active" seems to be automatically recognized for entities in the "light" domain; I don't even need to specify a template for active; the icon changes color as expected. However, for a fan it seems not to recognize the state or the template for "active". The color workaround above does work but it would be great if the state would automatically be recognized for all domains.
The "entity" option is required when you wanna use actions, but it seems entity's icon color takes precedence over "active" icon The state_color: true/false of entities card changes nothing
Browser: Chrome 111.0.5563.148 (or hass companion app, android) Hass: 2023.4.2 template-entity-row: 1.3.2 (HACS install)