pypolestar / polestar_api

Polestar API - Home Assistant Component
MIT License
137 stars 25 forks source link

Average Energy Consumption figures incorrect since 22nd June #148

Open 3shirts opened 4 months ago

3shirts commented 4 months ago

Since 22/06/24 the Average Energy Consumption number has dropped. It seems like it's a factor of 10 as I was getting around 22 (kWh/100km) before and now it's 0.2 or 0.3 though I notice it's not 0.22 it's only 1 decimal.

leeyuentuen commented 3 months ago

is it still the case? i saw here that the value is still correct

3shirts commented 3 months ago

Yeah it's still screwy. Currently 0.6 instead of the real world 22

knuckleheadsmiff commented 2 months ago

I don’t think this has ever worked for me. I always see a number like 3.2kw/100km

(would also be nice to have the units in miles as a config option based on the unit measurements in the car for the odometer.)

jschlyter commented 2 days ago

How does this work in the current version @knuckleheadsmiff @3shirts ? My car reports correctly.

knuckleheadsmiff commented 2 days ago

It still seems way off. Note the my car is set to miles not km but converting km to miles this number just can’t be correct. (See image) IMG_0935

jschlyter commented 2 days ago

Seems to be an API issue as the reported values are fetched directly from averageEnergyConsumptionKwhPer100Km in backend API. Is the statistics in your mobile app correct?

knuckleheadsmiff commented 2 days ago

Mobile app shows “7.1kWh/100 mi” so the numbers seem to line up (although obviously bad) but it’s not this code.

wouterhardeman commented 1 hour ago

Seems that this is an issue on Polestar's side since the data matches the app.

At the time of your report they seemed to have performed some rollback on their database (possibly because they pushed a bad update at the time). For me they set my odometer about a month back which was resolved after driving again. It could be that your average consumption got messed up during that time.

I would recommend resetting your manual trip meter in the car. The average energy consumption is based on that. Drive around for a while and check if you get a more realistic value.