You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add negative-price strategies + switch config sliders to input boxes
Two new orthogonal EMS config flags (off by default, compose with all
grid modes):
- charge_to_full_on_negative_price: schedule every p<0 slot even when
SOC validation would otherwise prune it (user accepts forced PV
curtailment in exchange for guaranteed revenue at p<0).
- discharge_to_make_room_for_negative_price: pre-emptively discharge
in earlier positive-price slots so the battery has headroom to
absorb PV during p<0 windows (avoiding forced grid export at
penalty rates). Works in from_grid mode too, which normally
never discharges.
Both flags compose: pre-discharge clears space, then charge_to_full
fills the battery from grid at p<0. Exposed as off/on select
entities in the HA UI.
Also: HA_FelicityInternalNumber defaults to NumberMode.BOX so users
can type precise values for fractional / fine-grained settings
(efficiency_factor, arbitrage_price_delta, reserve_target_pct, etc.).
Sliders were hard to read and set precisely. Pass mode=SLIDER
explicitly to opt back in.
10 new ems tests cover the strategies in from_grid, both, and
composed forms. All 158 ems tests pass.
0 commit comments