Hallo,
ich möchte mich hier mal dem Thread anschließen und meine Frage loswerden.
Änderung der Farbe vom Icon mittels “card_mod” habe ich bei “multiple-entity-row” hinbekommen.
Das Icon wird rot, wenn geöffnet … und grün, wenn geschlossen.

type: entities
title: Fenster/Türkontakte
entities:
- entity: binary_sensor.kuche_contact
type: custom:multiple-entity-row
name: Fenster Küche
card_mod: null
style: |
:host {
{% if is_state('binary_sensor.kuche_contact', 'on') %}
--card-mod-icon-color: red;
{% else %}
--card-mod-icon-color: green;
{% endif %}
}
show_state: false
secondary_info: last-updated
entities:
- entity: sensor.kuche_battery
name: Batterie
icon: false
type: attribute
- attribute: linkquality
name: LQI
icon: false
- type: section
- entity: binary_sensor.esszimmer_contact
type: custom:multiple-entity-row
name: Fenster Esszimmer
card_mod: null
style: |
:host {
{% if is_state('binary_sensor.esszimmer_contact', 'on') %}
--card-mod-icon-color: red;
{% else %}
--card-mod-icon-color: green;
{% endif %}
}
show_state: false
secondary_info: last-updated
entities:
- entity: sensor.esszimmer_battery
name: Batterie
icon: false
type: attribute
- attribute: linkquality
name: LQI
icon: false
Jetzt möchte ich das ganze noch in einer “tabbed-card” einbinden … siehe Bild
Aber das Icon wird nicht rot/grün animiert.
Funktioniert das so gar nicht, wie ich möchte ??

type: custom:tabbed-card
options: {}
tabs:
- attributes:
label: Untergeschoss
card:
type: vertical-stack
cards:
- type: vertical-stack
cards:
- type: custom:multiple-entity-row
entity: binary_sensor.kuche_contact
name: Fenster Küche
card_mod:
style: |
:host {
{% if is_state('binary_sensor.esszimmer_contact', 'on') %}
--card-mod-icon-color: red;
{% else %}
--card-mod-icon-color: green;
{% endif %}
}
show_state: false
secondary_info: last-updated
entities:
- entity: sensor.kuche_battery
name: Batterie
icon: false
type: attribute
- attribute: linkquality
name: LQI
icon: false
- type: custom:multiple-entity-row
entity: binary_sensor.esszimmer_contact
name: Fenster Esszimmer
card_mod: null
style: |
:host {
{% if is_state('binary_sensor.esszimmer_contact', 'on') %}
--card-mod-icon-color: red;
{% else %}
--card-mod-icon-color: green;
{% endif %}
}
show_state: false
secondary_info: last-updated
entities:
- entity: sensor.esszimmer_battery
name: Batterie
icon: false
type: attribute
- attribute: linkquality
name: LQI
icon: false