Thursday my Raspberry Pi 4 was not working any more. The problem was that the power supply was dead. So I changed it and because the device was not working for many hours I thought it was a good idea to choose other sensors in the Engery dashboard for electricity (because that day, the statistics were missing).
The old sensors that I was using were:
utility_meter:
daily_energy_offpeak:
source: sensor.beeclear_power_usage_low
cycle: daily
daily_energy_peak:
source: sensor.beeclear_power_usage_normal
cycle: daily
Those sensors (daily_energy_offpeak & daily_energy_peak) used I for some years even before the dashboard was introduced.
But the sensors:
sensor.beeclear_power_usage_low & sensor.beeclear_power_usage_normal are much smarter to use because the give the latest electricity reading of the smart meter. So in my case when your device is not working for some hours it will correct itself.
Now the problem:
The first half month of jan 2023 is missing and also everything of 2022 is missing.
I assume that everything still is available in the database (mariadb). How can I get it back?