Made an automation - when I open the window (have door/window sensor) my thermostat turns off. When i close the window it turns to the declared temperature of 21. Can the HA remember the temperature from before opening the window and set it when I close ? Right now my automation looks like this:
alias: Beedroon_off
trigger:
platform: state
entity_id: binary_sensor.sensor
to: ‘on’
action:
service: climate.set_temperature
entity_id: climate.bedroom_termostat_1
data:
temperature: ‘4.5’ ## 4,5 is off
alias: Bedroom_komfort
trigger:
platform: state
entity_id: binary_sensor.sensor
to: ‘off’
action:
service: climate.set_temperature
entity_id: climate.bedroom_termostat_1
data:
temperature: 21
Like chairstacker said, some thermostats have feature to set operation to heat/AC/off without touching the set temperature, that would be first thing to check.
To answer your question, you need to save the temperature somewhere, either try the variable approach, or publish to a MQTT topic, and use data_template for service to set the thermostat back to the saved temperature.
What kind of thermostat do you have?
Mine - an Emerson Sensi - doesn’t connect to HA directly, I have to go through Wink.
Through Wink, HA also has acccess to the scenes I defined in Wink.
when I set to vation od auto - it turns to the temperature assigned in MAX! Cube gateway. When i set 4.5 the thermostat turns off - it doesnt matter what temperature is in the room (it can be below 0) the heater wont heat. Earlier i found this: