From 3519a0237020fc412535094546375bf473c3f937 Mon Sep 17 00:00:00 2001 From: retr0 <42kdesigners@gmail.com> Date: Tue, 28 Apr 2026 12:53:12 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Goodwe=20ET=20active=5Fpower=20Vorzeiche?= =?UTF-8?q?n=20f=C3=BCr=20PV-=C3=9Cberschuss=20korrigiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Goodwe ET liefert active_power > 0 bei Einspeisung (nicht negativ). Falsche Negierung führte zu PV-Überschuss = 0 → EMS lud nie. Co-Authored-By: Claude Sonnet 4.6 --- haos-addon/src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haos-addon/src/main.py b/haos-addon/src/main.py index 988aee5..b0e0fcd 100644 --- a/haos-addon/src/main.py +++ b/haos-addon/src/main.py @@ -155,9 +155,9 @@ def _get_pv_surplus() -> float: if not d.get("modbus_ok") or not d.get("values"): continue v = d["values"] - # Goodwe: active_power < 0 bedeutet Einspeisung + # Goodwe ET: active_power > 0 bedeutet Einspeisung ins Netz if "active_power" in v: - surplus += max(0.0, -v["active_power"]) + surplus += max(0.0, v["active_power"]) # Growatt if "power_to_grid" in v: surplus += max(0.0, v["power_to_grid"])