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

MIT License
67 stars 20 forks source link

is an consumption SinceLastCharge per 100km available? #87

Closed mrniemand closed 5 months ago

mrniemand commented 1 year ago

the car itself shows an consumption in kwh/100km since last charching in the display. Is this in the api also available?

nanomad commented 12 months ago

Unfortunately consumption data of any kind is not exposed via SAIC API.

mrniemand commented 12 months ago

I tried to calculate it with mileageSinceLastCharge and applicationData_chargeStatus_powerUsageSinceLastCharge but the results are confusing. applicationData_chargeStatus_powerUsageSinceLastCharge sounds like consumption since last charge

nanomad commented 6 months ago

@mrniemand there was an issue with the range values published that prevented us from computing consumption figures. 0.6.x will fix that. I've also exposed the "consumption of the day" and "consumption since last charge" values so that you can easily compute the consumption data in Wh/km

nanomad commented 6 months ago

Data is available in 0.6.0-rc4

There's an open question about battery capacity. Looks like we will have to switch to the net battery capacity instead of the raw one in order to get accurate consumption measures.

I'll run some tests tomorrow