Every time I reboot Home Assistant or restart it all my sensors show glitches in the data either a very high or low value. If HA would stop all recording to the database until everything is running I think that would help. I could do a template for each sensor but it seems there should be a way to do this globally or just have it done automatically.
All entities are set to unknown
on start up, then they are either restored or receive an update from their integration. If you have template sensors that use the int()
or float()
functions or filters and specify a default of 0
then this is what is causing your glitches when the sate is unknown
. You can use the availability template option to avoid this issue. There is an example here.
Other types of sensors should not have this issue, mine certainly don’t. Do you have an example?
2 Likes