Troon
(Troon)
2
Please format your code correctly:
Most likely reason is that your template is comparing the string state of your sensor (states are always strings) with a number. To fix that, use:
value_template: "{{ states('sensor.nordpool_percent_to_average')|float(0) < 1}}"
Better still, use a numeric state trigger which does that conversion for you:
trigger:
- platform: numeric_state
entity_id: sensor.nordpool_percent_to_average
below: 1