Numeric state trigger above/below helper value

I want the trigger below to compare with a helper value:

input_number.threshold_overproduction_warning

instead of a fixed value 0.5

trigger:
  - platform: numeric_state
    entity_id: sensor.totaal_generatie
    above: 0.5

You can’t use templates or entity_ids for that field, you’d need to replace it with a template trigger.

trigger:
  - platform: template 
    value_template: "{{ states('sensor.totaal_generatie')|float > states('input_number.threshold_overproduction_warning')|float }}"
2 Likes

That got accepted so seems to work :slight_smile:
thanks for the help

2 Likes