Repository navigation
Charging log issue? #371
Replies: 5 comments 7 replies
|
Thanks for the kind words, and for the clear screenshots. You're drawing the right conclusion: the 7.42 kWh from your wallbox is the real figure, and the 4.1 kWh is BavarianData getting it wrong. The kWh on a charge is the car's own charging power, added up over time. Your Mini reported 1.4 kW when the charge started and then sent no new power reading, so it was counted as 1.4 kW for three hours. That's about 4.1 kWh, and it's also why the graph is one flat line, while your wallbox shows it went up to about 3.4 kW after 12:20. With a wallbox meter set up, the meter's figure normally wins (the "From the grid" line you see on the i5's charge). But it's only used when it looks like the same charge: at most 1.8 times what the car's power adds up to. 7.42 is 1.81 times 4.1, so the meter's figure was set aside as if it belonged to another meter, when it was our 4.1 that was off. The energy source split reads the meter directly, which is why it adds up to 7.4. The missing cost I can't explain from the screenshots. The split shows the meter was read, so the cost should have been billed from it at your dynamic price. Could you download the diagnostics and attach them here? Settings → Devices & services → BavarianData → ⋮ → Download diagnostics (how); the VIN and locations are removed. It would also help to know whether your price sensor had a value the whole time, 10:50 to about 14:00. With those I can see whether the meter check should change, and where the cost went. How the meter and the car's figure work together: charging history and cost. |
|
Hi JustChr,
Thanks for the fast response! For further analysis I have attached the diagnostics JSON from the Mini below and the electricity prices sensor data from yesterday (note: I have prices per 15 minutes). The Mini is not used since the charge.
Regarding the highlighted text: I think the comparison you make is not waterproof. You can compare the binary_sensor of the charging cable with the corresponding sensor from the wallbox. If both are true, you know you must use the wallbox data. This is particularly relevant because I have made an automation that adjusts my wallbox power output to my PV output. A further enhancement is to compare the plugin/plugout timestamps from wallbox and car. That might sound overdone, but I am considering to buy a second wallbox …
Two final remarks:
1. In the preparation of this mail I found the 4.1 kWh value - see screendump - sensor name session_loaded_energy or something like that
2. The arrow in the screendump points at a Danish (?) description that is not translated into Dutch - it must be “Bruikbare energie uit hoogspanningsbatterij”.
Keep up the good work!
Frank
Op 24 nov 2026, om 22:50 heeft JustChr ***@***.***> het volgende geschreven:
Thanks for the kind words, and for the clear screenshots. You're drawing the right conclusion: the 7.42 kWh from your wallbox is the real figure, and the 4.1 kWh is BavarianData getting it wrong.
The kWh on a charge is the car's own charging power, added up over time. Your Mini reported 1.4 kW when the charge started and then sent no new power reading, so it was counted as 1.4 kW for three hours. That's about 4.1 kWh, and it's also why the graph is one flat line, while your wallbox shows it went up to about 3.4 kW after 12:20. With a wallbox meter set up, the meter's figure normally wins (the "From the grid" line you see on the i5's charge). But it's only used when it looks like the same charge: at most 1.8 times what the car's power adds up to. 7.42 is 1.81 times 4.1, so the meter's figure was set aside as if it belonged to another meter, when it was our 4.1 that was off. The energy source split reads the meter directly, which is why it adds up to 7.4.
The missing cost I can't explain from the screenshots. The split shows the meter was read, so the cost should have been billed from it at your dynamic price. Could you download the diagnostics and attach them here? Settings → Devices & services → BavarianData → ⋮ → Download diagnostics (how <https://justchr.github.io/BavarianData/docs/troubleshooting/#download-diagnostics>); the VIN and locations are removed. It would also help to know whether your price sensor had a value the whole time, 10:50 to about 14:00.
With those I can see whether the meter check should change, and where the cost went. How the meter and the car's figure work together: charging history and cost <https://justchr.github.io/BavarianData/docs/charging-history-and-cost/>.
—
Reply to this email directly, view it on GitHub <#371?email_source=notifications&email_token=AZERFWSZMTUKE7ICDXYRCHT52X7DHA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJYG4YDKMRTUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-19870523>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AZERFWXNWH3MG4VF25QCO6352X7DHAVCNFSNUABJKJSXA33TNF2G64TZHMYTEOJRGI4DGMRVGM5UI2LTMN2XG43JN5XDWMJRGM4TENRRGWQXMAQ>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/AZERFWUN2ZM52DBKNXOUU4352X7DHA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJYG4YDKMRTUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM> and Android <https://github.com/notifications/mobile/android/AZERFWW4PP4R2RILSNYT3KD52X7DHA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJYG4YDKMRTUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>. Download it today!
You are receiving this because you authored the thread.

|
|
Hi JustChr,
See attached screenshot.
Today I charged the i5 with 9,4 kWh. The charging details give a double message. On the one hand they say that PV is the primary source with 5,9 kWh and the rest comes from the grid - which is correct. On the other hand it declares that all comes from the grid - obviously incorrect. The total price seems ok.
Hope this helps to nail the issues.
Kind regards,
Frank

… Op 25 nov 2026, om 22:44 heeft Frank Besseling ***@***.***> het volgende geschreven:
Hi JustChr,
Thanks for the fast response! For further analysis I have attached the diagnostics JSON from the Mini below and the electricity prices sensor data from yesterday (note: I have prices per 15 minutes). The Mini is not used since the charge.
Regarding the highlighted text: I think the comparison you make is not waterproof. You can compare the binary_sensor of the charging cable with the corresponding sensor from the wallbox. If both are true, you know you must use the wallbox data. This is particularly relevant because I have made an automation that adjusts my wallbox power output to my PV output. A further enhancement is to compare the plugin/plugout timestamps from wallbox and car. That might sound overdone, but I am considering to buy a second wallbox …
Two final remarks:
1. In the preparation of this mail I found the 4.1 kWh value - see screendump - sensor name session_loaded_energy or something like that
2. The arrow in the screendump points at a Danish (?) description that is not translated into Dutch - it must be “Bruikbare energie uit hoogspanningsbatterij”.
Keep up the good work!
Frank
Op 24 nov 2026, om 22:50 heeft JustChr ***@***.***> het volgende geschreven:
Thanks for the kind words, and for the clear screenshots. You're drawing the right conclusion: the 7.42 kWh from your wallbox is the real figure, and the 4.1 kWh is BavarianData getting it wrong.
The kWh on a charge is the car's own charging power, added up over time. Your Mini reported 1.4 kW when the charge started and then sent no new power reading, so it was counted as 1.4 kW for three hours. That's about 4.1 kWh, and it's also why the graph is one flat line, while your wallbox shows it went up to about 3.4 kW after 12:20. With a wallbox meter set up, the meter's figure normally wins (the "From the grid" line you see on the i5's charge). But it's only used when it looks like the same charge: at most 1.8 times what the car's power adds up to. 7.42 is 1.81 times 4.1, so the meter's figure was set aside as if it belonged to another meter, when it was our 4.1 that was off. The energy source split reads the meter directly, which is why it adds up to 7.4.
The missing cost I can't explain from the screenshots. The split shows the meter was read, so the cost should have been billed from it at your dynamic price. Could you download the diagnostics and attach them here? Settings → Devices & services → BavarianData → ⋮ → Download diagnostics (how <https://justchr.github.io/BavarianData/docs/troubleshooting/#download-diagnostics>); the VIN and locations are removed. It would also help to know whether your price sensor had a value the whole time, 10:50 to about 14:00.
With those I can see whether the meter check should change, and where the cost went. How the meter and the car's figure work together: charging history and cost <https://justchr.github.io/BavarianData/docs/charging-history-and-cost/>.
—
Reply to this email directly, view it on GitHub <#371?email_source=notifications&email_token=AZERFWSZMTUKE7ICDXYRCHT52X7DHA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJYG4YDKMRTUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-19870523>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AZERFWXNWH3MG4VF25QCO6352X7DHAVCNFSNUABJKJSXA33TNF2G64TZHMYTEOJRGI4DGMRVGM5UI2LTMN2XG43JN5XDWMJRGM4TENRRGWQXMAQ>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/AZERFWUN2ZM52DBKNXOUU4352X7DHA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJYG4YDKMRTUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM> and Android <https://github.com/notifications/mobile/android/AZERFWW4PP4R2RILSNYT3KD52X7DHA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJYG4YDKMRTUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>. Download it today!
You are receiving this because you authored the thread.
<config_entry-bavariandata-01M6XW6ECBK1BQF3XG3JD7D5CJ.json>
<history.csv>
<Schermafbeelding 2026-11-25 om 22.37.23.png>
|
|
Hi Frank, Thanks, that helps. One thing first: your replies came in by email, and GitHub drops email attachments, so the diagnostics, the price data and both screenshots never arrived here. Could you upload them on the discussion page itself (drag them into the reply box)?
|
|
Thank you! Bought you a coffee for this!
Op 29 nov 2026, om 08:44 heeft JustChr ***@***.***> het volgende geschreven:
Thanks Frank, both files came through this time.
The missing cost has a simple cause: on the Mini's entry, Configure → Charging costs has Price source set to None. The price sensor is filled in, but with source None the integration records charges without cost. Set it to Price entity and the next charge is billed at your dynamic price. Your price history shows the sensor had a value the whole day, so that side is fine.
The 4.1 kWh is on me. Your Mini sleeps while it charges, so it reported 1.4 kW once and nothing after that. The check that should have let your wallbox's 7.42 kWh through compared it against that stuck figure. Plug state wouldn't settle it, because the check is there to catch a house meter picked by mistake. Instead I'll compare against the change in charge level when the car's power reading has gone quiet. That fix is planned for the next version.
—
Reply to this email directly, view it on GitHub <#371?email_source=notifications&email_token=AZERFWQLAGIH5LH3BOJ73BD53PHXPA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJZHE2DSNJYUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-19994958>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AZERFWXWMBWTYHLWFC6P6FT53PHXPAVCNFSNUABJKJSXA33TNF2G64TZHMYTEOJRGI4DGMRVGM5UI2LTMN2XG43JN5XDWMJRGM4TENRRGWQXMAQ>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/AZERFWX7HK4OQ3BOKALDQET53PHXPA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJZHE2DSNJYUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM> and Android <https://github.com/notifications/mobile/android/AZERFWXZ5BYPL64MQWB65QL53PHXPA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJZHE2DSNJYUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>. Download it today!
You are receiving this because you authored the thread.
|
Uh oh!
There was an error while loading. Please reload this page.
Before I start my remarks, I first want to say a big THANK YOU for this integration. I just started using it, and the functionality is incredible, at least within the limitations of CarData. See the below as an attempt to help further improve the integration.
I have two cars connected, a BMW i5 eDrive50 Touring and a Mini Cooper SE. Yesterday I configured my charging Peblar wallbox, dynamic energy prices and my solar panels. Tonight I charged my i5 and the total 18,6 kWh and €6,91 show up exactly as expected. Of course there was no solar energy tonight. During the day I charged the Mini with a mix of solar and grid power and then the questions came:
I have added 3 screenshots, one from my wallbox and 2 from de integration that show what I described.
Can this be improved? Or do I draw the wrong conclusions?
All reactions