evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.24k stars 584 forks source link

Victron Wallbox: evcc fatal error during system start #10180

Closed jubudu closed 11 months ago

jubudu commented 11 months ago

Describe the bug

EVCC does not start due to missing template victron. Running on Raspberry 4 with Home Assistant OS

Steps to reproduce

  1. Defined Victron Wallbox in evcs.yaml
  2. Restart evcc

...

Configuration details

- name: Victron-Wallbox
    type: template
    template: victron
    # Modbus TCP
    modbus: tcpip
    id: 100
    host: 192.168.10.145 # Hostname
    port: 502 # Port

Log details

Using config file: /config/evcc.yaml
starting evcc: 'EVCC_DATABASE_DSN=/data/evcc.db evcc --config /config/evcc.yaml'
[main  ] INFO 2023/10/04 02:24:21 evcc 0.120.3
[main  ] INFO 2023/10/04 02:24:21 using config file: /config/evcc.yaml
[main  ] INFO 2023/10/04 02:24:21 starting ui and api at :7070
[mqtt  ] INFO 2023/10/04 02:24:22 connecting evcc-737072374 at tcp://localhost:1883
[main  ] FATAL 2023/10/04 02:24:25 cannot create charger 'Victron-Wallbox': cannot create charger 'template': template not found: victron
[main  ] FATAL 2023/10/04 02:24:25 will attempt restart in: 5m0s

What type of operating system are you running?

Linux

Version

0.120.3

mdkeil commented 11 months ago

wrong definition, indentations must be correct

chargers:    
  - name: Victron-Wallbox
    type: template
    template: victron
    # Modbus TCP
    modbus: tcpip
    id: 100
    host: 192.168.10.145 # Hostname
    port: 502 # Port

Wallbox muss sich im Modus "Manual" befinden und Modbus ID 100 konfiguriert sein.

https://docs.evcc.io/docs/devices/chargers#victron-ev-charging-station

andig commented 11 months ago

Victron ist bisher nur im nightly: https://github.com/evcc-io/evcc/compare/0.120.3...master

jubudu commented 11 months ago

wrong definition, indentations must be correct

chargers:    
  - name: Victron-Wallbox
    type: template
    template: victron
    # Modbus TCP
    modbus: tcpip
    id: 100
    host: 192.168.10.145 # Hostname
    port: 502 # Port

Wallbox muss sich im Modus "Manual" befinden und Modbus ID 100 konfiguriert sein.

https://docs.evcc.io/docs/devices/chargers#victron-ev-charging-station

Thank you all, I did not paste the whole chargers-definition, sorry. But I have 3 chargers defined, „chargers:“
is on top the first one and the 2 other chargers work. The indentation is correct like for the other ones. But the victron is not yet in the 0.120.3 release.