Controleur : un statut charge dementi par le niveau connu du vehicule n'est pas cru (JEEP 51 % du 14/10)
This commit is contained in:
@@ -56,6 +56,9 @@ const BUDGET_NUIT = { ...VEHICLE_NIGHT, ...BUDGET_NUIT_BASE };
|
||||
// 12/10/2026 16:38:30 — releve reel COMPLET (entree de INPUT_PARSE, execution
|
||||
// n8n 1464717) : VW en charge solaire tenue sur la batterie.
|
||||
const VW_1210 = JSON.parse(readFileSync(new URL('./fixtures/vw-1210-1638.json', import.meta.url), 'utf8'));
|
||||
// Releve reel du 14/10 12:57:30 (entree de INPUT_PARSE) : JEEP branchee 12:55:22, 51 % par Uconnect,
|
||||
// 1,5 min de charge a 8 A puis interruption ; statut 3, energie de session affichee 0,0 kWh.
|
||||
const JEEP_1410 = JSON.parse(readFileSync(new URL('./fixtures/jeep-1410-1257.json', import.meta.url), 'utf8'));
|
||||
|
||||
export const scenarios = [
|
||||
|
||||
@@ -3601,4 +3604,32 @@ export const scenarios = [
|
||||
},
|
||||
expect: { state: 'charging_step_up_battery', desiredCharging: true },
|
||||
},
|
||||
{
|
||||
id: 'jeep-1410-statut-charge-sans-niveau-latche',
|
||||
label: 'RELEVE 14/10 12:57:30 — statut 3, energie 0, AUCUN niveau connu : comportement historique, plein a l arrivee',
|
||||
time: '2026-10-14T12:57:30+02:00',
|
||||
overrides: { ...JEEP_1410, vehicle_level_valid: false },
|
||||
expect: { state: 'day_vehicle_full_idle', desiredCharging: false },
|
||||
},
|
||||
{
|
||||
id: 'jeep-1410-niveau-51-statut-charge-non-credible',
|
||||
label: '14/10 12:57:30 — meme releve, niveau 51 % connu depuis le branchement : le statut 3 n est PAS cru',
|
||||
time: '2026-10-14T12:57:30+02:00',
|
||||
overrides: { ...JEEP_1410, vehicle_level_pct: '51.0', vehicle_level_valid: true, vehicle_capacity_kwh: '10.0', vehicle_delivered_since_level_kwh: 0.05 },
|
||||
expect: { stateNotFull: true },
|
||||
},
|
||||
{
|
||||
id: 'jeep-1410-niveau-51-leve-le-collant',
|
||||
label: '14/10 12:58:34 — collant day_vehicle_full_idle deja pose, niveau 51 % saisi par Uconnect : le collant est leve',
|
||||
time: '2026-10-14T12:59:00+02:00',
|
||||
overrides: { ...JEEP_1410, prev_surplus_state: 'day_vehicle_full_idle', vehicle_level_pct: '51.0', vehicle_level_valid: true, vehicle_capacity_kwh: '10.0', vehicle_delivered_since_level_kwh: 0.05 },
|
||||
expect: { stateNotFull: true },
|
||||
},
|
||||
{
|
||||
id: 'jeep-1410-niveau-97-plein-cru',
|
||||
label: 'temoin — niveau estime 97 % (au-dessus de 95) : le statut 3 reste cru, plein',
|
||||
time: '2026-10-14T12:57:30+02:00',
|
||||
overrides: { ...JEEP_1410, vehicle_level_pct: '90.0', vehicle_level_valid: true, vehicle_capacity_kwh: '10.0', vehicle_delivered_since_level_kwh: 0.7 },
|
||||
expect: { state: 'day_vehicle_full_idle' },
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user