Files
ems/db/migration/V107__ev_charge_done_tolerance.sql
Dusan Vojacek a9a6a88a88 fix(planner): EV tolerance 'dost dobré' — konec honění posledních % do 100 %
needed_wh=0 když live_soc >= least(target,99) - charge_done_tolerance_pct (V107,
default 3 p.b.). Effective target zastropovaný na 99 (clamp) → bez věčného
mini-dobíjení a cyklování nabíječky. Ověřeno živě: session #6 needed_wh 1329→0.

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

11 lines
824 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.
-- EV: tolerance „dost dobré" pro deadline charging — nehonit posledních pár % do
-- targetu (taper region u plného auta). Řeší věčné mini-dobíjení odhalené live-SoC
-- fixem (live_soc clamp 99 vs target 100 → needed nikdy neklesne na 0 → cyklování
-- nabíječky, Tesla notifikace). needed_wh = 0 když live_soc >= least(target,99) tolerance.
alter table ems.asset_vehicle
add column if not exists charge_done_tolerance_pct numeric(4, 2) not null default 3.0;
comment on column ems.asset_vehicle.charge_done_tolerance_pct is
'Tolerance „dost dobré" pro deadline charging (procentní body). needed_wh=0 když live_soc >= least(target,99) tato tolerance — nehonit poslední taper k 100 % (zbytečné start/stop nabíječky a Tesla notifikace). 0 = tvrdě na target. Default 3 p.b.';