diff --git a/goodwe_controller/tools/ux54_scenarios.py b/goodwe_controller/tools/ux54_scenarios.py index d30e7e6..bed5a27 100644 --- a/goodwe_controller/tools/ux54_scenarios.py +++ b/goodwe_controller/tools/ux54_scenarios.py @@ -247,6 +247,12 @@ def make(name, now, *, soc=(55.0, 40.0), modes=("solar_first", tomorrow = False if name == "sunny": sun_today, sun_tomorrow = 40.0, 40.0 + if name not in ("nofc", "off", "stale") and \ + opts.get("battery_modes_enabled"): + # TARIFF-24: with a forecast the gap needed is the cycle cost, not + # 1.5 x it. These scenarios were written for the old gate (0.15 at + # the shipped 0.10), so they keep it: the cost is 0.15. + opts["cycle_cost_threshold_eur"] = 0.15 c = Controller(opts, Hass(), Store(), Pub(), stop=asyncio.Event()) c.auto = True for i, inv in enumerate(c.inverters):