Falownik Huawei SUN2000: Konfiguracja Smart Dongle i integracja KNX Modbus TCP
Falowniki łańcuchowe Huawei SUN2000 należą do najczęściej instalowanych domowych i komercyjnych falowników solarnych w Niemczech, Holandii i Beneluksie. Podłączenie ich do KNX wymaga znajomości Smart Dongle SDongleA-05, niestandardowego portu Modbus TCP 6607 oraz poprawnych adresów rejestrów dla danych mocy, baterii i sieci – które różnią się od standardu SunSpec.
Przegląd sprzętu SUN2000 i wymagania dotyczące Smart Dongle
Seria Huawei SUN2000 obejmuje jednofazowe (3-6 kW) i trójfazowe (5-40 kW) falowniki stringowe. Modele SUN2000-5/6/8/10KTL-M1 i M2 są najpopularniejszymi wariantami mieszkaniowymi w Europie. Do integracji KNX Modbus TCP wymagany jest Smart Dongle SDongleA-05 – bez niego na porcie COM falownika dostępny jest tylko RS485 Modbus RTU, co wymaga osobnego konwertera RS485 na Ethernet.
The SDongleA-05 plugs into the USB-A socket on the right side panel of the SUN2000 inverter. It acts as a WiFi or Ethernet bridge and also exposes Modbus TCP on the local network. The Smart Dongle is sold separately and must be ordered from the installer's Huawei distributor — verify compatibility with the specific SUN2000 firmware version before ordering.
Konfiguracja Smart Dongle – kroki w aplikacji FusionSolar
Prerequisites: - SDongleA-05 inserted in SUN2000 USB-A socket - FusionSolar app installed (installer account required) - Installer account: register at solar.huawei.com/installer Step 1: connect FusionSolar app to Smart Dongle FusionSolar → Device → Add Device → Scan QR code (on Dongle) Or: connect phone WiFi to Dongle AP (SSID: Dongle_xxxxx) Enter Dongle web UI: 192.168.8.1 — set up WiFi or Ethernet Step 2: configure inverter network FusionSolar → Device → SUN2000 settings → Communication Set IP (DHCP or static), subnet, gateway Verify ping to inverter IP from KNX gateway network Step 3: enable Modbus TCP FusionSolar → Device → SUN2000 → Settings → Communication Scroll to Modbus TCP: toggle ON Port: 6607 (fixed, cannot be changed) Access level: installer (required to enable Modbus TCP) Step 4: verify Open Modbus Poll: IP = Smart Dongle IP, Port = 6607, Unit ID = 0 Read registers 32000-32070: manufacturer string in 32000-32014
Mapa rejestrów Modbus SUN2000
Huawei używa własnej mapy rejestrów Modbus, która różni się od standardu SunSpec. Wszystkie rejestry są rejestrami holding (kod funkcji 3) w formacie big-endian. Adresy rejestrów w dokumentacji Huawei są 1-bazowe – odejmij 1 dla adresowania 0-bazowego w Modbus Poll lub bramkach.
Mapa rejestrów holding SUN2000 (FC3, 1-bazowe, big-endian)
Power and production:
32064-32065: Active Power (int32, 1W resolution)
Positive = generating, 0 during night
32078-32079: Daily Energy Yield (uint32, 0.01 kWh)
Reset at midnight
32091: PV1 Input Voltage (uint16, 0.1V)
32092: PV1 Input Current (uint16, 0.01A)
32093: PV2 Input Voltage (uint16, 0.1V)
32094: PV2 Input Current (uint16, 0.01A)
Battery (LUNA2000 connected):
32087: Battery SOC (uint16, 0.1%) — multiply by 0.1 for %
32114-32115: Battery Charge/Discharge Power (int32, 1W)
Positive = charging, Negative = discharging
32103: Battery Voltage (uint16, 0.1V)
32105: Battery Current (int16, 0.1A)
Grid:
32261: Grid Power (int32, 1W)
Positive = exporting, Negative = importing| Rejestr | Parametr | KNX DPT | Konwersja |
|---|---|---|---|
| 32064-32065 | Moc czynna (W) | DPT 9.001 (kW) | Podziel przez 1000 |
| 32087 | SOC akumulatora (%) | DPT 5.001 (%) | Podziel przez 10 |
| 32114-32115 | Moc baterii (W) | DPT 9.001 ze znakiem | Podziel przez 1000, ze znakiem |
| 32261 | Moc sieci (W) | DPT 9.001 ze znakiem | Podziel przez 1000, ze znakiem |
| 32078-32079 | Dzienny uzysk (kWh) | DPT 13.013 (Wh) | Pomnóż przez 10 (0,01 kWh na Wh) |
Konfiguracja bramy KNX Modbus dla SUN2000
Zarówno LOYTEC LROC-100, jak i Weinzierl 5010 nadają się do integracji z Huawei SUN2000. LOYTEC LROC-100 jest preferowany w instalacjach wieloprotokołowych, gdzie obecne są również urządzenia BACnet lub M-Bus. Weinzierl 5010 jest prostszy i szeroko stosowany w domowych projektach KNX.
Konfiguracja Weinzierl 5010 dla Huawei SUN2000
Device settings in ETS plug-in: IP address: <Smart Dongle IP> Port: 6607 (CRITICAL — not 502) Unit ID: 0 (CRITICAL — not 1) Protocol: Modbus TCP Poll task 1 — Active Power: Start register: 32063 (0-based = 32064 - 1) Count: 2 (32-bit int32) Data type: 32-bit signed integer, big-endian Value transform: divide by 1000 (W to kW) KNX GA: 6/0/1, DPT 9.001 (kW) Poll interval: 10 seconds Poll task 2 — Battery SOC: Start register: 32086 (0-based) Count: 1 (uint16) Data type: 16-bit unsigned integer Value transform: divide by 10 (0.1% to %) KNX GA: 6/0/3, DPT 5.001 (0-100%) Poll interval: 60 seconds Poll task 3 — Grid Power: Start register: 32260 (0-based) Count: 2 (int32) Data type: 32-bit signed integer, big-endian Value transform: divide by 1000 (W to kW) KNX GA: 6/0/5, DPT 9.001 signed Poll interval: 10 seconds
SG Ready i wymuszone ładowanie przez zapis Modbus
System baterii SUN2000 LUNA2000 obsługuje sterowanie trybem pracy przez zapis Modbus, co jest równoważne wejściu SG Ready w pompach ciepła. Zapis rejestru 47500 wymusza na baterii określone tryby pracy. W połączeniu z logiką KNX odczytującą sygnał dynamicznej taryfy energii (API Tibber przez Node-RED lub cena spot ENTSO-E przez Home Assistant), bateria może automatycznie ładować się w tanich nocnych okresach taryfowych.
Rejestr trybu pracy baterii SUN2000 – zapis Modbus
Register 47500: Storage Control Mode (holding, FC6 write)
Write 0: self-use mode (default — prioritise self-consumption)
Write 5: forced charge mode (charge at max rate)
Write 6: forced discharge mode (discharge to grid/loads)
Write 2: time-of-use mode (uses TOU schedule)
Register 47075: Forced Charge/Discharge Power (uint16, W)
Write desired charge power in watts
Example: write 3000 = charge at 3 kW
KNX to Modbus write via Weinzierl 5010:
KNX GA '6/1/0' DPT 1.001 = 1 (cheap tariff signal)
→ Weinzierl 5010 write command: reg 47500 = 5 (forced charge)
→ Weinzierl 5010 write command: reg 47075 = 3000 (3 kW)
KNX GA '6/1/0' = 0 (normal tariff):
→ Write reg 47500 = 0 (return to self-use mode)
Tibber integration:
Home Assistant Tibber integration → cheap_tariff entity
HA automation: when cheap_tariff = true
→ write 1 to KNX GA '6/1/0' via HA KNX integration
→ Weinzierl 5010 triggers Modbus write to SUN2000Rozwiązywanie problemów z połączeniem na porcie 6607
Błędy połączenia na porcie 6607 są najczęstszym problemem integracji KNX z SUN2000. Rodzaje błędów różnią się od standardowych błędów Modbus TCP, ponieważ niestandardowy port jest często blokowany lub funkcja Modbus TCP nie jest włączona w aplikacji FusionSolar.
Lista kontrolna rozwiązywania problemów — port 6607 odrzucony lub przekroczenie czasu
Symptom: Modbus Poll → Connection refused on port 6607 Check 1 — Smart Dongle IP reachability: ping <Smart Dongle IP> from laptop on same network If ping fails: check DHCP lease or set static IP in FusionSolar Check 2 — Modbus TCP enabled in FusionSolar: FusionSolar app → Device → SUN2000 → Settings → Communication Confirm Modbus TCP toggle shows ON This is the most common root cause — Modbus TCP is OFF by default Check 3 — Port 6607 not blocked by router: Test from laptop: nc -zv <dongle IP> 6607 If blocked: add port forwarding rule in router for port 6607 (only needed if KNX gateway is on different network segment) Check 4 — Unit ID must be 0: Symptom: connection succeeds, all registers return 0x80 exception Root cause: unit ID set to 1 instead of 0 Fix: change unit ID to 0 in Modbus Poll and gateway config Check 5 — Wrong IP (WiFi vs Ethernet): Smart Dongle has two IP addresses if both WiFi and Ethernet active Use the IP on the same network as the KNX Modbus gateway
Huawei SmartLogger 3000 dla obiektów komercyjnych: W instalacjach komercyjnych z wieloma falownikami SUN2000, SmartLogger 3000 agreguje dane ze wszystkich falowników i udostępnia Modbus TCP na standardowym porcie 502 z offsetami rejestrów falowników. To znacznie upraszcza konfigurację bramki KNX dla systemów z wieloma falownikami — pojedynczy wpis urządzenia bramki obsługuje wszystkie falowniki za pośrednictwem SmartLoggera.
Potrzebujesz panelu słonecznego z integracją Huawei SUN2000 KNX wykonaną na zamówienie?
Konfigurujemy bramki Weinzierl 5010 i LOYTEC z poprawnymi ustawieniami portu 6607 SUN2000, mapowaniem DPT KNX dla mocy i SOC baterii, logiką wymuszonego ładowania SG Ready oraz pełną dokumentacją uruchomieniową dostarczaną przetestowaną na miejscu.
Poproś o wycenę →