Fix SoC balance on battery export and improve evening push (v39).
SoC continuity now deducts only bd (ge_bat was double-counted via energy balance), which stopped the plan from draining ~2× faster than BMS during evening BATTERY_SELL. Also ships dynamic evening push budget + rolling hysteresis (v38), drops unused fn_soc_tracking_bundle, and adds tests/docs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
10
db/routines/R__091_fn_soc_tracking_bundle.sql
Normal file
10
db/routines/R__091_fn_soc_tracking_bundle.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- Odstraněno v39: kalibrace discharge_calibration_factor nahrazena opravou SoC bilance (jen bd, ne bd+ge_bat).
|
||||
|
||||
drop function if exists ems.fn_soc_tracking_bundle(
|
||||
int,
|
||||
timestamptz,
|
||||
numeric,
|
||||
numeric,
|
||||
numeric,
|
||||
numeric
|
||||
);
|
||||
Reference in New Issue
Block a user