Feature implementation - track charge cost and real-world consumption#450
Closed
GabrielRogd wants to merge 3 commits into
Closed
Feature implementation - track charge cost and real-world consumption#450GabrielRogd wants to merge 3 commits into
GabrielRogd wants to merge 3 commits into
Conversation
Contributor
|
Which values are taken to calculate those values? |
Author
|
Sorry for my late answer. This implementation was made using an e-remote control capable Opel Corsa-e, from which the residual/capacity values can be fetched. The charge costs are calculated based on average consumption (shown after every trip, and then the average is calculated during the current charge cycle), and total kWh consumption before the car is put into the wall. |
Contributor
|
This PR is stale because it has been open for 15 days with no activity. |
Contributor
|
This PR was closed because it has been inactive for 5 days since being marked as stale. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds charge cost tracking and a real-world average consumption sensor for charge-capable vehicles.
New entities:
number.kwh_costto set the electricity price per vehiclesensor.charge_costto show the cost of the latest completed chargesensor.actual_average_consumptionto show actual average consumption inkWh/100kmsensor.last_chargenow also stores mileage, distance since last charge, charge cost, and actual average consumption.Why
This makes it easier to track what a charge really costs and how efficient the car is between charging sessions.
For example, on my Corsa-e 2020, I wanted to see the real consumption based on the energy added during charging and the distance driven since the previous full charge session, instead of only relying on the trip value reported by the app.
Notes
number.kwh_costis set above0Validation
python -m compileall custom_components/stellantis_vehicles