Allow templates to be used with above:,below: & for: in trigger

figured this out myself. Ended up with such a statement.

- conditions: >-
        {% if is_state ('input_select.ac_studio_mode','off') %}
          {{ states('sensor.temperature_lumi_158d0003f0530a')|float > states('input_number.temp_day_upper_threshold')|float }}
        {%else%}
          {{ states('sensor.temperature_lumi_158d0003f0530a')|float > states('input_number.temp_day_upper_threshold')|float - states('input_number.tolerance')|float }}
        {% endif %}

Can we get this feature pleeease?

3 Likes