I use the Docker installation from Homeassistant.
Systemzustand
Version core-2021.12.0.dev20211113
Installationstyp Home Assistant Container
Entwicklung true
Supervisor false
Docker true
Benutzer root
Virtuelle Umgebung false
Python-Version 3.9.7
Betriebssystemfamilie Linux
Betriebssystem-Version 5.8.0-63-generic
CPU-Architektur x86_64
Zeitzone Europe/Vaduz
With Shelly 3Em I measure my consumption and display it in the Engergy Dashboard.
The Docker installation is checked with Watchdog and if there is a new Homeassistant version, it is reinstalled. In most cases, this happens between 4 and 5 o’clock in the morning.
Watchtower: 2021-11-13 04:58:37 (info): Found new homeassistant/home-assistant:dev image (778741cae828)
2021-11-13 04:58:48 (info): Stopping /homeassistant (2f8bcd85ece1) with SIGTERM
2021-11-13 04:58:56 (info): Creating /homeassistant
2021-11-13 04:58:57 (info): Removing image 2b043d5e5e79
Whenever the new version is installed with Watchdog and the Homassistant is then restarted, I lose the data in the energy dashboard for these hours.
But when I look in the database, there is data. Example:
## select `last_updated`, `state` from states WHERE `entity_id` = 'sensor.l1_energy'
2021-11-13 04:00:10.626055 36.18
2021-11-13 04:03:00.125383 36.19
2021-11-13 04:06:00.179368 36.2
2021-11-13 04:09:00.246567 36.21
2021-11-13 04:13:03.199644 36.22
2021-11-13 04:17:02.249588 36.23
2021-11-13 04:21:00.358747 36.24
2021-11-13 04:24:00.323526 36.25
2021-11-13 04:28:00.289141 36.26
2021-11-13 04:32:00.325560 36.27
2021-11-13 04:36:10.291757 36.28
2021-11-13 04:39:00.436884 36.29
2021-11-13 04:43:00.487479 36.3
2021-11-13 04:47:00.522421 36.31
2021-11-13 04:50:00.431299 36.32
2021-11-13 04:54:05.371880 36.33
2021-11-13 04:58:02.388377 36.34
Does anyone know a solution or is it a bug with the home assistant?