Generic thermostat: keep states between restarts

It’d be good to keep states (set temperatures and away mode) of generic thermostat between restarts. It cause problems, when the thermostat is set, but the Raspberry Pi is reboots (e.g. because of security kernel update etc.) and the valuse reset to the defaults from configuration.yaml.

Off the top of my head this is already implemented if you have the logger component enabled. It grabs the last known state data from there.

Remove your defaults such as initial value for set temperature from your configuration. This works ok for me.

1 Like

It really works if you remove the defaults from the config file!
Thank you!

1 Like

Guys, it is not a solution as you cannot remove initial value for away_temp because it’ll leave you without Away mode toggle. Something needs to be done to solve it.

I tried to find easy way to solve, but can’t find any sollution in forums and google. I have got success with simple automation. Maybe some it can help as well