evcc
evcc copied to clipboard
Error reading battery state Polestar 2
Description
When charging the car, I get an error
[lp-1 ] ERROR 2026/05/22 11:09:36 charger soc: Message: Validation error of type FieldUndefined: Field 'chargingStatus' in type 'BatteryV2' is undefined @ 'carTelematicsV2/battery/chargingStatus', Locations: [{Line:1 Column:262}], Extensions: map[], Path: []
And no battery percentage is shown in the UI,
Steps to Reproduce
Connect polestar 2, and start charging and check logs
Configuration (YAML)
no yaml configuration
Configuration (UI)
{
"charger": [
{"id":1,"name":"db:1","type":"template","config":{"baudrate":9600,"comset":"8N1","host":"192.168.0.90","id":1,"modbus":"tcpip","port":502,"template":"alfen"},"deviceProduct":"Alfen Eve"}
],
"circuits": "- name: main # if there is only one circuit defined the name needs to be 'main'
title: \"main circuit\" # name for the UI (not implemented in UI yet)
maxCurrent: 25 # 63A (optional)
maxPower: 3000 # 30kW (optional)
meter: db:4 # optional",
"experimental": true,
"influx": {"url":"","database":"","token":"","org":"","user":"","password":"","insecure":false},
"interval": 30,
"loadpoints": [
{"id":2,"name":"db:2","batteryBoostLimit":100,"charger":"db:1","circuit":"main","defaultMode":"pv","limitEnergy":0,"limitSoc":0,"maxCurrent":16,"minCurrent":6,"phasesConfigured":1,"planEnergy":20,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"2026-03-29T09:30:00Z","priority":0,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"title":"Alfen","vehicle":"db:3"}
],
"messenger": [
{"id":10,"name":"db:10","type":"template","config":{"template":"shout","uri":"***"},"deviceProduct":"Shoutrrr"}
],
"meter": [
{"id":12,"name":"db:12","type":"template","config":{"baudrate":9600,"comset":"8N1","host":"192.168.0.12","id":1,"modbus":"tcpip","port":502,"template":"solis","usage":"pv"},"deviceProduct":"Ginlong Solis Inverter","deviceTitle":"SOLIS"},
{"id":4,"name":"db:4","type":"template","config":{"host":"192.168.0.245","template":"homewizard","usage":"grid"},"deviceProduct":"HomeWizard Wi-Fi P1 Meter"}
],
"mqtt": {"broker":"127.0.0.1:1883","user":"","password":"","clientID":"","insecure":true,"caCert":"","clientCert":"","clientKey":"","topic":""},
"residualPower": 0,
"shm": {"vendorId":"","deviceId":"","deviceSerial":""},
"site": {"title":"Molenberg","grid":"db:4","pv":["db:12"],"battery":null,"aux":null,"ext":null},
"tariff": [
{"id":5,"name":"db:5","type":"template","config":{"price":0.2506,"template":"fixed"},"deviceProduct":"Fixed Price"},
{"id":6,"name":"db:6","type":"template","config":{"price":0.018500000000000003,"template":"fixed"},"deviceProduct":"Fixed Price"},
{"id":7,"name":"db:7","type":"template","config":{"base":"350","template":"demo-co2-forecast","variation":"0.4"},"deviceProduct":"Demo CO₂ Forecast"},
{"id":8,"name":"db:8","type":"template","config":{"ac":2940,"alphatemp":"-0.004","az":-10,"de":70,"dec":25,"dm":60,"efficiency":100,"interval":"1h","kwp":2.94,"lat":"***","lon":"***","rossmodel":"0.0342","template":"open-meteo"},"deviceProduct":"Open-Meteo","deviceTitle":"Solar"}
],
"tariffRefs": {"grid":"db:5","feedIn":"db:6","co2":"db:7","planner":"","solar":["db:8"]},
"vehicle": [
{"id":3,"name":"db:3","type":"template","config":{"cache":"15m","capacity":69,"icon":"car","identifiers":["04:37:F5:12:4A:13:90","04:37:EA:F2:7E:6B:80"],"maxCurrent":16,"maxPower":3500,"minCurrent":0.25,"mode":"pv","password":"***","phases":"1","template":"polestar","title":"Polestar","user":"***"},"deviceProduct":"Polestar"}
]
}
Logs
[lp-1 ] ERROR 2026/05/22 11:09:07 charger soc: Message: Validation error of type FieldUndefined: Field 'chargingStatus' in type 'BatteryV2' is undefined @ 'carTelematicsV2/battery/chargingStatus', Locations: [{Line:1 Column:262}], Extensions: map[], Path: []
[lp-1 ] DEBUG 2026/05/22 11:09:07 !! plan: plan time zero
[lp-1 ] DEBUG 2026/05/22 11:09:07 pv charge current: 9.5A = 0A + 9.5A (-2186W @ 1p)
[lp-1 ] DEBUG 2026/05/22 11:09:07 pv timer reset
[lp-1 ] DEBUG 2026/05/22 11:09:07 pv timer inactive
[lp-1 ] DEBUG 2026/05/22 11:09:07 set charge current limit: 9.5A
[site ] DEBUG 2026/05/22 11:09:35 ----
[lp-1 ] DEBUG 2026/05/22 11:09:36 charge power: 2121W
[lp-1 ] DEBUG 2026/05/22 11:09:36 charge currents: [9.31 0 0]A
[main ] DEBUG 2026/05/22 11:09:36 power: -7W
[main ] DEBUG 2026/05/22 11:09:36 current: 10.2A
[site ] DEBUG 2026/05/22 11:09:36 grid power: -7W
[site ] DEBUG 2026/05/22 11:09:36 grid currents: [10.1 1.11 10.2]A
[site ] DEBUG 2026/05/22 11:09:36 pv 1 power: 2500W
[site ] DEBUG 2026/05/22 11:09:36 site power: -7W
[lp-1 ] DEBUG 2026/05/22 11:09:36 charge voltages: [230 243 242]V
[lp-1 ] DEBUG 2026/05/22 11:09:36 charge total import: 3023.744kWh
[lp-1 ] DEBUG 2026/05/22 11:09:36 charger status: C
[lp-1 ] DEBUG 2026/05/22 11:09:36 charge start energy: 3023.744kWh
[lp-1 ] INFO 2026/05/22 11:09:36 start charging ->
[lp-1 ] DEBUG 2026/05/22 11:09:36 wake-up timer: stop
[lp-1 ] ERROR 2026/05/22 11:09:36 charger soc: Message: Validation error of type FieldUndefined: Field 'chargingStatus' in type 'BatteryV2' is undefined @ 'carTelematicsV2/battery/chargingStatus', Locations: [{Line:1 Column:262}], Extensions: map[], Path: []
[lp-1 ] DEBUG 2026/05/22 11:09:37 !! plan: plan time zero
[lp-1 ] DEBUG 2026/05/22 11:09:37 pv charge current: 9.53A = 9.5A + 0.0304A (-7W @ 1p)
[lp-1 ] DEBUG 2026/05/22 11:09:37 set charge current limit: 9.53A
Version
v0.307.0
System
linux/arm64, CEST +02:00