Thanks, yes in the live automation it is set to 30 seconds. this automation was a prototype that I resurrected to try and not have the resultant hvac mode hardcoded like in the live automation. And yes, it’s to stop the HVAC being turned back on and overriding the automation
thank you that has the same functionality but it also fails at the same place. When turning the thermostat back on in HEAT (full auto) mode it sets the mode to FAN ONLY (temporary manual)
the scene_id before seems to be changed at light off / window closed … before changed to 29 March 2023 at 17:27
Bedroom changed to Fan only triggered by automation window test 2 triggered by state of Bedroom light
17:27:12 - In 1 second
window test 2 triggered by state of Bedroom
17:27:12 - In 1 second
Bedroom changed to Heat triggered by automation window test 2 triggered by state of Bedroom light
17:27:12 - In 1 second
before changed to 29 March 2023 at 17:27 triggered by automation window test 2 triggered by state of Bedroom light
17:27:10 - Now
window test 2 triggered by state of Bedroom light
17:27:10 - Now
Bedroom light turned off
17:27:10 - Now
That blueprint monitors the window’s state but not the thermostat’s state. So if someone turns the thermostat back on while the window is open, it won’t turn the thermostat back off.
But not good enough to be the solution. Apparently ‘sets the helper when the mode is changed, but condition it to NOT be “Off”’ is all you needed to do to solve it?
so is there a way to replace heat with a variable = original state? or do scenes have properties like scene.state I can reference instead of whole scene, like scene.before.hvac_mode ?
That’s a Device Action and it doesn’t support templating (i.e. none of its options can be assigned a variable’s value or some other entity’s value).
However, a service call, like the climate.set_hvac_mode service call I used in my example above, does support templates. So if you have stored the thermostat’s original state in an Input Text (let’s call it input_text.small_bedroom) then you can reference its value like this:
No entities found for input_text.bedroom or input_text
in developer tools templates value: “{{ states(‘climate.bedroom’) }}” results in a string value: “heat”
Triggered by the state of light.bedroom_light at 30 March 2023 at 18:37:38
Choose: Option 1 executed
Stopped because an error was encountered at 30 March 2023 at 18:37:38 (runtime: 0.04 seconds)
expected HVACMode or one of 'off', 'heat', 'cool', 'heat_cool', 'auto', 'dry', 'fan_only' for dictionary value @ data['hvac_mode']