Dear All,
I’m new to HASSIO (coming from FHEM) so I need some help from the community.
I want set up an automation for water level in my tavern. I created a sensor in my configuration.yaml.
How can I use the states of this entities to create an automation to hold the water-level between to distances?
I looked into the automation menu but didn’t found the point to choose my defined entity.
here is the definition of my entity/sensor:
template:
- sensor:
- name: "Pegel Regenspeicher"
state_class: measurement
unit_of_measurement: "cm"
unique_id: regenspeicher.pegel
state: >
{% set PegelRegenspeicher = states('sensor.shelly_uni_regenspeicher_adc') | float %}
{{ ((PegelRegenspeicher - 1.04) * 40.485) | round(0, default=0) }}
- name: "Pegel Pott"
state_class: measurement
unit_of_measurement: "cm"
unique_id: pott.pegel
state: >
{% set PegelPott = states('sensor.shelly_uni_pott_adc') | float %}
{{ ((PegelPott * 40.485)-123.387) | round(0, default=0) }}
best regards from Germany
//Erik