feat: Add afternoon_probe for outside-window solar charging
- Add afternoonProbeEligible in WINDOW_SOURCEV2.js - Enable hybrid_probe sourceMode in outside_window when probe conditions met - Add afternoon probe parameters in INPUTPARSE (inputparse.js + inputparseP2.js) - Update probeStartOk in BATTERY_CLOUD_LOCKS to accept afternoon probe - Update blockStillRelevant for probe_failed to include outside_window Fixes the issue where strong afternoon sun with SOC>85% was blocked by high cloudDebt and no probe mechanism.
This commit is contained in:
@@ -329,6 +329,13 @@ const middayProbeEligible =
|
||||
parsed.soc >= params.middaySocMin &&
|
||||
parsed.batteryCurrentA >= params.middayBatteryMaxDischargeA;
|
||||
|
||||
const afternoonProbeEligible =
|
||||
profile === 'outside_window' &&
|
||||
params.probeEnabled &&
|
||||
parsed.soc >= params.afternoonProbeSocMin &&
|
||||
parsed.batteryCurrentA >= params.afternoonBatteryMaxDischargeA &&
|
||||
parsed.pvPowerAvg10mW >= params.afternoonProbePvAvgMinW;
|
||||
|
||||
const cloudDebtOkForPotential = params.cloudDebtPrevKwh <= params.cloudDebtMaxKwh;
|
||||
const batteryOkForPotential = parsed.batteryCurrentA >= -Math.max(1, params.batteryNeutralBandA);
|
||||
|
||||
@@ -460,6 +467,10 @@ else if (profile === 'outside_window') {
|
||||
sourceMode = 'solar_potential';
|
||||
}
|
||||
|
||||
else if (afternoonProbeEligible) {
|
||||
sourceMode = 'hybrid_probe';
|
||||
}
|
||||
|
||||
else {
|
||||
// IMPORTANT:
|
||||
// hors fenêtre = pas de réseau programmé.
|
||||
@@ -537,6 +548,7 @@ return [{
|
||||
manualChargeLocalRequested,
|
||||
morningProbeEligible,
|
||||
middayProbeEligible,
|
||||
afternoonProbeEligible,
|
||||
isHighBatteryForPotential,
|
||||
strongSolarSignal,
|
||||
effectivePvStartMinW,
|
||||
|
||||
Reference in New Issue
Block a user