- platform: template
sensors:
wasser_filter:
friendly_name: Wasserfilter
value_template: >-
{% set days = (states.sensor.erinnerung_wasserfilter.state | int) | int %}
{% if days == 0 %}
heute
{% elif days == 1 %}
morgen
{% else %}
in {{ days }} Tagen
{% endif %}
- platform: template
sensors:
wasser_filter:
friendly_name: Wasserfilter
value_template: >-
{% set days = states('sensor.erinnerung_wasserfilter') | int %}
{% if days == 0 %}
heute
{% elif days == 1 %}
morgen
{% else %}
in {{ days }} Tagen
{% endif %}