📰 IT Security Nachrichten[UPDATE] [hoch] Froxlor: Mehrere Schwachstellen(14.09.2026 um 12:14 Uhr)
🕵️ SicherheitslückenCritical MikroTik Vulnerability - Patch Now, (Sun, Sep 6th)(06.09.2026 um 23:43 Uhr)
🕵️ SicherheitslückenScans for Proxmox Servers, (Wed, Sep 9th)(09.09.2026 um 19:46 Uhr)
🕵️ SicherheitslückenKritische Proxmox-Lücke ermöglicht Login ohne Passwort(08.09.2026 um 11:00 Uhr)
📰 IT Security Nachrichten[UPDATE] [hoch] Froxlor: Mehrere Schwachstellen(14.09.2026 um 12:14 Uhr)
🕵️ SicherheitslückenCritical MikroTik Vulnerability - Patch Now, (Sun, Sep 6th)(06.09.2026 um 23:43 Uhr)
🕵️ SicherheitslückenScans for Proxmox Servers, (Wed, Sep 9th)(09.09.2026 um 19:46 Uhr)
🕵️ SicherheitslückenKritische Proxmox-Lücke ermöglicht Login ohne Passwort(08.09.2026 um 11:00 Uhr)

🔧 Programmierung 🕛 vor 3 Monaten 6 Min Lesezeit
0

Caching a Huawei SUN2000 over Modbus for Home Assistant

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

My Huawei SDongle accepts exactly one Modbus connection at a time — but Home Assistant, my AC·THOR and evcc all want to read the inverter at once. Polling it from three clients just gave me dropped connections and gaps in my data. So I wrote a small asyncio cache server (~300 lines) that does one quiet poll of the SUN2000 and serves every client from that cached snapshot. Here's how it works, and the full code.



The fault that finally pushed me into writing my own Modbus server wasn't dramatic. It was a hole. Every evening, right around the time the boiler heater kicked in, my energy dashboard in Home Assistant would flatline for a few minutes and then snap back. Not a crash — just a gap, the kind you stop noticing until you're squinting at a graph trying to work out where 0.4 kWh went.






One connection, and everyone wants it



I run a Huawei SUN2000-8KTL-M1 with a LUNA2000 battery. The inverter talks to the outside world through a little SDongle, and the SDongle speaks Modbus TCP on port 502. The catch — and it's one a lot of Huawei owners walk straight into — is that the SDongle accepts exactly one Modbus TCP connection at a time.



And I had four things that wanted it: Home Assistant's Huawei Solar integration for the dashboard, the AC·THOR 9s that dumps PV surplus into the hot-water boiler and needs a live meter reading to modulate, evcc for the wallbox, and the FusionSolar cloud. FusionSolar is the lucky one — it rides its own channel up to Huawei's servers and never touches Modbus. The other three were elbowing each other off the single slot. Whoever connected last won; the rest got connection resets, and the dashboard got that flatline.






First fix: a transparent proxy



The obvious answer is a proxy: one process holds the single connection to the SDongle, every client talks to the proxy instead. I started with the — dropping a 300-line Python service next to it costs almost nothing, and it's been the single most stable part of my solar setup ever since. Next part: turning those cached registers into the autarky and self-consumption numbers that actually tell you whether the battery was worth buying.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
[UPDATE] [hoch] Froxlor: Mehrere Schwachstellen
1 Quelle
Critical MikroTik Vulnerability - Patch Now, (Sun, Sep 6th)
1 Quelle
Scans for Proxmox Servers, (Wed, Sep 9th)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Caching a Huawei SUN2000 over Modbus for Home Assistant

Thematisch verwandte Begriffe: Caching, Huawei, SUN2000, over · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...