Thats a part I did not look at yet, ill put it on my list to check. The workaround is fine I think ![]()
For me the CSV app is very unreliable in this 3.0.3 update on the Polestar, it crashes a lot and it doesnt send info sometimes for weeks. So I stopped using it for Homey flows.
As of today it is possible to see and change the charge limit in the Polestar app. This means it should also be available in an API. Would it be possible to add this to the Homey app? Read-only is sufficient for my use case.
I will look into this indeed ![]()
Looks like its not in the API ![]()
Hi. Are you tapping into the same API as tibber (if you are familiar with it)?
Hopefully they will update their API soon so both your app and Tibber will atleast be able to read the SOC limit.
I use the one behind the my.polestar.com site. I think Tibber does also. The app uses mqtt messages. So there are differences there.
Polestar 3 has begun delivery, and I guess Polestar 4 is right around the corner, will there be an update to the app to support these models? I’m getting a 3 soon and would love for this to work.
The @Coderax github project that the app store links to seems to be stagnant, but I understand you took over the app @Kaoh. Has the project been moved somewhere else, or does further development depend on @Coderax accepting pull requests?
Its in a new repository indeed now.
I am very interested in a p3 or p4 tester. I expect them to just work.
Ok, I suppose it would be good to update the details in the app overview, as the links are mostly outdated now.
Source code, contact, web page, etc.
I’ll be happy to help test when I get the P3. Should be within a month or so I think.
New version is already in review with those changes indeed
.
Also gave it the new car class for the my polestar device.
Added release to test with changes to the triggers, seemed like they where not triggering anymore. To solve it I needed to remapp some events that might result in loss of your triggers in the workflows you have, sorry for that.
I finally received my P3, and I can confirm that it just works.
However, I think it would be nice with some more cards, as there are only “When” cards now (more of them than the app store indicates though). Having “And” cards for whether it is charging and whether it is connected to a charger, would be nice, as it would allow for producing nightly reminders if you forgot to plug in the charger.
I suppose it would also be useful for people creating their own “smart charging” schedules to have “Then” cards that can turn the charging on and off, if they can’t do this on the charger itself.
The Polestar phone app also shows the car’s position (as an address), and allows controlling the locking, climate, climate schedule, and charge limit. Although I don’t have any concrete plans to automate any of this, there is certainly some potential, and it would be nice to have the possibilty.
For instance, if there also was a “When” card for “trip ended” or “car locked”, and one could get the car position and control the climate schedule, it could be possible to recreate the Tesla feature of positionally based climate schedules.
Those when cards can be done using the tags, all these statuses are available through them.
The phone polestar app does not use apis for most of the capabilities. They use secured mqtt messages. The api is used by the website on the my polestar pages. So i am limited to info exposed there.
Start charging is not a capability the car exposes nor the location. Just like changing the charge limit or managing the climate.
Oh ok, that’s good to know. I think it would be more convenient with And-cards than tags though, maybe something to consider. ![]()
Are issues disabled in the github repo? There is a typo in a translation in app.json.
"measure_vehicleConnected": {
"type": "boolean",
"title": {
"en": "Chargeport connected",
"no": "Ladepoort tilkoblet",
"nl": "Laadpoort verbonden"
The Norwegian one is supposed to say “Ladeport tilkoblet”. With one “o” in “Ladeport”.
Thanks, ill change it ![]()
The Polestar app on Homey has worked great for the past months. Unfortunately, since yesterday morning the Homey app cannot authenticate with Polestar anymore. I am getting this error in the debug log:
Could not decrypt using salt, network connection changed?
{
"error": "error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length",
"stacktrace": "Error: error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length\n at Decipheriv.final (node:internal/crypto/cipher:193:29)\n at Object.module.exports.decrypt (/lib/homeycrypt.js:52:31)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async PolestarVehicle.onInit (/drivers/vehicle/device.js:14:35)\n at async PolestarVehicle._onInit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:1:1682)"
}
and this one
Could not login. Please check your credentials or try again later
{
"error": "Cannot read properties of null (reading 'access_token')",
"stacktrace": "TypeError: Cannot read properties of null (reading 'access_token')\n at Polestar.#getApiToken (/node_modules/@andysmithfal/polestar.js/polestar.js:195:36)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async Polestar.login (/node_modules/@andysmithfal/polestar.js/polestar.js:31:26)\n at async PolestarVehicle.onInit (/drivers/vehicle/device.js:21:17)\n at async PolestarVehicle._onInit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:1:1682)"
}
I have already tried:
- Re-entering my password
- Restarting the app
- Restarting Homey
- Changing my password for my Polestar account to something new and adding the new password into the Homey app.
- Repairing the device (Polestar 2), but that results in an infinite loop of login screens
It seems that the authentication keeps failing and that, as a result, the access token is empty.
I am using version 2.3.3 of the Polestar app on Homey. The official Polestar app on my phone still works and I can also sign in to the Polestar website.
Are more people experiencing this?
Same issue myself, probably 2.2 related.
As soon as i can i will look into it, seems to be related to my password encryption system
Unfortunatly it is a Polestar API change that broke the integration. There are more plugins suffering from it. I see that tthere is a lead being tested to resolve it. Keep you posted.
Thanks @Kaoh! My homey messages went off yesterday because Polestar state was not up to date.