Files
ems/db/migration/V103__battery_degradation_tuning.sql
Dusan Vojacek a742c295b7
All checks were successful
CI and deploy / migration-check (push) Successful in 24s
CI and deploy / deploy (push) Successful in 55s
V103: degradační cena dle cen packů — KV1/BA81 0.50→0.25, HU1 →0.15
Calendar-bound filozofie (majitel): parametr = šumový floor, ne plná cena
cyklu. Odemyká mělčí arbitráže na malých packech. Detail v changelogu.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 22:27:57 +02:00

16 lines
854 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- Degradační cena dle skutečných cen packů od majitele (2026-06-13):
-- home-01 150 tis. / 64 kWh, HU1 300 tis. / 128 kWh, KV1 80 tis. / 12.5 kWh,
-- BA81 70 tis. / 12.5 kWh. Filozofie: packy při ~1 cyklu/den umírají na
-- kalendář, ne na cykly → parametr je šumový floor proti honění haléřů
-- (chrání marži před chybou forecastu), ne plná cena cyklu. Stropy plné ceny
-- cyklu (6000 cyklů LFP): velké packy 0.39, malé 0.931.07 Kč/kWh.
-- Hlídat fn_battery_cycle_audit — pokud cyklování vzroste >2/den, přehodnotit.
update ems.asset_battery b
set degradation_cost_czk_kwh = 0.15
where b.site_id in (select id from ems.site where code in ('home-01', 'hulin-bess'));
update ems.asset_battery b
set degradation_cost_czk_kwh = 0.25
where b.site_id in (select id from ems.site where code in ('KV1', 'BA81'));