oprava zbytecneho curtailu A
This commit is contained in:
@@ -137,7 +137,15 @@ def _build_setpoints(
|
||||
buy_raw = pi.get("effective_buy_price")
|
||||
buy_f: float | None = float(buy_raw) if buy_raw is not None else None
|
||||
pv_b = int(pi.get("pv_b_forecast_solver_w") or 0)
|
||||
# Slabý úsvit: neposílat reg 340 — forecast nepřesný, Deye řídí sám (108/109/142).
|
||||
_low_pv_no_reg340_w = 1500
|
||||
if (
|
||||
forecast < _low_pv_no_reg340_w
|
||||
and curtail <= 0
|
||||
and pv_b > 0
|
||||
):
|
||||
pv_a_allowed = None
|
||||
elif (
|
||||
buy_f is not None
|
||||
and sell_f is not None
|
||||
and float(buy_f) < 0.0
|
||||
|
||||
Reference in New Issue
Block a user