I have an automation running on every temperature change. But I have multiple conditions to abort the automation. As long as I know the condition need all to be true before the actions are executed. But I have 1 condition, the
- condition: template
value_template: '{{ states("sensor.heating_kitchen") | int < 28 }}'
this one is false even if all other are false. But the action with the action notify is still running but I have no idea why.
Here is the full automation
alias: Wenn im Küche zu kalt, Heizung hoch drehen
hide_entity: true
initial_state: true
trigger:
####Bei jeder veränderung der Raumtemperatur
- platform: state
entity_id: sensor.kitchen_multi_sensor_temperature
condition:
- condition: template
value_template: '{{ states.sensor.kitchen_multi_sensor_temperature.state|int < (states.input_number.kitchen_temp_max.state|float - 0.5) }}'
- condition: state
entity_id: input_boolean.nobody_home
state: 'off'
- condition: state
entity_id: input_boolean.sleepmode
state: 'off'
- condition: template
value_template: '{{ states("sensor.heating_kitchen") | int < 28 }}'
- condition: state
entity_id: binary_sensor.kitchen_window_sensor
state: 'off'
action:
#####Kitchen Heating Value Set
- service: climate.set_temperature
data:
entity_id: climate.kitchen_heating_heating_1
temperature: 28
- service: notify.devices_christian
data:
message: "Küche temp to low"