fix BA81 nevybijeni do site
Some checks failed
CI and deploy / migration-check (push) Failing after 9s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-04-27 19:24:37 +02:00
parent 69c979b967
commit c52946a4ce
4 changed files with 18 additions and 12 deletions

View File

@@ -66,7 +66,8 @@ begin
)
)::int,
'charge_slot_buffer', ab.charge_slot_buffer,
'discharge_slot_buffer', ab.discharge_slot_buffer
'discharge_slot_buffer', ab.discharge_slot_buffer,
'planner_terminal_soc_value_factor', ab.planner_terminal_soc_value_factor
)
into v_b
from ems.asset_battery ab
@@ -130,13 +131,6 @@ begin
raise exception 'No site_grid_connection for site_id=%', p_site_id;
end if;
-- LP tuning (battery-level): terminal SoC shadow price factor
v_b := jsonb_set(
v_b,
'{planner_terminal_soc_value_factor}',
to_jsonb(coalesce((v_b->>'planner_terminal_soc_value_factor')::numeric, 0.9))
);
select coalesce(
jsonb_agg(
jsonb_build_object(