Ixam97 / CarStatsViewer

MIT License
98 stars 54 forks source link

Feature Request: Calculate SOH by consumption with battery loss #248

Open CONSULitAS opened 1 month ago

CONSULitAS commented 1 month ago

Based on the idea of George Metze: https://groups.google.com/g/csv-alpha/c/3ghuvDNQySo/m/Gk52T-WZAgAJ

But with a different and more precise algorithm for calculating SOH.

The main idea is that the shown (and via API readable) SOC values are not accurate enough to get a reasonable accuracy for a SOH calculation, because 2x 0.5% SOC is a rather high error. If you measure only a small step in SOC (e.g. 80% -> 66 %) the error multiplies and you get an overall error up to +/- 10% SOH. This is not reasonable.

To solve this, you have to measure a high step in SOC and find a way to get a more accurate value for the current SOC at start and end. If you wait for the SOC value to flip, you can be rather sure, that the Value is accurate just now (e.g. 92,00% but reading 92%), even if the shown/readable value has less accuracy.

In a nutshell:

Step by step (simple state machine)

BTW: This algorithm gives reasonable results if you calculate by hand with the trip consumption value from CSV. But it is not very handy and accurate to write down the values while driving and to sit and wait for the SOC change in the driver display.

Ixam97 commented 3 weeks ago

Interesting concept. I will put it on my bucket list for features that I maybe want to add in the future. For now I am focusing on refining core features and UI for potential public releases.

CONSULitAS commented 1 week ago

Update:

Push message, when SOH drops would be nice, too.

CONSULitAS commented 1 week ago

https://polestar.fans/t/soh-84-nach-25500-km/19881?u=consulitas