evcc icon indicating copy to clipboard operation
evcc copied to clipboard

evcc comes up with error when load point is associated with circuit lpc

Open universal-dilettant opened this issue 1 year ago • 3 comments

Describe the bug

load point used to be associated with circuit main. With hems configured, I tried to associate it with the hems created circuit lpc (offered in drop down menu of load point - here loadpoint [db:12]). When restarting evcc, it comes back with fatal FATAL 2025/09/11 15:33:22 loadpoint [db:12] circuit: not found: lpc

Steps to reproduce

  1. see above

...

Configuration details

# evcc config
[main  ] INFO 2025/09/11 15:40:20 using config file: /etc/evcc.yaml
[db    ] INFO 2025/09/11 15:40:20 using sqlite database: /root/.evcc/evcc.db
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:11 {Type:custom Title: Icon: Product:} map[yaml:## required attributes [type: custom]

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

features:
  - heating # treat as a heating device
  - integrateddevice # no charging sessions, no connected vehicles

icon: heater # icon for UI purpose only

## optional attributes (read-only)

#power: # heating power in W
#  source: mqtt
#  topic: knx/4/0/43
#  timeout: 120s
#energy: # meter reading in kWh
#  source: mqtt
#  topic: knx/4/0/46
#  timeout: 300s
#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 heating current in A with decimal precision
#  source: js
#  script: console.log(maxcurrentmillis);
]

meter
---
db:3 {Type:template Title: Icon: Product:E3/DC} map[host:192.168.0.204 key:*** maxacpower:0 password:***** port:5033 template:e3dc-rscp usage:grid user:*****]
db:4 {Type:template Title:Batterie Icon: Product:E3/DC} map[capacity:11.7 host:192.168.0.204 key:*** maxacpower: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[forceaccharging:false host:192.168.0.206 id:0 maxacpower:0 maxchargepower:10000 modbus:tcpip port:6607 storageunit:1 template:huawei-sun2000 timeout:3e+10 usage:pv]
db:10 {Type:custom Title:PV1 Icon: Product:} map[yaml:## required attributes

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

## optional attributes (read-only)

energy: # meter reading in kWh
  source: mqtt
  topic: transform/energy/e3dc/pvi/AC
  timeout: 30s
  scale: 0.001

#maxpower: # maximum AC power in W (for hybrid pv)
#  source: const
#  value: 12000

#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: mqtt
#    topic: e3dc/pvi/power/L1
#    timeout: 15s
#  - source: mqtt
#    topic: e3dc/pvi/power/L2
#    timeout: 15s
#  - source: mqtt
#    topic: e3dc/pvi/power/L3
#    timeout: 15s

#currents: # phase currents in A
#  - source: mqtt
#    topic: e3dc/pvi/current/L1
#    timeout: 15s
#  - source: mqtt
#    topic: e3dc/pvi/current/L2
#    timeout: 15s
#  - source: mqtt
#    topic: e3dc/pvi/current/L3
#    timeout: 15s

#voltages: # phase voltages in V
#  - source: mqtt
#    topic: e3dc/pvi/voltage/L1
#    timeout: 15s
#  - source: mqtt
#    topic: e3dc/pvi/voltage/L2
#    timeout: 15s
#  - source: mqtt
#    topic: e3dc/pvi/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:13 {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: 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: mqtt
    topic: transform/power/hp/erga
    timeout: 120s
  - source: mqtt
    topic: transform/power/hp/ech2o
    timeout: 120s
  - source: mqtt
    topic: transform/power/hp/buh
    timeout: 120s
#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)
]

vehicle
---
db:8 {Type:template Title: Icon: Product:Opel} map[accessToken:fb331b68-3e74-418c-9bc0-73c33957e25b cache:1.44e+12 capacity:47 icon:car maxCurrent:20 minCurrent:6 mode:pv phases: refreshToken:470ea43d-bff4-44d5-b013-48a716a1bda2 template:opel title:eCorsa user:***** vin:*****]

loadpoint
---
db:2 {Type: Title: Icon: Product:} map[charger:db:1 circuit:main defaultMode:pv maxCurrent:32 meter: mode:pv phasesConfigured:3 soc:map[estimate:true poll:map[interval:8.64e+13 mode:always]] thresholds:map[disable:map[delay:1.8e+11 threshold:0] enable:map[delay:6e+10 threshold:0]] title:Garage vehicle:]
db:12 {Type: Title: Icon: Product:} map[charger:db:11 circuit:main meter:db:13 phasesConfigured:3 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+10 threshold:0]] title:WP vehicle:]

Log details

