Hello,
I hope you can help me. I want to change the text of the state from on/off to open/close.
I have this code in the configuration.yaml:
platform:
template sensors:
Garage open/close:
friendly_name: Garage open/close
entity_id: binary_sensor.shelly1_bcddc277829e_external_input
value_template: > {% if is_state(‘binary_sensor.shelly1_bcddc277829e_external_input’, ‘on’) %}open {% else %}closed{% endif %}
Wenn i check the configuration the system writes a failure.
Can you help me to reach my result?
Thanks in advance,
Dominik