core: Generic Thermostat: Incorrect temperature after restart when preset mode is Away
The problem
When a generic thermostat preset mode is set to away and HA is restarted, the target temperature switches back to the normal mode target temperature.
What version of Home Assistant Core has the issue?
2022.4.4
What was the last working version of Home Assistant Core?
Never
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Generic Thermostat
Link to integration documentation on our website
https://www.home-assistant.io/integrations/generic_thermostat/
Diagnostics information
No response
Example YAML snippet
climate:
- platform: generic_thermostat
unique_id: garage_thermostat
name: 'Garage Thermostat'
heater: switch.garage_furnace
target_sensor: sensor.garage_sensor_air_temperature
min_temp: 0
max_temp: 21
ac_mode: false
target_temp: 15
cold_tolerance: 0.5
hot_tolerance: 0.5
min_cycle_duration:
minutes: 5
keep_alive: 300
away_temp: 1.0 # freeze protection mode
precision: 0.1
Anything in the logs that might be useful for us?
INFO (MainThread) [homeassistant.components.generic_thermostat.climate] Obtained current and target temperature. Generic thermostat active. 10.6, 15.0
Additional information
https://community.home-assistant.io/t/generic-thermostat-away-mode-temp-reset-on-ha-restart/411512/2
Duplicate of this stale, locked issue.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 18
Thanks for this solution. I did not realise the homeassistant/start trigger. I now used this option in the following manner:
In this way, I do not have to use a separate file, I keep everything within the homeassistant environment itself.
I have the same problem with HA 2023.9.2