evcc icon indicating copy to clipboard operation
evcc copied to clipboard

EVCC 0.312.1 no connection to server

Open universal-dilettant opened this issue 4 months ago • 3 comments

Describe the bug

UI doesn't connect to server anymore (keine Verbindung zum Server) with 0.312.1 Everything alright when going back to 0.312.0 No changes in config etc.

Steps to reproduce

  1. Get 0.312.1 docker image (or nightly)
  2. Start it

...

Configuration details

[main  ] INFO 2026/07/21 06:38:22 config file not found, database-only mode
[main  ] INFO 2026/07/21 06:38:22 using sqlite database: /root/.evcc/evcc.db?_pragma=busy_timeout(5000)&_pragma=foreign_keys(1)&_pragma=auto_vacuum(INCREMENTAL)
[mqtt  ] INFO 2026/07/21 06:38:23 connecting evcc-2056327118 at tcp://192.168.0.202:1883
[eebus ] INFO 2026/07/21 06:38:23 Local SKI: b44440a32946caac773af104251c617569befaa8
[warp  ] INFO 2026/07/21 06:38:23 connecting evcc-583555408 at tcp://192.168.0.202:1883
[db:38 ] WARN 2026/07/21 06:38:24 uncached request repeated within 1s, please report at https://github.com/evcc-io/evcc/issues: https://api.open-meteo.com/v1/forecast

Version: `0.312.1 (9a2a73063)`

/app # evcc -v
evcc version 0.312.1 (9a2a73063)
/app # ^C

/app # evcc config
[main  ] INFO 2026/07/21 06:40:11 config file not found, database-only mode
[main  ] INFO 2026/07/21 06:40:11 using sqlite database: /root/.evcc/evcc.db?_pragma=busy_timeout(5000)&_pragma=foreign_keys(1)&_pragma=auto_vacuum(INCREMENTAL)
charger
---
db:1 {Type:template Title: Icon: Product:TinkerForge WARP3 Charger Pro} map[host:192.168.0.202 password:***** port:1883 template:tinkerforge-warp3 timeout:3e+10 topic:warp3/2bB4 user:*****]
db:25 {Type:custom Title: Icon: Product:} map[yaml:## required attributes [type: custom]

status: # charger status (A: not connected, B: connected, C: charging)
  source: const
  value: "A"
enabled: # is charging enabled?
  source: const
  value: true
enable: # enable/disable charging
  source: js
  script: console.log(enable)
maxcurrent: # set maximum charge current in A
  source: js
  script: console.log(maxcurrent) #

## optional attributes (read-only)

#icon: generic # icon for UI purpose only
#power: # charge power in W
#  source: const
#  value: 11000
#energy: # meter reading in kWh
#  source: const
#  value: 42.5
#identify: # current RFID identifier
#  source: const
#  value: "1234567890"
#soc: # state of charge in %
#  source: const
#  value: 75
#powers: # phase powers in W
#  - source: const
#    value: 3600
#  - source: const
#    value: 3700
#  - source: const
#    value: 3800
#currents: # phase currents in A
#  - source: const
#    value: 16.0
#  - source: const
#    value: 16.1
#  - source: const
#    value: 16.2
#voltages: # phase voltages in V
#  - source: const
#    value: 230.1
#  - source: const
#    value: 230.2
#  - source: const
#    value: 230.3

## optional attributes (writeable)

#maxcurrentmillis: # set maximum charge current in A with decimal precision
#  source: js
#  script: console.log(maxcurrentmillis);
#phases1p3p: # switch phases (requires 'tos: true')
#  source: js
#  script: console.log(phases1p3p);
#tos: true
#wakeup: # wake up vehicle
#  source: js
#  script: console.log(wakeup);
]
db:28 {Type:heatpump Title: Icon: Product:} map[yaml:## required attributes [type: heatpump]

setmaxpower: # update the maximum heating power
  source: js
  script: console.log(maxpower); #

## optional attributes (read-only)

#getmaxpower: # heating power in W
#  source: const
#  value: 5000
power: # heating power in W
  source: mqtt
  topic: P1P2/P/P1P2MQTT/bridge0/C/9/Production_Heatpump
  timeout: 120s
#energy: # meter reading in kWh
#  source: const
#  value: 42.5
temp: # current temperature (°C)
  source: mqtt
  topic: P1P2/P/P1P2MQTT/bridge0/T/1/Temperature_R2T_Leaving_Water
  timeout: 120s
limittemp: # temperature limit (°C) configured in device
  source: const
  value: 60
]

