I noticed this morning that my energy costs were a lot higher than usual. Unfortunately I had to go out for the day and could not investigate.
After arriving back home I discovered that the automation that changes my energy tariff from peak to off-peak failed to run yesterday evening. Why?
Because I restarted home assistant at a few seconds before 9pm - the time my tariff changes to off-peak for the whole weekend.
It was relatively easy to re-calibrate my grid import energy utility meters that updated my daily costs back to normal.
I also copied all the 5 minute LTS from the peak sensor to a spreadsheet ready to set them to 0 and update the off-peak sensor. However actually making the change causes the statistic editor to go back to the current time. I realised that to make the hundreds of changes I need to would take far too long.
I might come back to it in a week when it has been down sampled from 5 minute data to hourly data. Less than 24 changes that way.
Lucky for you it was just data. I had a reboot that skipped turning my 600W dehumidifier off. I noticed the next day. That was actual money. The good news: I learned from HA statistics that the 300W setting the dehumidifier worked just as well and I also realized that I should put a safeguard in the automation.
Good point; my example isn’t exactly right for this use case. But I was thinking maybe shorten the times to just a few minutes apart, to cover brief outages like an update. You would lose a little data during that time HA was down anyway, but at least once things come back up the tariff change would be applied.