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