type: entity
entity: binary_sensor.vicare_burner_active
name: Brenner
theme: >-
{{'Fluent Green' if states('binary_sensor.vicare_burner_active') == 'off' else 'Fluent Orange' }}
state_color: true
card_mod:
style: |
ha-card {
--h1-font-size: 25px;
--body-font-size: 11px
}
tried it like that and like that:
type: entity
entity: sensor.11_schlafzimmer_temperature
name: Schlafzimmer
theme: |-
{% if (states("sensor.11_schlafzimmer_temperature")|int < 17) -%}
Fluent Purple
{%- else -%}
Fluent Green
{%- endif %}
state_color: true
unit: °C
card_mod:
style: |
ha-card {
--h1-font-size: 25px;
--body-font-size: 11px
}
nothing works