Hey everyone, I’m trying to set up an automation for my smart thermostat, and I’m running into a bit of a snag. Let me walk you through what I’m trying to achieve and where I’m getting stuck.
So, the goal is to have my climate system adjust its temperature based on an eco-friendly setting. I’ve got a blueprint set up with a numeric_state condition that checks if the current temperature of my climate device is higher than a specific eco temperature. The eco temperature is stored in a variable called temperature_eco, which I’ve set up as an input number.
Here’s where things get tricky. If I use a constant value, like 16, the automation works perfectly. But I need this to be dynamic because not all climates have the same eco temperature. That’s why I want to use the placeholder for temperature_eco. Unfortunately, when I try to use the placeholder, the automation doesn’t work as expected.
I’ve tested the sequence part of the automation, where I set the climate temperature to {{ states(temperature_eco) | float}}, and that works fine. So, the issue seems to be isolated to the condition part of the automation.
I’ve included the blueprint code below for reference. If anyone has any insights or suggestions on what might be going wrong, I’d really appreciate it. Maybe there’s a syntax issue or a misunderstanding of how placeholders work in this context. Either way, your help would be greatly appreciated!
Thanks in advance for your time and expertise!
yaml
blueprint:
name: Heizung
description: Temperatur der Heizung wird neu gesetzt
domain: automation
input:
trigger:
name: Auslöser
description: Trigger-Entität (input_boolean.climate_work_start_check)
selector:
entity:
domain: input_boolean
entity:
name: Heizung
description: climate.arbeitszimmer
selector:
entity:
domain: climate
temperature_eco:
name: Spartemperatur
description: input_number.climate_work_eco
selector:
entity:
domain: input_number
variables:
temperature_eco: !input ‘temperature_eco’
trigger:
- platform: state
entity_id: !input trigger
to: ‘on’
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: !input ‘entity’
attribute: temperature
above: ‘{{ states(temperature_eco) | float}}’
- condition: state
entity_id: binary_sensor.zu_hause
state: ‘off’
- condition: state
entity_id: input_boolean.vacation
state: ‘off’
sequence:
- service: climate.set_temperature
target:
entity_id: !input ‘entity’
data:
temperature: ‘{{ states(temperature_eco) | float}}’
mode: restart
max_exceeded: silent