SAIC-iSmart-API / saic-python-mqtt-gateway

A service that queries the data from an MG iSMART account and publishes the data over MQTT and to other sources
MIT License
71 stars 21 forks source link

Applying battery_capacity_correction_factor to lastChargeEndingPower #163

Closed pmannk closed 7 months ago

pmannk commented 8 months ago

Hi, It appears the battery_capacity_correction_factor is applied to the totalBatteryCapacity attribute, however it's not also applied to the lastChargeEndingPower attribute? From what I can tell on my MG4, the correction factor needs to be applied to the lastChargeEndingPower as well.

If I apply the factor manually myself then after charging I get the anticipated outcome, where lastChargeEndingPower equals soc_kwh.

Snippet of the current figures reported in MQTT: image

Thanks.

an0Nym0us63 commented 8 months ago

I confirme. With my mg4 luxury behavior is the same

nanomad commented 8 months ago

That makes total sense, feel free to open a PR :)

nanomad commented 7 months ago

Please try 0.6.0-rc2

nanomad commented 7 months ago

Closing as complete