Skip to content

optimizer context deadline exceeded #66

@Nasdero

Description

@Nasdero

Describe the bug

evcc-io/evcc#28323

"Reference in new issue" geht leider nicht

Steps to reproduce

1.Wenn ein Plan aktiv ist, kommt die Fehlermeldung, beim Restart von EVCC kommt sie sofort.
2.
3.
...

Configuration details

{
  "charger": [
    {"id":31,"name":"db:31","config":{"connector":"1","connecttimeout":"5m","meterinterval":"10s","stationid":"***","template":"ocpp-goe"},"deviceProduct":"go-e Charger Gemini (OCPP)","type":"template"},
    {"id":30,"name":"db:30","config":{"connector":"1","connecttimeout":"5m","meterinterval":"10s","stationid":"***","template":"ocpp-goe"},"deviceProduct":"go-e Charger V3 (OCPP)","type":"template"}
  ],
  "circuits": "- name: main # eindeutiger Name, wird als Referenz für andere Circuits verwendet
  title: Hauptstromkreis # Anzeige in der UI (später)
  maxCurrent: 50 # 63A (optional)
  maxPower: 34000
  meter: db:11 # optional
- name: garage
  title: Garage
  maxCurrent: 32
  maxpower: 22000
  parent: main
  meter: db:34
  GetMaxPower:
    source: mqtt
    topic: p14aEnWG/maxpower
    timeout: 15m",
  "experimental": true,
  "hems": "## external control via relay

type: relay
maxPower: 4200 # limit loadpoints to 4.2 kW total
limit: # limit signal, plugin
  source: mqtt
  topic: p14aEnWG/EVU-Sperre # 0/false = normal, 1/true = limit active
  timeout: 15m

#type: relay
#maxPower: 16800
#limit:
#  source: mqtt
#  topic: p14aEnWG/EVU-Sperre
#  timeout: 15m

## external control via EEBus

#type: eebus # general EEBus setup (cert gen) required
#ski: *****",
  "influx": {"url":"","database":"","token":"","org":"","user":"","password":"","insecure":false},
  "interval": 15,
  "loadpoints": [
    {"id":25,"name":"db:25","batteryBoostLimit":100,"charger":"db:30","circuit":"garage","defaultMode":"pv","limitEnergy":0,"limitSoc":0,"maxCurrent":9,"minCurrent":6,"phasesConfigured":0,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":0,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":420000000000,"threshold":-2100},"disable":{"delay":360000000000,"threshold":500}},"title":"Go-e","vehicle":"db:16"},
    {"id":32,"name":"db:32","batteryBoostLimit":100,"charger":"db:31","circuit":"garage","defaultMode":"pv","limitEnergy":0,"limitSoc":0,"maxCurrent":16,"minCurrent":6,"phasesConfigured":0,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":1,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":360000000000,"threshold":-2100},"disable":{"delay":420000000000,"threshold":500}},"title":"Go-e Leihgerät","vehicle":"db:17"}
  ],
  "messenger": [
    {"id":52,"name":"db:52","config":{"template":"shout","uri":"***"},"deviceProduct":"Shoutrrr","type":"template"}
  ],
  "meter": [
    {"id":34,"name":"db:34","config":{"host":"192.168.2.56","template":"shelly-pro-3em","usage":"grid"},"deviceIcon":"generic","deviceProduct":"Shelly Pro 3 EM","deviceTitle":"garage_meter","type":"template"},
    {"id":14,"name":"db:14","config":{"baudrate":9600,"comset":"8N1","host":"modbus-proxy.default.svc.cluster.local","id":"8","maxacpower":4600,"maxdischargepower":"5000","modbus":"tcpip","port":"9000","template":"solaredge-hybrid","usage":"pv","watchdog":"60s"},"deviceTitle":"WR 3","type":"template"},
    {"id":13,"name":"db:13","config":{"baudrate":9600,"comset":"8N1","host":"modbus-proxy.default.svc.cluster.local","id":1,"maxacpower":4600,"maxdischargepower":"5000","modbus":"tcpip","port":"9000","template":"solaredge-hybrid","usage":"pv","watchdog":"60s"},"deviceTitle":"WR 1","type":"template"},
    {"id":15,"name":"db:15","config":{"baudrate":9600,"comset":"8N1","host":"modbus-proxy.default.svc.cluster.local","id":"5","maxacpower":4600,"maxdischargepower":"5000","modbus":"tcpip","port":"9000","template":"solaredge-hybrid","usage":"pv","watchdog":"60s"},"deviceTitle":"WR 2","type":"template"},
    {"id":11,"name":"db:11","config":{"host":"modbus-proxy.default.svc.cluster.local","id":1,"maxacpower":"0","modbus":"tcpip","port":"9000","template":"solaredge-hybrid","usage":"grid","watchdog":"60s"},"type":"template"},
    {"id":12,"name":"db:12","config":{"baudrate":9600,"capacity":9.3,"comset":"8N1","host":"modbus-proxy.default.svc.cluster.local","id":1,"maxacpower":"0","maxchargepower":5000,"maxdischargepower":"5000","maxsoc":100,"minsoc":10,"modbus":"tcpip","port":"9000","template":"solaredge-hybrid","usage":"battery","watchdog":"60s"},"deviceTitle":"LG Resu 10H","type":"template"},
    {"id":27,"name":"db:27","config":{"baudrate":115200,"capacity":"5.12","comset":"8N1","host":"192.168.1.166","id":1,"maxchargepower":2500,"maxdischargepower":2500,"maxsoc":100,"minsoc":"11","modbus":"tcpip","port":502,"template":"marstek-venus","usage":"battery","work_mode_normal":"1"},"deviceProduct":"Marstek Venus Battery Storage","deviceTitle":"Marstek Venus E","type":"template"}
  ],
  "mqtt": {"broker":"tls://emqx.lan:8883","user":"evcc","password":"***","clientID":"","insecure":true,"caCert":"","clientCert":"","clientKey":"","topic":"evcc"},
  "shm": {"vendorId":"","deviceId":"","deviceSerial":""},
  "site": {"title":"Weidenweg","grid":"db:11","pv":["db:13","db:14","db:15"],"battery":["db:12","db:27"],"aux":null,"ext":["db:34"]},
  "tariff": [
    {"id":54,"name":"db:54","config":{"price":0.11699999999999999,"template":"fixed"},"deviceProduct":"Fester Preis","type":"template"},
    {"id":53,"name":"db:53","config":{"price":0.27,"template":"fixed"},"deviceProduct":"Fester Preis","type":"template"},
    {"id":56,"name":"db:56","config":{"ac":"1000","alphatemp":"-0.004","az":-41,"de":"0","dec":38,"dm":"0","efficiency":86,"interval":"15m","kwp":14.49,"lat":"***","lon":"***","rossmodel":0.0563,"template":"open-meteo"},"deviceProduct":"Open-Meteo","deviceTitle":"Süd-Ost","type":"template"},
    {"id":57,"name":"db:57","config":{"ac":"1000","alphatemp":"-0.004","az":139,"de":"0","dec":38,"dm":"0","efficiency":86,"interval":"15m","kwp":5.49,"lat":"***","lon":"***","rossmodel":0.0563,"template":"open-meteo"},"deviceProduct":"Open-Meteo","deviceTitle":"Nord-West","type":"template"}
  ],
  "tariffRefs": {"grid":"db:53","feedIn":"db:54","co2":"","planner":"","solar":["db:56","db:57"]},
  "vehicle": [
    {"id":16,"name":"db:16","config":{"alternativewakeup":true,"cache":900000000000,"capacity":48,"icon":"car","identifiers":["7C:BC:84:40:F8:C1"],"maxCurrent":32,"maxPower":22000,"maxcurrent":32,"maxpower":22000,"minCurrent":8,"mincurrent":8,"mode":"pv","password":"***","phases":"","template":"renault","title":"Zoe","user":"***","vin":"***","wakeupmode":"default"},"type":"template"},
    {"id":17,"name":"db:17","config":{"cache":900000000000,"capacity":60,"icon":"car","identifiers":["00:7D:*"],"maxCurrent":16,"maxPower":11000,"maxcurrent":20,"maxpower":11000,"minCurrent":6,"mincurrent":6,"mode":"pv","password":"***","phases":"","priority":1,"template":"cupra","title":"Born","user":"***","vin":"***","welcomecharge":false},"type":"template"}
  ]
}

