diff --git a/haos-addon/src/main.py b/haos-addon/src/main.py index 6f33dbf..c3225e1 100644 --- a/haos-addon/src/main.py +++ b/haos-addon/src/main.py @@ -155,9 +155,10 @@ def _get_pv_surplus() -> float: if not d.get("modbus_ok") or not d.get("values"): continue v = d["values"] - # Goodwe ET: active_power < 0 bedeutet Einspeisung ins Netz + # Goodwe ET: active_power > 0 = Einspeisung, < 0 = Netzbezug + # house_consumption = ppv + pbattery1 - active_power (Bibliotheks-Formel) 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"])