pypolestar / polestar_api

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

multiple vehicles #128

Closed stephanlarsson closed 1 month ago

stephanlarsson commented 6 months ago

I have two cars. I can only get one to load all the entities, but the other just loads the image.

leeyuentuen commented 6 months ago

good issue, but i need to find a way to add one extra car in the portal to test xD

preeefix commented 5 months ago

Let me know what requests you need and I can drop exports from Polestar US.

marky5525 commented 3 months ago

I second that. I ordered my P4 and the car is produced. Now I have two cars in my account, unfortunately the data is shown from the new car, somewhere parked in china :)

What can I do to help? You need any data?

palengh commented 3 months ago

I also have this experience. Two cars/VINs registered. Only the newest car show up in HA.

image

leeyuentuen commented 3 months ago

If there is a trust in me and I can use one of your account to test them (send them over email), I'll take a try,

normally I have only access on the webportal (to see the data) but I don't have access to unlock/find location of your car)

pckahrs commented 3 months ago

I also experienced this issue after my ordered PS4 got a VIN and was added to the Polestar site. In order to get data for my PS2 back to Home Assistant I edited this line: https://github.com/leeyuentuen/polestar_api/blob/4a13cc57363e840ddb985a59c77941cbb1a31632/custom_components/polestar_api/pypolestar/polestar.py#L126 to this: 'data': result['data'][CAR_INFO_DATA][1], 'timestamp': datetime.now()}

leeyuentuen commented 3 months ago

I also experienced this issue after my ordered PS4 got a VIN and was added to the Polestar site. In order to get data for my PS2 back to Home Assistant I edited this line:

https://github.com/leeyuentuen/polestar_api/blob/4a13cc57363e840ddb985a59c77941cbb1a31632/custom_components/polestar_api/pypolestar/polestar.py#L126

to this: 'data': result['data'][CAR_INFO_DATA][1], 'timestamp': datetime.now()}

if you use this, you still get one car, but only the other one. but it should something like that to change

preeefix commented 3 months ago

Although not comfortable to share the credentials, are there any particular requests that you'd like to see the results from?

leeyuentuen commented 1 month ago

see this thread: https://github.com/leeyuentuen/polestar_api/issues/150