Hi All,
Iāve read the whole thread (I must admit that I didnāt understand everything), but I didnāt find a solution to define a card-mod that applies to all entities (head and entities).
Currently I use the following code to define it for each entity separately:
type: entities
entities:
- type: custom:fold-entity-row
head:
entity: cover.alle_markisen
card_mod:
style: |
:host {
{% if is_state(config.entity,'open') %}
--paper-item-icon-color: red;
}
{%else%}
--paper-item-icon-color: green
{%endif%}
}
entities:
- entity: cover.markise_links
card_mod:
style: |
:host {
{% if is_state(config.entity,'open') %}
--paper-item-icon-color: red;
}
{%else%}
--paper-item-icon-color: green
{%endif%}
}
- entity: cover.markise_mitte
card_mod:
style: |
:host {
{% if is_state(config.entity,'open') %}
--paper-item-icon-color: red;
}
{%else%}
--paper-item-icon-color: green
{%endif%}
}
- entity: cover.markise_rechts
card_mod:
style: |
:host {
{% if is_state(config.entity,'open') %}
--paper-item-icon-color: red;
}
{%else%}
--paper-item-icon-color: green
{%endif%}
}
Is there a way to define only one card-mod that applies to all entities (head and entities)?