Hi all,
I’m quite new to HA, I’m already able to intergrate some of my home devices (Stiebel WPC / Zehnder ventilation system) but this was mostly copy and paste with some modification.
I now want to create a “Sensor” which supplies the status of a valve “Open, Close or Error”
I have two sensors:
binary_sensor.heating_basement_valve_closed → Sensor is high when valve is closed
binary_sensor.heating_basement_valve_open–> Sensor is high when valve is opened.
In my configuration.yaml i use:
sensor: !include_dir_merge_list sensor/
I’ve created seperate yaml file: sensor/temp.yaml with the following code:
template:
- sensor:
- name: "status_basement_valve"
state: >
{% if is_state('binary_sensor.heating_basement_valve_closed', 'on') %}
Closed
{% elif is_state('binary_sensor.heating_basement_valve_open', 'on') %}
Open
{% else %}
Error
{% endif %}
I don’t get an error when I restart HA but I can’t find the sensor in when I create a Entities card.
What am I doing wrong?
Thank you all in advance.