Fix E: latch 'charge terminée' en session active + coupure recovery_done (incident rebond 08-09/08)
- DECISION: branche completed prioritaire dans la session active (avant VDF/source-lost) → état collant écrit au 1er cycle status=3, relais encore fermé - WINDOWS: garde puissance <=300W sur Fix D (anti-glitch) - Hystérésis: turn_off_recovery_done (bypass min_on, dry-run 5 cas) - golden 23→25 (session armée status 3, flap statut post-latch) - HANDOFF §18
This commit is contained in:
@@ -297,6 +297,60 @@ export const scenarios = [
|
||||
},
|
||||
},
|
||||
|
||||
// ===== FIX E 09/08/2026 : latch "charge terminée" PENDANT la session active =====
|
||||
// Incident nuit 08-09/08 : status 3 en session armée → source-lost zombie 25 min,
|
||||
// état collant jamais écrit, statut retombe à l'ouverture du relais → rebond EDF.
|
||||
{
|
||||
id: 'night-charged-en-session-active',
|
||||
label: 'Nuit HC 04:30, session ARMÉE (relais fermé, 0 W), statut 3 → arrêt propre + latch collant immédiat',
|
||||
time: '2026-08-09T04:30:00+02:00',
|
||||
overrides: {
|
||||
...VEHICLE_NIGHT, soc_percent: '51', allow_grid_hc_night: 'on',
|
||||
grid_state: 'on', victron_acin1_available: '1',
|
||||
battery_current_a: '2', night_takeover_prev: 'on',
|
||||
evcs_charging_switch: 'on',
|
||||
charge_permission_now: 'on',
|
||||
control_latch: 'on',
|
||||
evcs_current_a: '0',
|
||||
evcs_ac_power_w: '0',
|
||||
evcs_status_raw: '3',
|
||||
prev_surplus_state: 'charging_hold',
|
||||
},
|
||||
expect: {
|
||||
profile: 'night_hc',
|
||||
sourceMode: 'blocked',
|
||||
state: 'night_recovery_done_idle',
|
||||
decision: 'stop_vehicle_full_or_paused',
|
||||
desiredCharging: false,
|
||||
currentA: 6,
|
||||
takeoverNeeded: false,
|
||||
edfOnAction: false,
|
||||
takeoverHelperService: 'turn_off',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'night-flap-statut-apres-latch',
|
||||
label: 'Nuit HC 05:00, relais ouvert, statut retombé à 1, prev=night_recovery_done_idle → collant, AUCUN re-P7/EDF',
|
||||
time: '2026-08-09T05:00:00+02:00',
|
||||
overrides: {
|
||||
...VEHICLE_NIGHT, soc_percent: '51', allow_grid_hc_night: 'on',
|
||||
evcs_charging_switch: 'off',
|
||||
evcs_status_raw: '1',
|
||||
prev_surplus_state: 'night_recovery_done_idle',
|
||||
},
|
||||
expect: {
|
||||
profile: 'night_hc',
|
||||
sourceMode: 'blocked',
|
||||
state: 'night_recovery_done_idle',
|
||||
decision: 'hold',
|
||||
desiredCharging: false,
|
||||
currentA: 6,
|
||||
takeoverNeeded: false,
|
||||
edfOnAction: false,
|
||||
takeoverHelperService: 'turn_off',
|
||||
},
|
||||
},
|
||||
|
||||
// ================= JOUR SOLAIRE =================
|
||||
{
|
||||
id: 'morning-solaire-fort',
|
||||
|
||||
Reference in New Issue
Block a user