Automation nor triggering

My automation does not trigger. I think it is the template. It should start, when the heizkessel_temperature is higher than the (pufferspeicher_temperature + 15)

alias: Pufferspeicher Pumpe an
description: ''
trigger:
  - platform: template
    value_template: >-
      {{ states('sensor.heizkessel_temperatur')|float >
      states('sensor.pufferspeicher_temperatur_3')|float + 15 }}
condition:
  - condition: numeric_state
    entity_id: sensor.heizkessel_temperatur
    above: '40'
  - condition: numeric_state
    entity_id: sensor.pufferspeicher_temperatur_3
    below: '55'
action:
  - service: homeassistant.turn_on
    target:
      entity_id: switch.pufferspeicher_pumpe
mode: single

If you put this in the developer tools > template editor does it return True/False

You should also be aware/consider that it will only trigger in the moment when it becomes true, not repeatedly while it is true. If that is not the intended behaviour we should rethink the triggers.

This works.

It is propably your second point. I am going to watch the automation. I thought the syntax was wrong. If that ist not the case it should work.

Thank you!

Great, so it should just be a matter of waiting for it to change from false to true.