Hello,
I hope someone here can help me. I’m trying to create a blueprint, and the action works, but unfortunately the trigger doesn’t.
I suspect my variables are the problem, but no matter how I try, I can’t get it to execute automatically.
Is there a way to test a blueprint, similar to the developer tools?
Or does anyone know where my mistake is and can help me get started?
blueprint:
name: Heizungs-Offset anpassen
description: Passt das Offset von Heizungen anhand externer Sensoren an
domain: automation
input:
heater_temp:
name: Heizungstemperatur
description: Die aktuelle Heizungstemperatur der gewünschten Heizung
selector:
entity:
filter:
- domain: climate
heater_cal:
name: Heizungskalibrierung
description: Der aktuelle Kalibrierungswert der gewünschten Heizung
selector:
entity:
filter:
- domain: number
device_class: temperature
sensor_temp:
name: Sensortemperatur
description: Die aktuelle Sensortemperatur des gewünschten Raumes
selector:
entity:
filter:
- domain: sensor
device_class: temperature
trigger_variables:
heater_temp_trig: !input heater_temp
sensor_temp_trig: !input sensor_temp
triggers:
- trigger: template
value_template: >-
{{state_attr(heater_temp_trig,'current_temperature')|float
!= states(sensor_temp_trig)|float}}
conditions: []
variables:
heater_temp_ent: !input heater_temp
heater_cal_ent: !input heater_cal
sensor_temp_ent: !input sensor_temp
actions:
- target:
entity_id: !input heater_cal
data:
value: >-
{{((states(sensor_temp_ent)|float -
state_attr(heater_temp_ent,'current_temperature'))|round(1)
+
states(heater_cal_ent)|round(1))|round(1)}}
action: number.set_value
mode: single
Thanks in advance.
Nick