meter
---
db:4 {Type:template Title:Batterie Icon: Product:E3/DC} map[capacity:11.7 dischargelimit:4500 externalpower:true host:192.168.0.204 key:***** maxacpower:0 maxchargepower:4500 maxdischargepower:4500 maxsoc:100 minsoc:0 password:***** port:5033 template:e3dc-rscp usage:battery user:*****]
db:6 {Type:template Title:PV2 Icon: Product:Hoymiles HM & HMS Series (via OpenDTU)} map[host:192.168.0.229 template:hoymiles-opendtu usage:pv]
db:9 {Type:template Title:PV1 S3 Icon: Product:Huawei SUN2000} map[baudrate:9600 comset:8N1 forceaccharging:false host:192.168.0.206 id:0 maxacpower:2000 maxchargepower:10000 modbus:tcpip port:6607 storageunit:1 template:huawei-sun2000 timeout:3e+10 usage:pv]
db:29 {Type:custom Title: Icon: Product:} map[yaml:## required attributes

power: # current power
  source: mqtt
  topic: transform/power/hp
  timeout: 120s

## optional attributes (read-only)

#energy: # meter reading in kWh
#  source: mqtt
#  topic: transform/energy/hp/ec2o
#  timeout: 120s

#maxpower: # maximum AC power in W (for hybrid pv)
#  source: const
#  value: 5000
#soc: # state of charge in % (for battery)
#  source: const
#  value: 75
#capacity: 10.5 # capacity in kWh (for battery)
#powers: # phase powers in W
#  - source: const
#    value: 330
#  - source: const
#    value: 340
#  - source: const
#    value: 330
#currents: # phase currents in A
#  - source: const
#    value: 1.5
#  - source: const
#    value: 1.6
#  - source: const
#    value: 1.5
#voltages: # phase voltages in V
#  - source: const
#    value: 230.1
#  - source: const
#    value: 230.2
#  - source: const
#    value: 230.3

## optional attributes (writeable)

#limitsoc: # set battery charge target in % (for battery)
#  source: js
#  script: console.log(limitsoc)
#batterymode: # set charging mode directly (1: normal, 2: hold, 3: charge) (for battery)
#  source: js
#  script: console.log(batterymode)
]
db:31 {Type:custom Title: Icon: Product:} map[yaml:## required attributes

power: # current power
  source: mqtt
  topic: e3dc/grid/power
  timeout: 15s

## optional attributes (read-only)

#energy: # meter reading in kWh
#  source: const
#  value: 42.5
#maxpower: # maximum AC power in W (for hybrid pv)
#  source: const
#  value: 5000
#soc: # state of charge in % (for battery)
#  source: const
#  value: 75
#capacity: 10.5 # capacity in kWh (for battery)
#powers: # phase powers in W
#  - source: const
#    value: 330
#  - source: const
#    value: 340
#  - source: const
#    value: 330
currents: # phase currents in A
  - source: mqtt
    topic: transform/current/grid/L1
    timeout: 15s
  - source: mqtt
    topic: transform/current/grid/L2
    timeout: 15s
  - source: mqtt
    topic: transform/current/grid/L3
    timeout: 15s
voltages: # phase voltages in V
  - source: mqtt
    topic: e3dc/pm/voltage/L1
    timeout: 15s
  - source: mqtt
    topic: e3dc/pm/voltage/L2
    timeout: 15s
  - source: mqtt
    topic: e3dc/pm/voltage/L3
    timeout: 15s


## optional attributes (writeable)

#limitsoc: # set battery charge target in % (for battery)
#  source: js
#  script: console.log(limitsoc)
#batterymode: # set charging mode directly (1: normal, 2: hold, 3: charge) (for battery)
#  source: js
#  script: console.log(batterymode)
]
db:32 {Type:template Title:PV1 Icon: Product:E3/DC} map[externalpower:true host:192.168.0.204 key:***** maxacpower:12000 password:***** port:5033 template:e3dc-rscp usage:pv user:*****]