Log details

[site  ] DEBUG 2026/03/18 09:32:37 pv 1 excess DC: 1813W
[site  ] DEBUG 2026/03/18 09:32:37 pv power: 13762W (includes 1813W excess DC)
[site  ] DEBUG 2026/03/18 09:32:37 !! solar production: accumulate set db:13 55195.152kWh meter total (was: Accumulated: 3392.289kWh updated: 2026-03-18 09:32:33 +0100 CET meter: 55195.152kWh)
[site  ] DEBUG 2026/03/18 09:32:37 !! solar production: accumulate moved db:13 from 3392.289 to 3392.289
[site  ] DEBUG 2026/03/18 09:32:37 !! solar production: accumulate set db:14 41938.564kWh meter total (was: Accumulated: 3544.828kWh updated: 2026-03-18 09:32:33 +0100 CET meter: 41938.560kWh)
[site  ] DEBUG 2026/03/18 09:32:37 !! solar production: accumulate moved db:14 from 3544.828 to 3544.832
[site  ] DEBUG 2026/03/18 09:32:37 !! solar production: accumulate set db:15 49591.064kWh meter total (was: Accumulated: 3457.214kWh updated: 2026-03-18 09:32:33 +0100 CET meter: 49591.064kWh)
[site  ] DEBUG 2026/03/18 09:32:37 !! solar production: accumulate moved db:15 from 3457.214 to 3457.214
[site  ] DEBUG 2026/03/18 09:32:37 grid powers: [2208 -1020 -1154]W
[site  ] DEBUG 2026/03/18 09:32:38 grid currents: [4.3 0 0]A
[site  ] DEBUG 2026/03/18 09:32:38 battery has priority at soc 20% (< 100%)
[site  ] DEBUG 2026/03/18 09:32:38 site power: 1242W
[lp-1  ] DEBUG 2026/03/18 09:32:38 charge voltages: [238 235 236]V
[lp-1  ] DEBUG 2026/03/18 09:32:38 detected active phases: 3p
[lp-1  ] DEBUG 2026/03/18 09:32:38 session energy: 30.791kWh
[lp-1  ] DEBUG 2026/03/18 09:32:38 charge total import: 3037.661kWh
[lp-1  ] DEBUG 2026/03/18 09:32:38 charger status: C
[lp-1  ] DEBUG 2026/03/18 09:32:38 vehicle soc: 82%
[lp-1  ] DEBUG 2026/03/18 09:32:38 vehicle range: 238km
[lp-1  ] DEBUG 2026/03/18 09:32:38 soc estimated: 82.11% (vehicle: 82.00%)
[lp-1  ] DEBUG 2026/03/18 09:32:38 vehicle soc (estimator): 82%
[lp-1  ] DEBUG 2026/03/18 09:32:38 !! plan: plan time zero
[site  ] DEBUG 2026/03/18 09:32:38 solar forecast: accumulated 0.011Wh from 2026-03-18 09:32:33 +0100 CET to 2026-03-18 09:32:38 +0100 CET
[site  ] DEBUG 2026/03/18 09:32:38 solar forecast: produced 10394.336
[site  ] DEBUG 2026/03/18 09:32:38 solar forecast: accumulated 10400.202kWh, produced 10394.336kWh, scale 0.999

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

Linux

External automation

  • 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

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

Version

0.303.1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions