Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate efficiency from charged energy #1445

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

ToniA
Copy link
Contributor

@ToniA ToniA commented Mar 15, 2021

Add a second efficiency column into 'Statistics' dashboard:

  • Column 'Avg Consumption' renamed to 'Avg Consumption (drives)'. This is the average consumption during drives, i.e. the figure which tells how far you could typically drive with certain amount of energy in the battery
  • Added column ' Avg Consumption (charges)'. This is the average consumption, calculated the same way as you would calculate the consumption of an ICE car. I.e. the amount of electricity you need to pay for versus the distance you have driven. Especially during winter the difference to 'Avg Consumption (drives)' could be huge. This will include vampire drain and preheating (at least when preheating without being plugged in)

The driven distance is now calculated as a difference between the smallest start_km and the highest end_km. This is a higher number than the sum of distances from drives if you are missing any drives data.

Also notice that if your car is plugged in during preconditioning, I think the energy taken from the grid during that time is not recorded.

Works also when the units are in miles.

image

@adriankumpf
Copy link
Collaborator

Nice! 🙌 Depending on how much you drive, the Avg Consumption (charges) could vary greatly if you have an empty battery at the beginning of the period and a nearly full one at the end (or vice versa), right? But it is definitely useful for an approximate assessment.

@ToniA
Copy link
Contributor Author

ToniA commented Mar 17, 2021

Yes, the figures are somewhat off if the charge state is not the same in the beginning and at the end. On average it should be correct, but some consumption might move from one period to another. On month level this should be quite negligible.

@adriankumpf
Copy link
Collaborator

Makes sense. Thanks!

@adriankumpf adriankumpf merged commit 77bb82f into teslamate-org:master Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants