Huawei Solar Integration verliert Verbindung bei gleichzeitiger Nutzung mit EVCC

Hallo zusammen,

ich habe ein Problem mit der Huawei Solar HACS-Integration, bei dem ich mir Unterstützung erhoffe.

Setup:

  • Wechselrichter: Huawei SUN2000-6KTL-M1
  • Batteriespeicher: LUNA2000
  • Dongle: SDongleA-05 (per LAN angebunden, Modbus uneingeschränkt aktiviert)
  • Home Assistant mit Huawei Solar-Integration (HACS) über Netzwerk (Modbus TCP)
  • EVCC läuft als Add-on in Home Assistant
  • Wallbox: Elli Charger (über evcc angebunden)

Problem:
Sobald EVCC aktiv ist, verliert die Huawei Solar-Integration die Verbindung.
Ich habe bereits versucht, den Modbus Proxy einzusetzen – aber damit stellt die Integration erst gar keine Verbindung her.

Meine Fragen:

  • Hat jemand eine funktionierende EVCC-Konfiguration im Zusammenspiel mit der Huawei-Integration?
  • Wie sieht eine passende evcc.yaml für dieses Setup aus?
  • Gibt es bestimmte Einstellungen, die bei Dongle, Modbus-Proxy oder EVCC beachtet werden müssen?

Ich bin mir nicht sicher, ob meine evcc.yaml korrekt ist.

Ich freue mich über jede funktionierende Beispielkonfiguration oder Erfahrungen mit einem ähnlichen Setup.

Danke im Voraus & viele Grüße

1 „Gefällt mir“

Moin, zeige doch mal deine evcc.yaml, vielleicht kann man so direkt etwas sagen.

1 „Gefällt mir“

Was schreibt den EVCC in den Log rein und wie ist deine Huawei Solar-Integration angebunden?

1 „Gefällt mir“

Hi, hier mein evcc.yaml

# open evcc at http://evcc.local:7070
# 
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: debug
levels:
  cache: error

# unique installation id
plant: xyz
interval: 20s # control cycle interval
meters:
- type: template
  template: huawei-dongle-powersensor  
  id: 1  
  host: 192.168.20.100
  port: 502  
  usage: grid  
  modbus: tcpip  
  timeout: 15s  
  name: netz-huawei
- type: template
  template: huawei-dongle-powersensor 
  id: 1  
  host: 192.168.20.100
  port: 502  
  usage: pv  
  modbus: tcpip  
  timeout: 15s  
  name: pv2-huawei
- type: template
  template: huawei-dongle-powersensor 
  id: 1  
  host: 192.168.20.100
  port: 502  
  usage: battery  
  modbus: tcpip  
  timeout: 15s  
  name: battery-huawei

chargers:
- type: template
  template: ellipro 
  ski: 
  ip: 192.168.1.40  
  name: wallbox-elli

vehicles:
- type: template
  template: hyundai 
  title: Kona  
  user: Name@mail.com  
  password: geheim  
  vin: d  
  capacity: 64  
  language: de  
  name: ev1

loadpoints:
- title: Garage
  charger: wallbox-elli
  vehicle: ev1
  mode: "minpv" # default charge mode(off, now, minpv, pv) to apply when vehicle is disconnected; use "off" to disable by default if charger is publicly available 

  # remaining settings are experts-only and best left at default values
  priority: 0 # relative priority for concurrent charging in PV mode with multiple loadpoints (higher values have higher priority)
  soc:
      # polling defines usage of the vehicle APIs
      # Modifying the default settings it NOT recommended. It MAY deplete your vehicle's battery
      # or lead to vehicle manufacturer banning you from API use. USE AT YOUR OWN RISK.
    poll:
        # poll mode defines under which condition the vehicle API is called:
        #   charging: update vehicle ONLY when charging (this is the recommended default)
        #   connected: update vehicle when connected (not only charging), interval defines how often
        #   always: always update vehicle regardless of connection state, interval defines how often (only supported for single vehicle)
      mode: charging
        # poll interval defines how often the vehicle API may be polled if NOT charging
      interval: 60m
    estimate: true # set false to disable interpolating between api updates (not recommended)
  enable: # pv mode enable behavior
    delay: 1m # threshold must be exceeded for this long
    threshold: 0 # grid power threshold (in Watts, negative=export). If zero, export must exceed minimum charge power to enable
  disable: # pv mode disable behavior
    delay: 3m # threshold must be exceeded for this long
    threshold: 0 # maximum import power (W)
  guardDuration: 5m # switch charger contactor not more often than this (default 5m)

