evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Polestar: API has changed again, SoC no longer available

Open loebse opened this issue 9 months ago • 6 comments

Describe the bug

Polestar has changed their API again and removed battery from carTelematicsV2

So, we cannot read the SoC currently!

Steps to reproduce

...

Configuration details

vehicles:
- type: template
  template: polestar
  title: Polestar
  icon: car
  user: ***
  password: ***
  vin: ***
  capacity: 82

Log details

Polestar: charger soc: Message: Validation error of type FieldUndefined: Field 'battery' in type 'CarTelematicsV2Response' is undefined @ 'carTelematicsV2/battery', Locations: [{Line:1 Column:221}], Extensions: map[], Path: []

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

Linux

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

No response

loebse avatar Feb 26 '26 10:02 loebse

I already told the Polestar support, that they should fix this error!

oswaldo-be avatar Feb 26 '26 11:02 oswaldo-be

I already told the Polestar support, that they should fix this error!

I am afraid that it will not change anything but thanks for making the effort. As Polestar did not release a public API, they usually do not respond to such requests.

loebse avatar Feb 26 '26 12:02 loebse

same issue for me. Log:

Logs

[lp-1  ] DEBUG 2026/02/26 14:29:31 charge total import: 5791.376kWh
[lp-1  ] INFO 2026/02/26 14:29:31 loadpoint 1:
[lp-1  ] INFO 2026/02/26 14:29:31   mode:        pv
[lp-1  ] INFO 2026/02/26 14:29:31   charger:     power ✓ energy ✓ currents ✓ phases ✗ wakeup ✗
[lp-1  ] INFO 2026/02/26 14:29:31   meters:      charge ✓
[lp-1  ] INFO 2026/02/26 14:29:31     charge:    power ✓ energy ✓ currents ✓
[lp-1  ] DEBUG 2026/02/26 14:29:31 phase timer inactive
[lp-1  ] DEBUG 2026/02/26 14:29:31 pv timer inactive
[lp-1  ] INFO 2026/02/26 14:29:31 vehicle updated: unknown -> PS2
[lp-1  ] DEBUG 2026/02/26 14:29:31 set charge mode: pv
[lp-1  ] DEBUG 2026/02/26 14:29:31 set charge current limit: 6A
[lp-1  ] DEBUG 2026/02/26 14:29:31 charge power: 0W
[lp-1  ] DEBUG 2026/02/26 14:29:31 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2026/02/26 14:29:32 charge total import: 5791.376kWh
[lp-1  ] DEBUG 2026/02/26 14:29:32 charger status: B
[lp-1  ] DEBUG 2026/02/26 14:29:32 charge start energy: 5791.376kWh
[lp-1  ] INFO 2026/02/26 14:29:32 car connected
[lp-1  ] DEBUG 2026/02/26 14:29:32 set charge mode: pv
[lp-1  ] DEBUG 2026/02/26 14:29:32 pv timer elapse
[lp-1  ] DEBUG 2026/02/26 14:29:32 pv timer inactive
[lp-1  ] DEBUG 2026/02/26 14:29:32 charge total import: 5791.376kWh
[lp-1  ] DEBUG 2026/02/26 14:29:32 charger vehicle id: ****************
[lp-1  ] DEBUG 2026/02/26 14:29:32 set charge mode: pv
[lp-1  ] ERROR 2026/02/26 14:29:32 charger soc: Message: Validation error of type FieldUndefined: Field 'battery' in type 'CarTelematicsV2Response' is undefined @ 'carTelematicsV2/battery', Locations: [{Line:1 Column:221}], Extensions: map[], Path: []
[lp-1  ] DEBUG 2026/02/26 14:29:32 !! plan: plan time zero
[lp-1  ] DEBUG 2026/02/26 14:29:32 set charge current limit: 16A
[lp-1  ] DEBUG 2026/02/26 14:29:32 charge power: 0W
[lp-1  ] DEBUG 2026/02/26 14:29:32 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2026/02/26 14:29:32 charge total import: 5791.376kWh
[lp-1  ] DEBUG 2026/02/26 14:29:32 charger status: B
[lp-1  ] DEBUG 2026/02/26 14:29:32 !! plan: plan time zero
[lp-1  ] DEBUG 2026/02/26 14:30:02 charge power: 0W

hjwsg avatar Feb 26 '26 13:02 hjwsg

It actually works now again, let's see if this was just a mistake by Polestar 😉

loebse avatar Feb 26 '26 14:02 loebse

Issue seems resolved for me now, EVCC shows my SoC again :)

RandomGenerator avatar Feb 26 '26 14:02 RandomGenerator

Closing this issue as I think it was just a mistake by Polestar 😉 The API is working again as expected.

loebse avatar Feb 26 '26 14:02 loebse