leo4-evcc-1  | [main  ] INFO 2025/09/11 15:32:09 evcc 0.207.6 (bf6721d3)
leo4-evcc-1  | [main  ] INFO 2025/09/11 15:32:09 using config file: /etc/evcc.yaml
leo4-evcc-1  | [db    ] INFO 2025/09/11 15:32:09 using sqlite database: /root/.evcc/evcc.db
leo4-evcc-1  | [mqtt  ] INFO 2025/09/11 15:32:09 connecting evcc-372926724 at tcp://192.168.0.202:1883
leo4-evcc-1  | [main  ] INFO 2025/09/11 15:32:09 UI listening at :7070
leo4-evcc-1  | [warp  ] INFO 2025/09/11 15:32:09 connecting evcc-595931556 at tcp://192.168.0.202:1883
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11 site config:
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11   meters:      grid ✓ pv ✓ battery ✓
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11     grid:      power ✓ energy ✗ currents ✗
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11     pv 1:      power ✓ energy ✓ currents ✗
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11     pv 2:      power ✓ energy ✓ currents ✗
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11     pv 3:      power ✓ energy ✓ currents ✗
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11     battery 1: power ✓ energy ✗ currents ✗ soc ✓ capacity ✓
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11   vehicles:
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11     vehicle 1: range ✓ finish ✓ status ✓ climate ✓ wakeup ✗
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11   tariffs:
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11     grid:      pricestatic
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11     feed-in:   pricestatic
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11     co2:       ✗
leo4-evcc-1  | [site  ] INFO 2025/09/11 15:32:11     solar:     ✓
leo4-evcc-1  | [lp-1  ] INFO 2025/09/11 15:32:11 loadpoint 1:
leo4-evcc-1  | [lp-1  ] INFO 2025/09/11 15:32:11   mode:        pv
leo4-evcc-1  | [lp-1  ] INFO 2025/09/11 15:32:11   charger:     power ✓ energy ✓ currents ✓ phases ✓ wakeup ✗
leo4-evcc-1  | [lp-1  ] INFO 2025/09/11 15:32:11   meters:      charge ✓
leo4-evcc-1  | [lp-1  ] INFO 2025/09/11 15:32:11     charge:    power ✓ energy ✓ currents ✓
leo4-evcc-1  | [lp-2  ] INFO 2025/09/11 15:32:11 loadpoint 2:
leo4-evcc-1  | [lp-2  ] INFO 2025/09/11 15:32:11   mode:        off
leo4-evcc-1  | [lp-2  ] INFO 2025/09/11 15:32:11   charger:     power ✗ energy ✗ currents ✗ phases ✗ wakeup ✗
leo4-evcc-1  | [lp-2  ] INFO 2025/09/11 15:32:11   meters:      charge ✓
leo4-evcc-1  | [lp-2  ] INFO 2025/09/11 15:32:11     charge:    power ✓ energy ✗ currents ✗
leo4-evcc-1  | [lp-1  ] WARN 2025/09/11 15:32:12 poll mode '{always 24h0m0s}' may deplete your battery or lead to API misuse. USE AT YOUR OWN RISK.
leo4-evcc-1  | [site  ] WARN 2025/09/11 15:32:12 interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval
leo4-evcc-1  | [lp-1  ] INFO 2025/09/11 15:32:43 car disconnected
leo4-evcc-1  | [lp-2  ] INFO 2025/09/11 15:32:53 car connected
leo4-evcc-1  | [main  ] INFO 2025/09/11 15:33:11 evcc was stopped by user. OS should restart the service. Or restart manually.
leo4-evcc-1  | [main  ] INFO 2025/09/11 15:33:13 evcc 0.207.6 (bf6721d3)
leo4-evcc-1  | [main  ] INFO 2025/09/11 15:33:13 using config file: /etc/evcc.yaml
leo4-evcc-1  | [db    ] INFO 2025/09/11 15:33:13 using sqlite database: /root/.evcc/evcc.db
leo4-evcc-1  | [mqtt  ] INFO 2025/09/11 15:33:13 connecting evcc-1053654526 at tcp://192.168.0.202:1883
leo4-evcc-1  | [main  ] INFO 2025/09/11 15:33:13 UI listening at :7070
leo4-evcc-1  | [warp  ] INFO 2025/09/11 15:33:13 connecting evcc-1722100078 at tcp://192.168.0.202:1883
leo4-evcc-1  | [main  ] FATAL 2025/09/11 15:33:22 loadpoint [db:12] circuit: not found: lpc
leo4-evcc-1  | [main  ] FATAL 2025/09/11 15:33:22 will attempt restart in: 15m0s

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.207.6 (bf6721d3)

universal-dilettant avatar Sep 11 '25 13:09 universal-dilettant

How do you gather the similarities? This issue describes a fatal!

PS: das macht so richtig Spaß, bei evcc mitzuarbeiten - nicht!

universal-dilettant avatar Sep 12 '25 11:09 universal-dilettant

PS: das macht so richtig Spaß, bei evcc mitzuarbeiten - nicht!

Mir bei solchen Kommentaren auch nicht. Insofern bin ich hier raus.

andig avatar Sep 12 '25 14:09 andig

Passt. Ich auch. Good riddance.

PS: gehst du mit allen so um?

universal-dilettant avatar Sep 12 '25 14:09 universal-dilettant