leeyuentuen / polestar_api

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

Unexpected error creating the API #90

Closed smbunn closed 5 months ago

smbunn commented 5 months ago

I can open the link https://polestarid.eu.polestar.com/PolestarLogin/login to my account just fine. However when I launch the polestar add in under settings..integrations..add integrations while I can see and load Polestar EV it asks for my username and password, which I enter, then just says "Unexpected error creating API"

polestar1

I am based in New Zealand, is that going to be a problem?

leeyuentuen commented 5 months ago

what do you see in the log

leeyuentuen commented 5 months ago

@smbunn

smbunn commented 5 months ago

2024-01-14 09:12:28.866 ERROR (MainThread) [custom_components.polestar_api.pypolestar.polestar] No cars found in account NoneType: None 2024-01-14 09:12:28.866 ERROR (MainThread) [custom_components.polestar_api.config_flow] Unexpected error creating device Traceback (most recent call last): File "/config/custom_components/polestar_api/config_flow.py", line 43, in _create_device await device.init() File "/config/custom_components/polestar_api/polestar.py", line 35, in init await self.polestarApi.init() File "/config/custom_components/polestar_api/pypolestar/polestar.py", line 40, in init await self._get_vehicle_data() File "/config/custom_components/polestar_api/pypolestar/polestar.py", line 114, in _get_vehicle_data raise PolestarNoDataException("No cars found in account")

This is weird, as my polestar app on my phone works fine. When I open https://polestarid.eu.polestar.com/Account/landing-page on my desktop it shows my account, but there is nowhere to see any cars.

leeyuentuen commented 5 months ago

@smbunn same issue here:

https://github.com/leeyuentuen/polestar_api/issues/50

leeyuentuen commented 5 months ago

i'll close issue, it still got issue, you can reopen it

smbunn commented 5 months ago

It did not get resolved, I am just hoping someone knows the path to getting the car registered to that account/website so that it then appears in your app.

I have been waiting for an add-on like yours for HA for almost 2 years, thanks so much for building it.

Simon Bunn

