this post was submitted on 14 Nov 2023
19 points (100.0% liked)

homeassistant

12146 readers
55 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 2 years ago
MODERATORS
 

I'm pretty new to HA. I've set it up and I keep editing the confirmation and everytime I restart to apply the changes, all the switches, sensors and even the thermostat lose their values. The most annoying is the thermostat (classic thermostat entity) because I have to turn it on selecting heat/cool and set the temperature. Is there a way to keep all these values across restarts?

Edit: I'm using HA OS on Proxmox. All the sensors and switches slowly goes back to "normal" as soon as they publish their state, apart from some entities that have values provided by HA itself and not by the devices (like the thermostat).

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Restoring the states depends on the recorder. What are your settings regarding the recorder?

Edit: reference https://www.home-assistant.io/integrations/recorder/

[–] [email protected] 1 points 1 year ago (1 children)

Ah, interesting!!! I've tried enabling it just by adding recorder: in it the configuration file that, if I didn't get it wrong, should record everything without exclusion, but...it doesn't sensors/switches/thermostat setpoint and state are lost at config reload. Am I doing something wrong?

[–] [email protected] 3 points 1 year ago (1 children)

recorder is enabled by default. however, when you are using docker it might be possible that the default file data base (it's folder) is not mapped to a persistent location outside the container (resp. in the host file system).

however, I really do not know much about all this docker related stuff. my recorder suggestion was just a shot into the blue. if I would be facing this problem I might just try to set up a relational data base like MySQL or PostgreSQL as a target for the recorder.

[–] [email protected] 1 points 1 year ago (1 children)

The recorder was indeed already enabled, I've noticed from the home-assistant_v2.db file. Nevertheless I'm still losing everything when I reload the config. I'm not using docker, but HA OS. Any other...shot in the blue? 😁

[–] [email protected] 1 points 1 year ago (1 children)

is the history of the values available after restart? like the graphs shown when you click a sensor entity?

[–] [email protected] 1 points 1 year ago

Yes, the history of there, with some blanks around the time I've done some config reload