oprava zbytecneho curtailu A
Some checks failed
CI and deploy / migration-check (push) Failing after 10s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-05-30 23:23:17 +02:00
parent 830aa7a4cc
commit a03b45d4a9
7 changed files with 177 additions and 23 deletions

View File

@@ -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