evcc
evcc copied to clipboard
hassio-addon: panic: runtime error during startup
OS Version: Home Assistant OS 7.4 Home Assistant Core: 2022.3.1 evcc: 0.85
I get following error message when I try to start the evcc-addon :
Using config file: /config/evcc.yaml
starting evcc: 'evcc --config /config/evcc.yaml'
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0xe79500]
goroutine 1 [running]:
github.com/evcc-io/evcc/core.NewSiteFromConfig(0x40004c9a70, {0x1926410, 0x40006806f0}, 0x0, {0x400000e288, 0x1, 0x1}, {{0x5e}, {0x0, 0x0}, ...})
/build/core/site.go:79 +0x110
github.com/evcc-io/evcc/cmd.configureSite(0x0, 0x40006806f0, {0x400000e288, 0x1, 0x1}, {{0x5e}, {0x0, 0x0}, {0x0, 0x0}})
/build/cmd/setup.go:205 +0x88
github.com/evcc-io/evcc/cmd.configureSiteAndLoadpoints({{0x130430b, 0xc}, {0x12f8289, 0x5}, {0x0, 0x0}, 0x0, 0x0, 0x0, 0x2540be400, ...})
/build/cmd/setup.go:197 +0x1b8
github.com/evcc-io/evcc/cmd.run(0x25d5740, {0x40005487e0, 0x0, 0x2})
/build/cmd/root.go:169 +0x588
github.com/spf13/cobra.(*Command).execute(0x25d5740, {0x400010e160, 0x2, 0x2})
/go/pkg/mod/github.com/spf13/[email protected]/command.go:860 +0x650
github.com/spf13/cobra.(*Command).ExecuteC(0x25d5740)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x424
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/evcc-io/evcc/cmd.Execute()
/build/cmd/root.go:139 +0x30
main.main()
/build/main.go:33 +0x44
I'm using following evcc.yaml, as I do not have a connection to a smart meter yet I tried to use a dummy on Volkszaehler.org:
evcc.yaml:
chargers:
- name: keba
type: keba
uri: 10.0.0.43
vehicles:
- name: eGolf
type: VW
title: eGolf
capacity: 30 # kWh
user:<myuser># user
password: <mypassword> # password
vin: <myvin>
onIdentify: # set defaults when vehicle is identified
minSoC: 20 # charge to at least 20% independent of charge mode
targetSoC: 90 # limit charge to 90%
meters:
- name: dummy
type: custom
power: # power reading
source: http # use http plugin
uri: https://demo.volkszaehler.org/middleware.php/entity/b515cd10-aaec-11e9-a6c2-9f1c07033c91.json?from=now
jq: .data.tuples[0][1] # parse response json
loadpoints:
- title: Garage # display name for UI
charger: keba # Wallbox Referenz
vehicles:
- eGolf # Fahreug Referenz
mode: now # charge mode (off, now, minpv, pv)
Fixed in https://github.com/evcc-io/evcc/commit/e09fd3cf51d7a3db153ecc58dde27d3c031d0272