evcc
evcc copied to clipboard
Error creating template after upgrading
Description
After upgrading to the latest version with a backup that worked, my vehicle doesn't connect anymore and trying to validate or validate and save returns thr below error:
Request failed with status code 400. cannot create Vehicle type 'template': cannot create vehicle type 'polestar": login failed: could not find resume path. POST http://192.168.0.22:7070/api/config/test/vehicl e/merge/3
Steps to Reproduce
Validate existing polestar car (might happen with other cars)
Configuration (UI)
{
"charger": [
{"id":1,"name":"db:1","config":{"baudrate":9600,"comset":"8N1","host":"192.168.0.90","id":1,"modbus":"tcpip","port":502,"template":"alfen"},"deviceProduct":"Alfen Eve","type":"template"}
],
"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":25,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"2026-03-28T15:00: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","config":{"template":"shout","uri":"***"},"deviceProduct":"Shoutrrr","type":"template"}
],
"meter": [
{"id":12,"name":"db:12","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","type":"template"},
{"id":4,"name":"db:4","config":{"host":"192.168.0.245","template":"homewizard","usage":"grid"},"deviceProduct":"HomeWizard Wi-Fi P1 Meter","type":"template"}
],
"mqtt": {"broker":"","user":"","password":"","clientID":"","insecure":false,"caCert":"","clientCert":"","clientKey":"","topic":"evcc"},
"shm": {"vendorId":"","deviceId":"","deviceSerial":""},
"site": {"title":"Molenberg","grid":"db:4","pv":["db:12"],"battery":null,"aux":null,"ext":null},
"tariff": [
{"id":6,"name":"db:6","config":{"price":0.018500000000000003,"template":"fixed"},"deviceProduct":"Fixed Price","type":"template"},
{"id":5,"name":"db:5","config":{"price":0.2506,"template":"fixed"},"deviceProduct":"Fixed Price","type":"template"},
{"id":7,"name":"db:7","config":{"base":"350","template":"demo-co2-forecast","variation":"0.4"},"deviceProduct":"Demo CO₂ Forecast","type":"template"},
{"id":8,"name":"db:8","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","type":"template"}
],
"tariffRefs": {"grid":"db:5","feedIn":"db:6","co2":"db:7","planner":"","solar":["db:8"]},
"vehicle": [
{"id":3,"name":"db:3","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","type":"template"}
]
}
Logs
[lp-1 ] DEBUG 2026/03/26 20:44:21 plan: charge 8h20m0s between 2026-03-27 11:00:00 +0100 CET until 2026-03-28 16:00:00 +0100 CET (power: 3000W, avg cost: 254.800)
[lp-1 ] DEBUG 2026/03/26 20:44:21 pv charge current: 0A = 0A + -0.883A (203W @ 1p)
[site ] DEBUG 2026/03/26 20:44:21 solar forecast: accumulated 0.000Wh from 2026-03-26 20:43:51 +0100 CET to 2026-03-26 20:44:21 +0100 CET
[site ] DEBUG 2026/03/26 20:44:21 solar forecast: produced 72.000
[site ] DEBUG 2026/03/26 20:44:21 solar forecast: accumulated 74.330kWh, produced 72.000kWh, scale 0.969
[site ] DEBUG 2026/03/26 20:44:50 ----
[lp-1 ] DEBUG 2026/03/26 20:44:50 charge power: 0W
[lp-1 ] DEBUG 2026/03/26 20:44:50 charge currents: [0 0 0]A
[circuit-main] DEBUG 2026/03/26 20:44:50 power: 194W
[circuit-main] DEBUG 2026/03/26 20:44:50 current: 1.1A
[site ] DEBUG 2026/03/26 20:44:50 grid power: 194W
[site ] DEBUG 2026/03/26 20:44:50 grid currents: [0.57 1.1 0.57]A
[site ] DEBUG 2026/03/26 20:44:50 pv 1 power: 20W
[site ] DEBUG 2026/03/26 20:44:50 !! solar production: accumulate set db:12 5309.000kWh meter total (was: Accumulated: 72.000kWh updated: 2026-03-26 20:44:20 +0100 CET meter: 5309.000kWh)
[site ] DEBUG 2026/03/26 20:44:50 !! solar production: accumulate moved db:12 from 72.000 to 72.000
[site ] DEBUG 2026/03/26 20:44:50 site power: 194W
[lp-1 ] DEBUG 2026/03/26 20:44:50 charge voltages: [235 235 235]V
[lp-1 ] DEBUG 2026/03/26 20:44:51 charge total import: 2767.462kWh
[lp-1 ] INFO 2026/03/26 20:44:51 vehicle updated: unknown -> Polestar
[lp-1 ] DEBUG 2026/03/26 20:44:51 charger status: B
[lp-1 ] DEBUG 2026/03/26 20:44:51 plan: charge 8h20m0s between 2026-03-27 11:00:00 +0100 CET until 2026-03-28 16:00:00 +0100 CET (power: 3000W, avg cost: 254.800)
[lp-1 ] DEBUG 2026/03/26 20:44:51 pv charge current: 0A = 0A + -0.843A (194W @ 1p)
[site ] DEBUG 2026/03/26 20:44:51 solar forecast: accumulated 0.000Wh from 2026-03-26 20:44:21 +0100 CET to 2026-03-26 20:44:51 +0100 CET
[site ] DEBUG 2026/03/26 20:44:51 solar forecast: produced 72.000
[site ] DEBUG 2026/03/26 20:44:51 solar forecast: accumulated 74.330kWh, produced 72.000kWh, scale 0.969
Version
v0.303.2
System
linux/arm64, CET +01:00
This needs a grace log.
@loebse?
Nvm. Use nightly. And pls don‘t modify the issue template. Its there for a purpose!