Help with an automation using states from manually created sensor

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

Are you using the Automation Trigger type of State? It won’t show as a Trigger type of Entity.

found it - thanks!
Am I right, that the trigger checks only the CHANGE of an entity NOT the value itself?
the value must be checked with conditions - correct?

You can use a numeric state to check the values between, above, over, etc. Otherwise it just triggers on a state match or the entity value. Yes only on changes.