Hello,
Does anybody know how to adapt this code so that the color of the icon changes? (See picture)
type: heading
heading_style: title
icon: mdi:stairs
badges:
- type: entity
entity: sensor.ikea_bewegungsmelder_illuminance
heading: Flur
card_mod:
style: |
:host {
{% if states(config.entity) | int > 10 %}
--card-mod-icon-color: rgb(233, 176, 6); /* Dunkelgelb (DarkGoldenRod) */
{% else %}
--card-mod-icon-color: rgb(136, 136, 136);
{% endif %}
}