Closed MikeBishop closed 3 years ago
The discrepancy appears to have been an API glitch, and integrating the power data is insufficient for sources which can be draw and supply power. Unfortunately, I think we just have to hope Tesla fixes their bug by the time DST comes around again.
With a large amount of usage around midnight, it appears that the
kind=energy
results indicate the usage having ended by midnight, whilekind=power
indicates it concluding shortly after midnight. This results in oddities like negative local usage for the present day.Currently, we derive the total usage from the car by integrating over the power history; it's possible we could do the same thing for the rest of the power history as well and stop using the energy API entirely.