evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Polestar - Login failed

Open GitJS01 opened this issue 8 months ago • 21 comments

Describe the bug

Since midnight tonight, I've been getting the following message in my evcc v0.303.1: creating vehicle PS2 failed: cannot create vehicle type ‘template’: cannot create vehicle type ‘polestar’: login failed: could not find resume path Has Polestar changed something again?

Steps to reproduce

  1. Start evcc
  2. Message in the Log ...

Configuration details

vehicles:
- name: PS2
  type: template
  template: polestar
  user: [email protected]
  password: passwd
  vin: LPSVxxxxxxx
  title: DE-DE-123E
  capacity: 78

Log details

[polestar] TRACE 2026/03/20 09:44:17 <!DOCTYPE html>[HTML - LOGIN ERROR] ERROR 2026/03/20 09:44:17 creating vehicle PS2 failed: cannot create vehicle type 'template': cannot create vehicle type 'polestar': login failed: could not find resume path

What type of operating system or environment does evcc run on?

Docker container

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

evcc version 0.303.1 (40af84f87)

GitJS01 avatar Mar 20 '26 08:03 GitJS01

Hi all,

Have exact same issue with my Polestar configuration. Tryed to delete and reconfigure, but still same error message.

What type of operating system or environment does evcc run on? Docker container on Synology WEB config (db)

Version evcc version 0.303.1 (https://github.com/evcc-io/evcc/commit/40af84f87b0ad9dce5280791dfe16e51223fbe54)

GeorgD-SmartPVHome avatar Mar 20 '26 15:03 GeorgD-SmartPVHome

Same for me. They have probably changed the API again.

martin5233 avatar Mar 20 '26 15:03 martin5233

For me it worked multiple times today until I updated to 0.303.1 5min ago. Working Version before: 0.301.2

I downgraded, but it didn't help.

flo9127 avatar Mar 20 '26 17:03 flo9127

Polestar API works in Homeassistant, so maybe not an API issue?

Image

perkarom avatar Mar 20 '26 17:03 perkarom

Have you done a restart, to delete working tokens?

flo9127 avatar Mar 20 '26 18:03 flo9127

Have you done a restart, to delete working tokens?

Yes but still the same issue, is yours working?

perkarom avatar Mar 20 '26 18:03 perkarom

Have you done a restart, to delete working tokens?

Yes but still the same issue, is yours working?

No. But I don't use HA. So I wanted to know if you restarted HA with the EVCC "Plugin".

flo9127 avatar Mar 20 '26 18:03 flo9127

Have you done a restart, to delete working tokens?

Yes but still the same issue, is yours working?

No. But I don't use HA. So I wanted to know if you restarted HA with the EVCC "Plugin".

Ah I see, my evcc is running in Linux, not in HA.

perkarom avatar Mar 20 '26 18:03 perkarom

Same issue for me. Running evcc in a proxmox lxc.

It looks like the same issue from a few weeks ago. More knowledgable people thought about an API change. But it appeared to be a downtime for quite some hours.

Hopefully it is just some downtime.

Bestevaer avatar Mar 21 '26 12:03 Bestevaer

Same issue since the update

lschaeferdryden avatar Mar 21 '26 15:03 lschaeferdryden

Same issue since 0.303.1 Also 0.303.2 does not help. Restarted home assistant, still evcc broken for Polestar. Polestar API component in home assistant working fine, so what's the difference between Polestar API and evcc?

jahoooo avatar Mar 21 '26 23:03 jahoooo

I confirm the Polestar integration (HACS) is working without any issues. - This is not helping us here, however it might help to debug?

ottomitschke avatar Mar 22 '26 09:03 ottomitschke

The code is trying to extract the resume url from the HTML form and this regex is no longer working. The question is must the regx just updated?

https://github.com/evcc-io/evcc/blob/9b7add3370bd18f50b6a1576a0cd14c771a5712f/vehicle/polestar/identity.go#L96-L100

StefanSchoof avatar Mar 22 '26 09:03 StefanSchoof

I restored my evcc yesterday to version 0.302.1 but the issue persists.

If something in the authorization changed it should have worked on version 0.302.1.

Bestevaer avatar Mar 22 '26 09:03 Bestevaer

I am sure it would be a minute task for @loebse 👍

ottomitschke avatar Mar 22 '26 10:03 ottomitschke

There is actually a change in how to get the resume path. This fix works for me.

loebse avatar Mar 22 '26 12:03 loebse

Can I somehow make these changes when running evcc as App in HomAssistantOS?

Made it work by sending the SOC via mqtt in iobroker to homeassistant and then evcc

soc: # state of charge
  source: mqtt
  topic: polestar2/CarTelematicsV2/battery/0/batteryChargeLevelPercentage
  timeout: 10s

oswaldo-be avatar Mar 22 '26 16:03 oswaldo-be

I am sure it would be a minute task for @loebse 👍

Is the change from @loebse already in the nightly build? I downloaded nightly today and it still does not work.

hjwsg avatar Mar 23 '26 09:03 hjwsg

I am sure it would be a minute task for @loebse 👍

Is the change from @loebse already in the nightly build? I downloaded nightly today and it still does not work.

No, it is not merged yet...

loebse avatar Mar 23 '26 10:03 loebse

Mit diesem Docker Container bekomme ich Werte, die ich an den evcc pushe. Es sollte also eine saubere Lösung über die API möglich sein.

GitJS01 avatar Mar 24 '26 13:03 GitJS01