Sessions: add mileage per charge
Is your feature request related to a problem? Please describe.
The current EVCC software logs detailed data on charging sessions but does not compute or show the distance added to the vehicle per session, measured in miles or kilometers. This lack of direct correlation between charging habits and driving range outcomes restricts the ability to clearly quantify the benefits of using different energy sources (such as solar or grid) in terms most familiar to drivers (eg range).
Describe the solution you'd like I propose the following enhancements to EVCC:
-
Miles/Kilometers Added Calculation: Integrate a feature to calculate the range added to the vehicle based on the kWh charged during each session. This should consider the vehicle's specific energy consumption rate (e.g., miles or kilometers per kWh). Ideally, this feature would directly pull data from the vehicle at the start and end of charging; however, an option to display an estimated value could suffice if direct data access is unavailable.
-
Dashboard Enhancements: Update the dashboard to display the miles/kilometers added for each session alongside the existing data points.
-
API and Historical Data: Enhance the API to provide session-specific data including miles/kilometers added and aggregate this data for daily summaries. This should allow querying of historical session data with breakdowns by energy source (solar, grid, battery, etc.).
-
Energy Source Breakdown: Ensure each session can detail the percentage of energy sourced from different inputs (solar only, solar + battery, grid only, etc.), allowing users to assess the impact of their energy sourcing choices on vehicle range.
Describe alternatives you've considered
An alternative would be to manually estimate miles added based on total kWh charged and known vehicle efficiency, but this is less accurate and cumbersome. Another less ideal approach is to use third-party apps that might not seamlessly integrate with EVCC's ecosystem.
Additional context
Adding this feature would provide EVCC users with a comprehensive view of how their charging practices directly impact their driving range, promoting more efficient energy use and better integration with renewable energy sources.
Depends on https://github.com/evcc-io/evcc/issues/6144