I’ve seen this a few times before and just ignored it. But today it happened again and I figured I’d ask if anyone else has seen this. I’m running HA version 2022.9.6 on HAOS 9.0.
I have a history_stats sensor which tracks how long my 1st floor (zone 1) heating is “on” over the course of the day. Yesterday it only came on just once. After that, the “Zone 1 on today” sensor suddenly went to 13.3 hours:
In the second chart, notice that the binary “Heat 1st” sensor had no state before that. I haven’t needed heat for longer than the purge_keep_days in Recorder, so the previous state change had rolled off. The sensor changed to “on” at around 1302. It stayed on for about 15 minutes and changed to “off.”
The 13.3 hours which were added to history_stats looks like the elapsed time since midnight, not since the sensor changed to “on.”
Thanks @123! I totally forgot I’d already posted to that thread you linked to when the problem first happened to me. As I said, it only happens infrequently, and in that previous instance it was also after the data had “rolled off” of the database due to my purge_keep_days setting. Not sure if this is a coincidence or not, but I notice there was an effort to Refactor history stats to minimize database access.