vehicle
---
db:45 {Type:template Title: Icon: Product:Opel} map[accessToken:***** autodetectdisabled:false cache:15m capacity:45 climaterdisabled:false icon:car maxCurrent:20 maxPower:10600 minCurrent:6 mode:pv phases:3 priority:0 refreshToken:***** template:opel title:eCorsa user:*****]

tariff
---
db:35 {Type:template Title: Icon: Product:Fester Preis} map[price:0.077 template:fixed]
db:36 {Type:template Title:Dach SO Icon: Product:Open-Meteo} map[ac:1000 alphatemp:-0.004 az:-60 de:0 dec:38 dm:0 efficiency:91 interval:1h kwp:3.51 lat:***** lon:***** rossmodel:0.0342 template:open-meteo]
db:37 {Type:template Title:Dach NW Icon: Product:Open-Meteo} map[ac:1000 alphatemp:-0.004 az:120 de:0 dec:38 dm:0 efficiency:91 interval:1h kwp:3.51 lat:***** lon:***** rossmodel:0.0342 template:open-meteo]
db:38 {Type:template Title:Fassade SW Icon: Product:Open-Meteo} map[ac:1000 alphatemp:-0.004 az:30 de:0 dec:90 dm:0 efficiency:91 interval:1h kwp:5.85 lat:***** lon:***** rossmodel:0.0342 template:open-meteo]
db:39 {Type:template Title:Schuppen SW Icon: Product:Open-Meteo} map[ac:1000 alphatemp:-0.004 az:30 de:0 dec:15 dm:0 efficiency:91 interval:1h kwp:1.95 lat:***** lon:***** rossmodel:0.0342 template:open-meteo]
db:40 {Type:template Title:Garage SO Icon: Product:Open-Meteo} map[ac:1000 alphatemp:-0.004 az:-60 de:0 dec:15 dm:0 efficiency:91 interval:1h kwp:1.76 lat:***** lon:***** rossmodel:0.0342 template:open-meteo]
db:41 {Type:template Title:Garage NW Icon: Product:Open-Meteo} map[ac:1000 alphatemp:-0.004 az:120 de:0 dec:15 dm:0 efficiency:91 interval:1h kwp:0.88 lat:***** lon:***** rossmodel:0.0342 template:open-meteo]
db:42 {Type:template Title:Balkon SO Icon: Product:Open-Meteo} map[ac:1000 alphatemp:-0.004 az:-60 de:0 dec:75 dm:0 efficiency:91 interval:1h kwp:0.88 lat:***** lon:***** rossmodel:0.0342 template:open-meteo]
db:43 {Type:template Title: Icon: Product:Zeitabhängiger Tarif} map[price:0.327 template:fixed-zones zones:[map[days: hours:00:00-06:00 months:jan,feb,mar,oct,nov,dec price:0.22699999999999998] map[days: hours:16:00-20:00 months:jan,feb,mar,oct,nov,dec price:0.377]]]

