Integration of Polestar 2

seems the data on polestar/volvo API is more correct than from tibberEV
image

I still canā€™t get it to work, any ideas please?..

Initially installed the earliest version through HACS, registered developer portal with Google account and tried using Google login details with the VIN and API key - which resulted in it adding the 5 entities under the Polestar device, but none of them provided any values.

Then saw this message so signed up for a Volvo ID and deleted and reinstalled the HACS integration (at the same time updating to 0.1), then used the Volvo ID with the VIN and API Key, and now it adds the Polestar device but has no entities. I donā€™t know if this is a change with the updated version not adding them if theyā€™re incorrect whereas the old version added them blindly, or if Iā€™m going more in the wrong direction with the credentials?

There was no need to delete the integration in hacs but I guess it wouldnā€™t hurt either. Did you restart HA afterwards?
What you need to do is delete the polestar_api integration in integrations, not hacs. And reinstall it from there with the new login. No need to restart HA even.

edit:
maybe important or not, but I use the same email address throughout all the platforms (Volvo, Polestar, Github and API dev), only the passwords are different. If I recall correctly, when I did the login to API with my Github account, I was asked to give an email address (besides the one I use for Github), I guess you need to specify the one you use for the Volvo account? I could be talking rubbish tho, not an expert :smiley:

For me itā€™s almost equal in values.
The ā€˜last updatedā€™ in your Polestar api card, is this the one you get from Tibber or from P2 api?
I guess Tibber as the update rate via api is every 15 seconds I believe?

did some testing charging the vehicle. here are my findings.
when I schedule charging in the car and the charger is not connected, nothing changes.
when I connect the charger to the car and charging does not start (scheduled), the charg. system status says Idle, but charg_connection_status is always Disconnected in my case.
when the car is charging, the charg_system_status description changes to Charging, charg_connection_status still Disconnected.
charging_time in minutes is correct (compared to my own calculations and polestar app).
maybe charg_connection_status only works when connected to a charger like Zaptec or Easee?
I have a Wallbox.
@Depechie what charger do you use?


did you saw in volvo developer account the amount of call?
if it goes up, then in mean that the account and api key is corect. maybe the vin is not correct

you can maybe enable debugger mode in de hacs integration. and wait for few min. after you stop the logging. you will get a log file. just send that file, it could help a lot why itā€™s not working for you

iā€™m also wondering why i only got disconnected on the status.

i tried using public charger and my home alfen charger. both got disconnect.

that last update is my polestar api, but the dev version (did some extra changes but didnā€™t put on publix release, just in beta version

Fun factā€¦ I currently do not yet have my Polestar
Itā€™s at the dealership stillā€¦ but I can connect to it already because I have the VIN :smiley:

oh ok, maybe with the newer versions it has more api capabilities.

nice, you can see when they are going to charge your car before they are give the car to you

you can download the beta on hacs, just enable the show beta slider

1 Like


just plugged in for charging. the estimated time and last update are also in the integration

that may be cool and fun, but this poses some privacy concerns.
if I take note of the VIN of any Polestar parked in the street, I could insert this VIN in the api integration and ā€œspyā€ on them.
but the real concern would be when sending commands via api is possible, like opening doorsā€¦
I donā€™t know if this is (or could be) a possibility via api?

Iā€™ve tried it out (locking and unlocking doors and climatization) on the Volvo api dev site and it returns ā€œforbiddenā€ so it is not allowed!

Yeah totally agreeā€¦ is strange that this is just ā€˜openā€™ based on the VIN

I just tried it out on vin numbers found online and it does not work.
I guess the vin has to match the email address?
But how can you see the dealers car info? did they link your account to the car?

I have a Polestar ID and on the website and in the Polestar app I can see my ā€˜orderā€™. It has the VIN info.

Can you maybe prefix the sensors? The Skoda integration prefixes all entities in homeassistant with the car name.

OH I see now, you have access to your new car info, not the dealer car lol, I misread your messageā€¦ duh :crazy_face: