I’ve been looking for this for the last 4 hours, but I can’t get it to work. I’m trying to put the set temperature (19) of my tado thermostate in an input_number so I can use the value to restore it later. But my action part won’t work.
alias: Verwarming Living Pause
description: ''
trigger:
- type: powered
platform: device
device_id: a1a420173f2ba8df06fca90fce494db7
entity_id: binary_sensor.living_power
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
condition: []
action:
- service: input_number.set_value
data_template:
entity_id: input_number.lasttempliving
value_template: '{{ state_attr(''climate.living'', ''temperature'') }}'
mode: single