Hi,
I have an Sensor called : switch.garagentor
The States in the Dashbord are an/aus(on/off).
How can i transform this in the Dashbord to Auf/zu (Open/Close).
The Device is an MQTT Device from FHEM.
Thx ,
Andi
Hi,
I have an Sensor called : switch.garagentor
The States in the Dashbord are an/aus(on/off).
How can i transform this in the Dashbord to Auf/zu (Open/Close).
The Device is an MQTT Device from FHEM.
Thx ,
Andi
example:
template:
- sensor:
- name: "Kettle"
state: >
{% if is_state('switch.kettle', 'off') %}
off
{% elif state_attr('switch.kettle', 'W')|float < 1000 %}
standby
{% elif is_state('switch.kettle', 'on') %}
on
{% else %}
failed
{% endif %}
state: >
{% if is_state(‘switch.kettle’, ‘off’) %}
off
Thank you
here in this Example stays off - off or not ?
You just need to change the device class. Try:
device_class: door
or:
device_class: garage_door
Thanks thats it !!