Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: odometer #74

Closed
leeyuentuen opened this issue Jan 7, 2024 · 12 comments
Closed

bugfix: odometer #74

leeyuentuen opened this issue Jan 7, 2024 · 12 comments

Comments

@leeyuentuen
Copy link
Owner

leeyuentuen commented Jan 7, 2024

this should be wrong data from polestar
prevent this issue

maybe set max limit of 1.000.000

Screenshot_2024-01-07-15-58-34-23_c3a231c25ed346e59462e84656a70e50

@leeyuentuen leeyuentuen self-assigned this Jan 8, 2024
leeyuentuen pushed a commit that referenced this issue Jan 8, 2024
…miles/meter, fix refresh token on too long expired token
leeyuentuen pushed a commit that referenced this issue Jan 8, 2024
…miles/meter, fix refresh token on too long expired token
leeyuentuen pushed a commit that referenced this issue Jan 8, 2024
…miles/meter, fix refresh token on too long expired token
@leeyuentuen
Copy link
Owner Author

I've put a max limit to prevent to high value

@ScooterisT5
Copy link

Odometer has changed to unknown

@leeyuentuen
Copy link
Owner Author

leeyuentuen commented Jan 8, 2024

open the entity and change the unit of measurement from m to km

i saw that i need to put the limit higher then 1000000

@ScooterisT5
Copy link

OK, confirmed. Switch to KM works as expected. Also if i change to Mi, and back.

@m0wlheld
Copy link
Contributor

m0wlheld commented Jan 9, 2024

Confirmed. Works with m and km. Does not work with cm, though ;) Is there really a need for a limit?

@leeyuentuen
Copy link
Owner Author

@m0wlheld As you see on the opening post image, sometimes, weird responses from Polestar make the graph go high

@m0wlheld
Copy link
Contributor

@m0wlheld As you see on the opening post image, sometimes, weird responses from Polestar make the graph go high

Speaking of which: The API currently reports 0 km (infact 600m) for the Odometer. It's the same for this HA integration and for the Polestar site. So - not a bug here.

grafik

@m0wlheld
Copy link
Contributor

It gets even better: Currently the API is reporting 2^31m, so the Odometer display 2.147.484 km ... looks like they are trying fix something.

@leeyuentuen
Copy link
Owner Author

It gets even better: Currently the API is reporting 2^31m, so the Odometer display 2.147.484 km ... looks like they are trying fix something.

in the log? or showed in the gui that make spikes?

@m0wlheld
Copy link
Contributor

It‘s reported wrong by the remote Polestar API. You cannot fix it.

@leeyuentuen
Copy link
Owner Author

It‘s reported wrong by the remote Polestar API. You cannot fix it.

but this you saw the value on your home assistant gui? normally i have skip this high value

@leeyuentuen
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants