Hello - what’s the best way to capture a climate state? Often in the spring/fall I’ll turn off my HVAC system during the day… I want to setup an automation that turns it back on at bedtime. The only way to do that with my Honeywell T9 is to change the state from OFF to either Heat or Cool… that implies I need to programmatically know if it was in Heating or Cooling mode when I turned it off.
How do I do this? Via a Helper variable or a scene or ???
OK I’m close… I capture the hvac mode in the helper now when the system is turned ON. That’s working… Now how do I use that captured helper variable in an automation to turn the system back on once the automation detects it’s off? I’m not sure how to code the Call Service Climate: Set HVAC mode in yaml/gui.
Hmm… It’s not working… It must be something silly. Here is the automation to turn the system back on. I can confirm that the group variable has “heat” when this triggers:
alias: Thermostat - Turn back ON at 10pm if it was off
description: ""
trigger:
- platform: time
at: "22:00:00"
condition:
- condition: state
entity_id: climate.t9_thermostat
state: "off"
action:
- service: climate.turn_on
target:
entity_id: climate.t9_thermostat
data:
hvac_modes: "{{ states('input_text.thermostat_state') }}"
mode: single
And below are the entities available for my T9 thermostat:
Unless I’m mistaken, you are trying to revert back to your previous MODE, yes? That’s not turn on/turn off, it’s setting the HVAC mode from “off” to “heat” or “cool”.