site:
  title: Zuhause
  meters:
    grid: netz-huawei
    pv:
    - pv2-huawei
    battery:
    - battery-huawei
  residualPower: 100
eebus:
  certificate:
      private: |
          -----BEGIN EC PRIVATE KEY-----
          #######
          -----END EC PRIVATE KEY-----
      public: |
          -----BEGIN CERTIFICATE-----
          ###########
          -----END CERTIFICATE-----

EVCC läuft bei mir eigentlich stabil – solange ich nicht daran herumbastle :sweat_smile:
Die Huawei Solar-Integration hatte ich über Modbus TCP direkt ins Netzwerk eingebunden.

Da Huawei ja leider nur eine Modbus-Verbindung gleichzeitig erlaubt, wollte ich den modbus-proxy nutzen.
Das hat mich allerdings ein paar graue Haare gekostet – bis gestern wollte es einfach nicht klappen.

Dann hab ich die Huawei-Integration nochmal komplett gelöscht, den Proxy sauber eingerichtet und anschließend die Integration neu installiert und konfiguriert
und siehe da: es läuft plötzlich. Magisch. :sparkles:

Aber: Es ist jetzt dunkel – mal schauen, wie’s morgen bei Sonnenschein aussieht :sunny::wink:

Leider funktioniert es nicht wie gewünscht.
es kommt immer wieder zu Verbindungs Abbrüchen.
modbusproxy -Log:

2025-07-27 08:11:44,089     INFO modbus-proxy: Starting...
2025-07-27 08:11:44,095     INFO modbus-proxy.ModBus(192.168.20.100:502): Ready to accept requests on 0:502
2025-07-27 08:11:44,151     INFO modbus-proxy.Client(192.168.1.11:43280): new client connection
2025-07-27 08:11:45,151     INFO modbus-proxy.ModBus(192.168.20.100:502): connecting to modbus...
2025-07-27 08:11:45,153     INFO modbus-proxy.ModBus(192.168.20.100:502): connected!
2025-07-27 08:11:45,154     INFO modbus-proxy.ModBus(192.168.20.100:502): delay after connect: 5.0
2025-07-27 08:11:45,515     INFO modbus-proxy.Client(192.168.1.11:43282): new client connection
2025-07-27 08:21:52,913     INFO modbus-proxy.Client(192.168.1.11:58002): new client connection
2025-07-27 08:21:52,916     INFO modbus-proxy.Client(192.168.1.11:58014): new client connection
2025-07-27 08:21:52,916     INFO modbus-proxy.Client(192.168.1.11:58030): new client connection
2025-07-27 08:21:52,916     INFO modbus-proxy.Client(192.168.1.11:58046): new client connection
2025-07-27 08:21:52,916     INFO modbus-proxy.Client(192.168.1.11:58048): new client connection
2025-07-27 08:21:52,916     INFO modbus-proxy.Client(192.168.1.11:58062): new client connection
2025-07-27 08:21:52,917     INFO modbus-proxy.Client(192.168.1.11:58066): new client connection
2025-07-27 08:21:52,917     INFO modbus-proxy.Client(192.168.1.11:58068): new client connection
2025-07-27 08:25:08,805    ERROR modbus-proxy.ModBus(192.168.20.100:502): write_read error [1/2]: IncompleteReadError('0 bytes read on a total of 6 expected bytes')
2025-07-27 08:25:08,805     INFO modbus-proxy.ModBus(192.168.20.100:502): closing connection...
2025-07-27 08:25:08,805     INFO modbus-proxy.ModBus(192.168.20.100:502): connection closed
2025-07-27 08:25:08,805     INFO modbus-proxy.ModBus(192.168.20.100:502): connecting to modbus...
2025-07-27 08:25:08,808     INFO modbus-proxy.ModBus(192.168.20.100:502): connected!
2025-07-27 08:25:08,808     INFO modbus-proxy.ModBus(192.168.20.100:502): delay after connect: 5.0
2025-07-27 08:25:13,818     INFO modbus-proxy.Client(192.168.1.11:43280): client closed connection
2025-07-27 08:25:13,818     INFO modbus-proxy.Client(192.168.1.11:43280): closing connection...
2025-07-27 08:25:13,819     INFO modbus-proxy.Client(192.168.1.11:43280): connection closed
2025-07-27 08:25:13,831     INFO modbus-proxy.Client(192.168.1.11:45110): new client connection
2025-07-27 08:25:14,834     INFO modbus-proxy.Client(192.168.1.11:45110): client closed connection
2025-07-27 08:25:14,834     INFO modbus-proxy.Client(192.168.1.11:45110): closing connection...
2025-07-27 08:25:14,835     INFO modbus-proxy.Client(192.168.1.11:45110): connection closed
2025-07-27 08:25:14,845     INFO modbus-proxy.Client(192.168.1.11:45116): new client connection
2025-07-27 08:25:15,846     INFO modbus-proxy.Client(192.168.1.11:45116): client closed connection

