For ESPhome there are often updates available, when installing them, the whole firmware of the sensors get’s recompiled and also the configuration get’s reapplied to the sensors.
As i use a global value as persistance for count values like gasmeter, powermeter, watermeter, etc. their values get reset to the value i once added to set the start count.
globals:
- id: total
type: int
initial_value: '1234567'
restore_value: false
How can i prevent that the value get’s reset or lost?
Where is it saved anyway? Inside HA or inside the sensor?