I would like to save the current HVAC state of my Tado termostates and restore it within an automation.
First I tried creating a scene on the fly within the automation but upon restoring it i ran into problems a sceen which contained the thermostate in auto was alway erratically restored as heat
Then I tried storing the HVAC state in a variable
current_hvac_tado: "{{ states('climate.office') }}"
but when I try restoring the HVAC mode
data:
hvac_mode: "{{ current_hvac_tado }}"
target:
entity_id: climate.office
I get an error message