loadpoint
---
db:2 {Type: Title: Icon: Product:} map[batteryBoostLimit:100 charger:db:1 circuit:main defaultMode:pv limitEnergy:0 limitSoc:0 maxCurrent:20 meter: mode:pv phasesConfigured:0 planStrategy:map[continuous:false precondition:0] soc:map[estimate:true poll:map[interval:7.2e+12 mode:always]] thresholds:map[disable:map[delay:1.8e+11 threshold:0] enable:map[delay:6e+10 threshold:0]] title:WallBox Garage ui:map[maxTemp:0 minTemp:0] vehicle:]
db:30 {Type: Title: Icon: Product:} map[batteryBoostLimit:100 charger:db:28 circuit:main defaultMode:now limitSoc:55 maxCurrent:25 meter:db:29 minCurrent:0.125 mode:now phasesConfigured:1 planStrategy:map[continuous:false precondition:0] soc:map[estimate:true poll:map[interval:3.6e+12 mode:charging]] thresholds:map[disable:map[delay:1.8e+11 threshold:0] enable:map[delay:6e+11 threshold:15000]] title:Wärmepumpe ui:map[maxTemp:0 minTemp:0] vehicle:]

messenger
---
db:33 {Type:template Title: Icon: Product:Telegram} map[chats:***** template:telegram token:*****]

hems
---
db:44 {Type:custom Title: Icon: Product:} map[yaml:## external control via binary in put

type: relay
maxPower: 10500 # limit 3 loadpoints 10,5kW
limit:  # limit signal, plugin
  source: mqtt
  topic: hems/limit/status # 0/false = normal, 1/true = limit active
  timeout: 201h

## external control via EEBus protocol

#type: eebus # general EEBus setup (cert gen) required
#ski: "1234-5678-90AB-CDEF" # SKI of control box (grid operator)

## SMA Sunny Home Manager 2.0, will change soon https://github.com/evcc-io/evcc/pull/23190

#type: sma
#allowcontrol: false
#vendorid: AAAAAAAA
#deviceid: BBBBBBBB]

/app #

Log details

evcc-1  | [main  ] INFO 2026/07/21 06:26:38 evcc 0.312.1 (9a2a73063)
evcc-1  | [main  ] INFO 2026/07/21 06:26:38 config file not found, database-only mode
evcc-1  | [main  ] INFO 2026/07/21 06:26:38 using sqlite database: /root/.evcc/evcc.db?_pragma=busy_timeout(5000)&_pragma=foreign_keys(1)&_pragma=auto_vacuum(INCREMENTAL)
evcc-1  | [mqtt  ] INFO 2026/07/21 06:26:39 connecting evcc-1471092810 at tcp://192.168.0.202:1883
evcc-1  | [eebus ] INFO 2026/07/21 06:26:39 Local SKI: b44440a32946caac773af104251c617569befaa8
evcc-1  | [main  ] INFO 2026/07/21 06:26:39 OCPP local url:    ws://127.0.0.1:8887/<stationId>
evcc-1  | [main  ] INFO 2026/07/21 06:26:39 UI local url:      http://127.0.0.1:7070
evcc-1  | [warp  ] INFO 2026/07/21 06:26:39 connecting evcc-102729695 at tcp://192.168.0.202:1883
evcc-1  | [db:41 ] WARN 2026/07/21 06:26:39 uncached request repeated within 1s, please report at https://github.com/evcc-io/evcc/issues: https://api.open-meteo.com/v1/forecast

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

Docker container

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

evcc version 0.312.1 (9a2a73063)

universal-dilettant avatar Jul 21 '26 04:07 universal-dilettant

See https://github.com/evcc-io/evcc/issues/32001

andig avatar Jul 21 '26 06:07 andig

Claude says:

  • c.run() calls w1() = mqtt BoolGetter
  • mqtt plugin uses util.NewMonitor[string](timeout); Monitor.GetFuncContext (util/monitor.go:95-110) blocks on first call up to timeout waiting for first value
  • no retained message on that topic → configureHEMS (cmd/root.go:359) blocks ~201 h
  • boot never reaches valueChan <- keys.ApiReady=true (cmd/root.go:515)
  • frontend: offline = wsOffline || state.apiReady !== true (assets/js/app.ts:43) → "keine Verbindung zum Server"

This makes perfect sense and is exactly as it behaves in any other mqtt integration in evcc.

andig avatar Jul 21 '26 06:07 andig

Thank you for the hint. UI of 0.312.1 is coming up nicely, now.

universal-dilettant avatar Jul 21 '26 10:07 universal-dilettant