thomasloven / lovelace-card-mod

🔹 Add CSS styles to (almost) any lovelace card
MIT License
1.04k stars 169 forks source link

—Card-mod-Icon doesn’t update in realtime #334

Closed Maddin1684 closed 6 months ago

Maddin1684 commented 6 months ago

Hey,

with the actual version of card_mod my icons doesn’t update in realtime. When I open a door, the icon doesn’t change instantly.

With the previous version there are no problems and everything works fine.

  - entity: binary_sensor.garagentur

icon: mdi:garage-variant secondary_info: last-changed card_mod: style: hui-generic-entity-row: $: | .text-content:not(.info) { color: {% if is_state(config.entity, 'off') %} white {% else %}

ff4040

{% endif %} ; } :host { {% if is_state(config.entity, 'off') %} --paper-item-icon-color: white; --card-mod-icon: mdi:garage-variant; {% else %} --paper-item-icon-color: #ff4040; --card-mod-icon: mdi:garage-open-variant; {% endif %} ;
}

thomasloven commented 6 months ago

Duplicate of #333. Please use the issue templates.