Unfortunately I don't believe that energy usage is currently reported via the API.
Right, the kWh are not in the data but i'm wondering if some basic math can be used. For instance when they have a range in rated miles, if they use 300Wh/mi for a rated mile then you could potentially just multiply things to get to kWh:
(rated miles left) * 300 Wh/miles = xxx Wh
We've got values like these (my current status tonight):
battery_range: 200.08
ideal_battery_range: 231.47
I think those are rated vs ideal.
If I take battery_range and multiply by 300 I get 60.024kWh.
But, my current state of charge is:
battery_level: 79
I have a S85, so 60.024/85 is roughly 71%.
The 71% doesn't match the 79%. So thats confusing.
The odd part is that 79% of a 90% charge limit is 71%. Not sure if thats just luck or what. The dashboard reads 79%.
So is that range indicator on the dashboard an indication of % of total battery of % of the set charge level?
Any thoughts on all this?