evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Context Deadline Exceeded / Timeout - Crowdscience Issue?

Open fjt99 opened this issue 5 months ago • 2 comments

Description

I did not knowingly change anything and the issue was present in v0.309.1 as well. There are lots of errors regarding context deadline exceeded but it is unclear to me what the cause of the errors is.

Steps to Reproduce

  1. Run EVCC
  2. Errors appear
  3. evcc seems to keep running normally despite the errors

Configuration (YAML)

plant: *****

Configuration (UI)

{
  "charger": [
    {"id":1,"name":"db:1","type":"template","config":{"charger":"EHEGAC2A","password":"***","template":"easee","timeout":"20s","user":"***"}}
  ],
  "experimental": true,
  "hems": "#vendorid: AAAAAAAA
#deviceid: BBBBBBBB",
  "influx": {"url":"","database":"","token":"","org":"","user":"","password":"","insecure":false},
  "interval": 10,
  "loadpoints": [
    {"id":2,"name":"db:2","batteryBoostLimit":20,"charger":"db:1","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":0,"smartCostLimit":-0.4,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":false},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"title":"Easee Große Garage"}
  ],
  "meter": [
    {"id":4,"name":"db:4","type":"template","config":{"chargepower":"","host":"192.168.178.55","id":3,"maxacpower":"0","modbus":"tcpip","port":502,"template":"sma-hybrid","usage":"pv","watchdog":"60s"},"deviceTitle":"Wechselrichter"},
    {"id":5,"name":"db:5","type":"template","config":{"baudrate":9600,"capacity":10.24,"chargepower":"","comset":"8N1","host":"192.168.178.55","id":3,"maxacpower":10000,"maxchargepower":"","maxdischargepower":"","modbus":"tcpip","port":502,"template":"sma-hybrid","usage":"battery","watchdog":"60s"},"deviceTitle":"Hausbatterie"},
    {"id":6,"name":"db:6","type":"template","config":{"host":"192.168.178.33","template":"sma-home-manager","usage":"grid"}}
  ],
  "mqtt": {"broker":"wss://mqtt.evcc-crowdscience.de/","user":"","password":"","clientID":"","insecure":false,"caCert":"","clientCert":"","clientKey":"","topic":"evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c"},
  "residualPower": 100,
  "shm": {"vendorId":"","deviceId":"","deviceSerial":""},
  "site": {"title":"So30","grid":"db:6","pv":["db:4"],"battery":["db:5"],"aux":null,"ext":null,"consumers":null},
  "tariff": [
    {"id":8,"name":"db:8","type":"template","config":{"price":0.078,"template":"fixed"},"deviceProduct":"Fixed Price"},
    {"id":9,"name":"db:9","type":"template","config":{"template":"grünstromindex","zip":"***"},"deviceProduct":"Grünstromindex"},
    {"id":11,"name":"db:11","type":"template","config":{"ac":"1000","alphatemp":"-0.004","az":35,"de":"0","dec":90,"dm":"0","efficiency":"100","interval":"1h","kwp":3.48,"lat":"***","lon":"***","rossmodel":"0.0342","template":"open-meteo"},"deviceProduct":"Open-Meteo","deviceTitle":"PV-Zaun"},
    {"id":10,"name":"db:10","type":"template","config":{"ac":"1000","alphatemp":"-0.004","az":-135,"de":"0","dec":6,"dm":"0","efficiency":"100","interval":"1h","kwp":10.2,"lat":"***","lon":"***","rossmodel":"0.0342","template":"open-meteo"},"deviceProduct":"Open-Meteo","deviceTitle":"PV-Küchendach"},
    {"id":7,"name":"db:7","type":"template","config":{"template":"tibber","token":"***"},"deviceProduct":"Tibber"}
  ],
  "tariffRefs": {"grid":"db:7","feedIn":"db:8","co2":"db:9","planner":"","solar":["db:10","db:11"]},
  "vehicle": [
    {"id":12,"name":"db:12","type":"template","config":{"accessToken":"***","cache":"15m","capacity":71,"clientId":"5d74d959-96fe-44aa-a683-d8e2afabeee8","commandProxy":"https://api.myteslamate.com","icon":"car","mode":"pv","priority":0,"refreshToken":"***","template":"tesla","title":"Model Y","vin":"***"},"deviceProduct":"Tesla"}
  ]
}

Logs

[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/tariffPriceLoadpoints: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/tariffCo2Loadpoints: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/tariffPriceHome: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/tariffSolar: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/tariffCo2Home: context deadline exceeded
[site  ] DEBUG 2026/06/21 23:17:22 pv 1 power: 0W
[site  ] DEBUG 2026/06/21 23:17:22 site power: 4130W
[lp-1  ] DEBUG 2026/06/21 23:17:22 charge total import: 6320.731kWh
[lp-1  ] DEBUG 2026/06/21 23:17:22 charger status: B
[lp-1  ] DEBUG 2026/06/21 23:17:22 !! plan: plan time zero
[lp-1  ] DEBUG 2026/06/21 23:17:22 pv charge current: 0A = 0A + -18A (4130W @ 1p)
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/co2: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/feedIn: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/solar/dayAfterTomorrow/yield: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/solar/scale: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/solar/dayAfterTomorrow/complete: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/solar/today/yield: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/solar/today/complete: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/grid: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/planner: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/solar/tomorrow/yield: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/solar/tomorrow/complete: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/batteryGridChargeActive: context deadline exceeded
[mqtt  ] ERROR 2026/06/21 23:17:22 send evcc/019c94b5-c4cc-7000-9784-48ff8684fc7c/site/forecast/solar/timeseries: context deadline exceeded
[site  ] DEBUG 2026/06/21 23:17:22 solar forecast: produced 49.329kWh, forecasted 77.356kWh, scale 0.638

Version

v0.309.2

System

linux/amd64, CEST +02:00

fjt99 avatar Jun 21 '26 21:06 fjt99

I suppose it is the crowdscience MQTT. I guess I cannot do anything about it, despite of deactivating if the errors remain. I don’t use any other MQTT services.

fjt99 avatar Jun 21 '26 21:06 fjt99

Seems remove mqtt server has performance or connectivity issues. Nothing we can do.

andig avatar Jun 22 '26 08:06 andig