I recently configured my energy dashboard and I’m seeing anomalous data in the hour after midnight. As you can see in this screen shot, it seems to be carrying data forward from the previous day instead of resetting at midnight as I think it should.
My usage data comes from 3 Emporia Vue’s and the daily total is computed in a helper named “Energy Total Consumption Today” from the 3 Emporia entities. You can see in the snapshots from Statistics below that the 12:00 AM numbers are very strange. 11:55 looks reasonable and 12:05 do as well.
The setup is actually a little more complex than I’ve described as there is actually a template sensor that subtracts the solar output from the usage numbers to create sort of a pseudo electric meter. I found this necessary because otherwise the Usage card adds the solar output on top of the usage reported from Emporia.
Anyway, the problem seems to stem from that weird data in the midnight statistic. Suggestions anyone? Instead of using a helper to sum the inputs, should I perhaps do it in a template and try to filter out unreasonable data around midnight?