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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Applying battery_capacity_correction_factor to lastChargeEndingPower

pmannk opened this issue · comments

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.

I confirme. With my mg4 luxury behavior is the same

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

Please try 0.6.0-rc2

Closing as complete