Huawei Solar
‚‘’

  • Timeout fetching HV#########_inverter_data_update_coordinator data
  • Timeout fetching HV#########_battery_data_update_coordinator data
  • Timeout fetching HV#########_power_meter_data_update_coordinator data
  • Timeout fetching HV##########_config_data_update_coordinator data
    ‚‘’

EVCC
‚‘’
[site ] ERROR 2025/07/27 08:25:23

2025-07-27 08:25:12.253844598 +0200 CEST m=+50593.179396997 !! 2580ms read failed: modbus: response transaction id ‚105‘ does not match request ‚18429‘

2025-07-27 08:25:14.860380326 +0200 CEST m=+50595.785932716 !! 3012ms read failed: modbus: response transaction id ‚18431‘ does not match request ‚18432‘

2025-07-27 08:25:17.899938023 +0200 CEST m=+50598.825490418 !! 3013ms read failed: modbus: exception ‚6‘ (server device busy), function ‚3‘

2025-07-27 08:25:20.943202547 +0200 CEST m=+50601.868754940 !! 3011ms read failed: modbus: response transaction id ‚18437‘ does not match request ‚18438‘

[site ] ERROR 2025/07/27 08:25:23 pv 1 power: read failed: modbus: response transaction id ‚18437‘ does not match request ‚18438‘

[site ] ERROR 2025/07/27 08:25:24

2025-07-27 08:25:12.253850567 +0200 CEST m=+50593.179402955 !! 3592ms read failed: modbus: response transaction id ‚18429‘ does not match request ‚18430‘

2025-07-27 08:25:15.875257358 +0200 CEST m=+50596.800809752 !! 3008ms read failed: modbus: response transaction id ‚18432‘ does not match request ‚18433‘

2025-07-27 08:25:18.901940298 +0200 CEST m=+50599.827492693 !! 3025ms read failed: modbus: exception ‚6‘ (server device busy), function ‚3‘

2025-07-27 08:25:21.968276474 +0200 CEST m=+50602.893828868 !! 2999ms read failed: modbus: response transaction id ‚18438‘ does not match request ‚18439‘

[site ] ERROR 2025/07/27 08:25:24 battery 1 power: read failed: modbus: response transaction id ‚18438‘ does not match request ‚18439‘

[site ] ERROR 2025/07/27 08:25:25 battery 1 soc: read failed: modbus: response transaction id ‚18439‘ does not match request ‚18440‘

[site ] ERROR 2025/07/27 08:25:25 grid power: read failed: modbus: response transaction id ‚109‘ does not match request ‚18437‘

[site ] DEBUG 2025/07/27 08:25:42 ----

[lp-1 ] DEBUG 2025/07/27 08:25:42 charge power: 0W

[lp-1 ] DEBUG 2025/07/27 08:25:42 charge currents: [0 0 0]A

[site ] ERROR 2025/07/27 08:25:53
‚‘’