Hey
I’m playing around with an automation that would set my hvac to a different temperature when we are not at home and then put it back on when we are back home.
It looks like this right now:
alias: CLIMATE AWAY/HOME
description: Control hvac based on precense
trigger:
- platform: state
entity_id:
- input_boolean.alarm_on
to: "on"
for:
hours: 0
minutes: 30
seconds: 0
id: "16"
- platform: state
entity_id:
- input_boolean.alarm_on
to: "off"
for:
hours: 0
minutes: 2
seconds: 0
id: "20"
condition: []
action:
- service: climate.set_temperature
data:
temperature: {{trigger.id}}
target:
entity_id: climate.luftvarmepump
mode: single
My issue is that the automation wont allow me to set the temperature to “{{trigger.id}}” but I use the “trigger.id” in a similar way when I want to control lights or similar.
Any ideas on how to do this properly?
I know i can do this easily with two different automations, but the idea is to use just one to make it “simple”.