Fix: Goodwe ET active_power Vorzeichen für PV-Überschuss korrigiert
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 <noreply@anthropic.com>
This commit is contained in:
@@ -155,9 +155,9 @@ def _get_pv_surplus() -> float:
|
|||||||
if not d.get("modbus_ok") or not d.get("values"):
|
if not d.get("modbus_ok") or not d.get("values"):
|
||||||
continue
|
continue
|
||||||
v = d["values"]
|
v = d["values"]
|
||||||
# Goodwe: active_power < 0 bedeutet Einspeisung
|
# Goodwe ET: active_power > 0 bedeutet Einspeisung ins Netz
|
||||||
if "active_power" in v:
|
if "active_power" in v:
|
||||||
surplus += max(0.0, -v["active_power"])
|
surplus += max(0.0, v["active_power"])
|
||||||
# Growatt
|
# Growatt
|
||||||
if "power_to_grid" in v:
|
if "power_to_grid" in v:
|
||||||
surplus += max(0.0, v["power_to_grid"])
|
surplus += max(0.0, v["power_to_grid"])
|
||||||
|
|||||||
Reference in New Issue
Block a user