Boost sur batterie : force_charge_now donne d'abord le budget batterie (au-dessus du requis prudent), puis EDF ; script, fin automatique, bouton
This commit is contained in:
@@ -1849,21 +1849,23 @@ export const scenarios = [
|
||||
},
|
||||
{
|
||||
id: 'force-charge-nuit',
|
||||
label: 'force_charge_now la nuit (toggle HC ON) → démarrage manuel local (non-régression P7)',
|
||||
label: 'force_charge_now la nuit, bilan absent → budget batterie 0 → EDF tout de suite (boost du 15/10)',
|
||||
time: NIGHT,
|
||||
overrides: {
|
||||
...VEHICLE_NIGHT, victron_evcs_strategy: 'force_charge_now',
|
||||
soc_percent: '60', allow_grid_hc_night: 'on',
|
||||
},
|
||||
// Avant le 15/10 : 'solar_potential' / start_manual_local (la batterie a
|
||||
// l'aveugle). Desormais, sans bilan exploitable, le boost ne prend JAMAIS la
|
||||
// batterie : il demande EDF (ici en HC de nuit).
|
||||
expect: {
|
||||
profile: 'night_hc',
|
||||
sourceMode: 'solar_potential',
|
||||
state: 'start_manual_local_min_current',
|
||||
decision: 'start',
|
||||
desiredCharging: true,
|
||||
currentA: 6,
|
||||
sourceMode: 'grid_forced',
|
||||
state: 'night_wait_grid_takeover',
|
||||
decision: 'hold',
|
||||
desiredCharging: false,
|
||||
takeoverNeeded: true,
|
||||
edfOnAction: false,
|
||||
edfOnAction: true,
|
||||
takeoverHelperService: 'turn_on',
|
||||
},
|
||||
},
|
||||
@@ -3651,4 +3653,32 @@ export const scenarios = [
|
||||
// Identique a l'ancien code (6458 W).
|
||||
expect: { gridSetpointW: 6458 },
|
||||
},
|
||||
{
|
||||
id: 'boost-batterie-1410-dans-le-budget',
|
||||
label: '14/10 20:40 rejoue en force_charge_now — SOC 87, requis prudent 82,2 : la batterie d abord (budget 1,44 kWh fige)',
|
||||
time: '2026-10-14T20:40:00+02:00',
|
||||
overrides: { ...VOLVO_1410, victron_evcs_strategy: 'force_charge_now', boost_budget_prev: '' },
|
||||
expect: { sourceMode: 'battery_assist_night', desiredCharging: true, boostBudgetWrite: '1.44|4144' },
|
||||
},
|
||||
{
|
||||
id: 'boost-batterie-1410-budget-atteint-edf',
|
||||
label: 'meme soiree, budget 1,44 kWh deja donne au compteur : EDF prend le relais',
|
||||
time: '2026-10-14T20:40:00+02:00',
|
||||
overrides: { ...VOLVO_1410, victron_evcs_strategy: 'force_charge_now', boost_budget_prev: '1.44|4142.5' },
|
||||
expect: { sourceMode: 'grid_forced', state: 'charging_hold_grid', desiredCharging: true, boostBudgetWrite: null },
|
||||
},
|
||||
{
|
||||
id: 'boost-batterie-bilan-perime-edf',
|
||||
label: 'boost, bilan perime (2 h) : budget 0, EDF tout de suite, jamais la batterie a l aveugle',
|
||||
time: '2026-10-14T20:40:00+02:00',
|
||||
overrides: { ...VOLVO_1410, victron_evcs_strategy: 'force_charge_now', boost_budget_prev: '', balance_last_run: '14/10 18:35' },
|
||||
expect: { sourceMode: 'grid_forced', state: 'charging_hold_grid', desiredCharging: true, boostBudgetWrite: '0|4144' },
|
||||
},
|
||||
{
|
||||
id: 'boost-batterie-efface-a-la-sortie',
|
||||
label: 'sortie du boost (retour auto_solar_plus) : le budget fige est efface',
|
||||
time: '2026-10-14T20:40:00+02:00',
|
||||
overrides: { ...VOLVO_1410, victron_evcs_strategy: 'auto_solar_plus', boost_budget_prev: '1.44|4144' },
|
||||
expect: { boostBudgetWrite: '' },
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user