leeyuentuen / polestar_api

Polestar Api - Home Assistant Component
MIT License
112 stars 18 forks source link

Delayed battery sensor values #93

Closed MKr82 closed 5 months ago

MKr82 commented 5 months ago

When I drive my car, the battery percentage is (of course) dropping during the trip. This is more or less directly visible in the official Polestar app, but not in the Polestar API. Sometimes there is a delay upto 1,5 hours before sensor value of battery percentage is changing.

So when I drive home between 17:00 and 18:00, I see the battery percentage change during a period between 18:20 to 19:20. So I see my battery percentage dropping when I am sitting on the dinner table...

For the ODO meter there is no delay btw.

leeyuentuen commented 5 months ago

i notice that there is a delay. in the website the value is also not changed. only on the app i see a difference. i think this is not from the code issue, but issue on the polestar side (i think they use some caching to prevent DDoS)

MKr82 commented 5 months ago

Did not check the website, but I agree: seems to be caused by Polestar side. Thanks for the confirmation.