Hello,
I’m new to Home Assistant (HA) and would like some advice. My goal is to track my car’s charging sessions, including the following details:
Date and duration
Odometer reading
Battery level at the start and end of charging
Energy used
Ultimately, I want to list these sessions and generate statistics (e.g., consumption per week, day of the week, month, year, etc.).
So far, I’ve created automations to trigger when charging starts and stops, and I’m successfully capturing the relevant data. However, I have a few questions about the next steps:
Storing Initial Data: How can I store the initial battery level and the start of a charging session and retrieve it when the session ends?
Storing Session Data: Where and how should I store the final state of each charging session ?
Viewing Historical Data: How can I visualize charging sessions over time?
Manual Entry: Is it possible to manually add charging sessions (e.g., when charging outside my home)?
Statistics and Graphs: What’s the best way to generate statistics and graphs? This could be done outside HA (e.g., in Excel) if needed.
Thank you for your advice!
I guess that depends a bit on how you integrated your car (if your car can be integrated at all )
I am currently in the process on setting up my own charging station, but that is the other side of what you want.
The history of my car is already available in mySkoda integration:
I use the hyundai/kia integration, and huawei fusion solar for the wallbox and they both work well, I can also display such graph. What I still need is a way to correlate this with the odometer and perform a consumption calculation and display them. I would also like to correlate my wall box energy usage to estimate loss.
I had a similar idea this month and wanted to track my EV charging sessions. Unfortunately, BMW doesn’t currently allow integration with Home Assistant. So, I’ve only integrated the monitoring of my wallboxes into Home Assistant. I’m using Shelly power meters.
Do you have sensors and entities for all the items you wish HomeAssistant to store in the database for future recollection?
For instance: Does your vehicle integration expose odometer values, or are you going to add that manually?
Does your animation reflect the start and end of a charging session? Battery level?
There are many ways of displaying your data once it is recorded, some on dashboards (they got a major revamp this month), some of graphing packages and integrations such as Graphana, and you shouldn’t need to export data to Excel just to get pretty pictures.
The rest is up to you - your preferences and whims. There are many methods of viewing the data you have collected. Two approaches: first is to experiment following the documentation bit by bit, and the second is to have a goal usially based on something you have seen, and then work toward it. Both are valid. If you share what you have done when reaching an impasse, others can offer hints and suggestions.