Hi all!
I’m pretty new to HA. I’ve installed HA OS on a Proxmox server.
Everytime I restart HA or reload the configuration the state of all the entities are lost: all the lights goes back to the 2 lightnings icons until they (bTicino switches with custom MQTT) publish their state again, all the temperatures disappears until the Aqara sensors publish the state again (even these are custom MQTT, I don’t use any integration) as well (and the most annoying) the generic thermostats that lose the setpoint and the state (heat/cool/off).
Here is my configuration.yaml file:
I’ve tried using “retail:true”, but it didn’t do anything.
These are just singles entities of a lot, I didn’t want to write them all since they are all the same.
Thanks!
That will help HA to retrieve the state of those, right, but HA should retain the states itself. I have another installation where all the states are kept across config reload.
Moreover the thermostat status is managed and stored only by HA.
What I meant is that HA should keep the values over config reload regardless MQTT Actually, it does, I’ve tried on another instance and it does keeps every sensor/switch/thermostat state even when I reload the config, even without the retain flag on the MQTT messages that the devices send.
Edit: sorry, I’ve done the test to quickly and I’ve turned off the wrong MQTT instance leading me to believe what I’ve written up here.
Sorry about that, you’re right, I was working on 2 different HA instances and I’ve turned off the wrong MQTT broker while restarting the other HA that kept the lights value because of the retain messages.
But, but what about the entities that are created in HA itself that don’t even have MQTT?
For example I’ve just created a slider:
If I change the value and reload the configuration the value is kept there in the HA test instance, but not in the production instance.
What could have I done wrong?