Hi there!
Is it possible to change the name of the german cover state ‘geschlossen’ to ‘zu’?
Thank you for helping me!
Not really
You can create a template sensor and define the values you want
That works fine, thank you! I did it like this
sensor:
- platform: template
sensors:
rolladen_alle_status:
friendly_name: "Rolladen Alle"
value_template: "
{% if is_state('cover.rolladen_alle', 'open') %}
{{ 'Auf' }}
{% elif is_state('cover.rolladen_alle', 'closed') %}
{{ 'Zu' }}
{% else %}
{{ '???' }}
{% endif %}"
But how can i change the icon depending on the custom status?
You can find a example in the doc
„ CHANGE THE ICON WHEN A STATE CHANGES“
@deluxestyle Thank you, BUT when using this example, home assistant says " [icon] is an invalid option for [sensor.template]" and the visual studio editor says “Property icon is not allowed”. I read somehint like this already. I think i read, that the icon property is only allowed at binary sensors?
Ah sorry. yes seems only for binary sensors
Not sure if there is another way
Sorry. It should be icon_template