From: Tuen Lee @.> Sent: Friday, January 19, 2024 4:49 AM To: leeyuentuen/polestar_api @.> Cc: Bunn, Simon @.>; Mention @.> Subject: Re: [leeyuentuen/polestar_api] Unexpected error creating the API (Issue #90)

Closed #90https://urldefense.com/v3/__https:/github.com/leeyuentuen/polestar_api/issues/90__;!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEpbtLOto$ as completed.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/leeyuentuen/polestar_api/issues/90*event-11527002881__;Iw!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEtOdh81A$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ABAAMIJXY3R65WGL6YQJ3TTYPE745AVCNFSM6AAAAABBZF4D6OVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGUZDOMBQGI4DQMI__;!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEs4XyoSt$. You are receiving this because you were mentioned.Message ID: @.**@.>>

leeyuentuen commented 5 months ago

It did not get resolved, I am just hoping someone knows the path to getting the car registered to that account/website so that it then appears in your app. I have been waiting for an add-on like yours for HA for almost 2 years, thanks so much for building it. Simon Bunn From: Tuen Lee @.> Sent: Friday, January 19, 2024 4:49 AM To: leeyuentuen/polestar_api @.> Cc: Bunn, Simon @.>; Mention @.> Subject: Re: [leeyuentuen/polestar_api] Unexpected error creating the API (Issue #90) Closed #90https://urldefense.com/v3/__https:/github.com/leeyuentuen/polestar_api/issues/90__;!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEpbtLOto$ as completed. — Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/leeyuentuen/polestar_api/issues/90*event-11527002881__;Iw!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEtOdh81A$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ABAAMIJXY3R65WGL6YQJ3TTYPE745AVCNFSM6AAAAABBZF4D6OVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGUZDOMBQGI4DQMI__;!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEs4XyoSt$. You are receiving this because you were mentioned.Message ID: @.**@.>>

@smbunn you can ask polestar to transfer the car to your account

smbunn commented 5 months ago

Do you know how to do this? Is there a specific email address and do I need any information like the car VIN?

thanks

Simon Bunn

From: Tuen Lee @.> Sent: Friday, January 19, 2024 9:57 AM To: leeyuentuen/polestar_api @.> Cc: Bunn, Simon @.>; Mention @.> Subject: Re: [leeyuentuen/polestar_api] Unexpected error creating the API (Issue #90)

It did not get resolved, I am just hoping someone knows the path to getting the car registered to that account/website so that it then appears in your app. I have been waiting for an add-on like yours for HA for almost 2 years, thanks so much for building it. Simon Bunn From: Tuen Lee @.> Sent: Friday, January 19, 2024 4:49 AM To: leeyuentuen/polestar_api @.> Cc: Bunn, Simon @.>; Mention @.> Subject: Re: [leeyuentuen/polestar_api] Unexpected error creating the API (Issue #90https://urldefense.com/v3/__https:/github.com/leeyuentuen/polestar_api/issues/90__;!!ElGdukoduuk!Wkic74AhKwaZN-vTqygOHtDUQODkg4Q5hmHkVYMwD-UCbjMF_pPP5ORs6AIZ53VfdqqH-pT7xYxMx8sVkHF1ssza$) Closed #90https://urldefense.com/v3/__https:/github.com/leeyuentuen/polestar_api/issues/90__;!!ElGdukoduuk!Wkic74AhKwaZN-vTqygOHtDUQODkg4Q5hmHkVYMwD-UCbjMF_pPP5ORs6AIZ53VfdqqH-pT7xYxMx8sVkHF1ssza$https://urldefense.com/v3/__https:/github.com/leeyuentuen/polestar_api/issues/90__;!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEpbtLOto$ as completed. — Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/leeyuentuen/polestar_api/issues/90*event-11527002881;Iw!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEtOdh81A$, or unsubscribehttps://urldefense.com/v3/https:/github.com/notifications/unsubscribe-auth/ABAAMIJXY3R65WGL6YQJ3TTYPE745AVCNFSM6AAAAABBZF4D6OVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGUZDOMBQGI4DQMI__;!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEs4XyoSt$. You are receiving this because you were mentioned.Message ID: @.@.>>

@smbunnhttps://urldefense.com/v3/__https:/github.com/smbunn__;!!ElGdukoduuk!Wkic74AhKwaZN-vTqygOHtDUQODkg4Q5hmHkVYMwD-UCbjMF_pPP5ORs6AIZ53VfdqqH-pT7xYxMx8sVkAdNYMzG$ you can ask polestar to transfer the car to your account

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/leeyuentuen/polestar_api/issues/90*issuecomment-1899191446__;Iw!!ElGdukoduuk!Wkic74AhKwaZN-vTqygOHtDUQODkg4Q5hmHkVYMwD-UCbjMF_pPP5ORs6AIZ53VfdqqH-pT7xYxMx8sVkBscxMDC$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ABAAMIPT6ZWB5KF3U3P3Q5TYPGD75AVCNFSM6AAAAABBZF4D6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZGE4TCNBUGY__;!!ElGdukoduuk!Wkic74AhKwaZN-vTqygOHtDUQODkg4Q5hmHkVYMwD-UCbjMF_pPP5ORs6AIZ53VfdqqH-pT7xYxMx8sVkJ0JYrTI$. You are receiving this because you were mentioned.Message ID: @.**@.>>

leeyuentuen commented 5 months ago

@smbunn i suppose if you go to this link

https://polestarid.eu.polestar.com/as/authorization.oauth2?response_type=code&client_id=polmystar&redirect_uri=https%3A%2F%2Fwww.polestar.com%2Fsign-in-callback&scope=openid profile email customer:attributes customer:attributes:write

can you check if you see the car tab. if not, you can send email to polestar i think something like info@polestar.com or anything like that and say that you can see your car in that page.

but do you have access on the mobile app?