I have used this code in long time and suddenly its broken.
I have no clue why. Tried with the css code inspector but cannot se why. I have several other cards (not using entities list) where card_mod works:
- HA 2025.11.2
- Cardmod 3.5.0
Here my card:
type: entities
entities:
- entity: update.rdisnvr_firmware
card_mod:
style: |
:host {
{% if is_state('update.rdisnvr_firmware', 'on') %}
color: lightcoral;
{% else %}
color: lightgreen;
{% endif %}
}
- entity: update.front_door_firmware
card_mod:
style: |
:host {
{% if is_state('update.front_door_firmware', 'on') %}
color: lightcoral;
{% else %}
color: lightgreen;
{% endif %}
}
- entity: update.carport_firmware
card_mod:
style: |
:host {
{% if is_state('update.carport_firmware', 'on') %}
color: lightcoral;
{% else %}
color: lightgreen;
{% endif %}
}
- entity: update.carport2_firmware
card_mod:
style: |
:host {
{% if is_state('update.carport2_firmware', 'on') %}
color: lightcoral;
{% else %}
color: lightgreen;
{% endif %}
}
- entity: update.haven_firmware
card_mod:
style: |
:host {
{% if is_state('update.haven_firmware', 'on') %}
color: lightcoral;
{% else %}
color: lightgreen;
{% endif %}
}
- entity: update.katte_cam_firmware
card_mod:
style: |
:host {
{% if is_state('update.katte_cam_firmware', 'on') %}
color: lightcoral;
{% else %}
color: lightgreen;
{% endif %}
}