leeyuentuen / polestar_api

Polestar Api - Home Assistant Component
MIT License
131 stars 23 forks source link

Integration not working... 401 Unauthorized #12

Closed vgibara closed 9 months ago

vgibara commented 9 months ago

I don't know if it is supposed to work in Canada... I'm not sure mainly because of the URL for the VolvoId which contains EU.

However, i followed the steps, created a VolvoID, created a Developper Account (with my Google account, same email as my new VolvoID) And i get this:

2023-12-17 16:55:56.651 DEBUG (MainThread) [custom_components.polestar_api.polestar_api] Response <ClientResponse(https://volvoid.eu.volvocars.com/as/token.oauth2) [200 OK]>

Which is good, as it gets the token. However:

2023-12-17 16:55:56.777 DEBUG (MainThread) [custom_components.polestar_api.polestar_api] Response <ClientResponse(https://api.volvocars.com/energy/v1/vehicles/*****************/recharge-status) [401 Unauthorized]>

Any idea ?

leeyuentuen commented 9 months ago

duplicated: https://github.com/leeyuentuen/polestar_api/issues/10