Fix proactive charging, logging, and status page ordering
1. SOC high bypass: when SOC >= soc_high_bypass_pct (default 90%), activate car charging without requiring a good forecast. Solves today's missed charging window where 4kW was exported for 6h with a full battery because the intraday forecast dropped from 15.4 to 13.3 kWh. 2. Log ambient_c in every cycle: makes it diagnosable why isHeatingPeriod suppresses SG-Ready on warm days (heating_min_ambient_c: 15°C gate). 3. Consumer names in logs: replace slog integer Consumer values with .String() so logs show "wallbox_a" instead of "2". 4. Status page order: reorder consumers by EMS priority (WallboxA → WallboxB → WW → SG-Ready) instead of the old reversed order. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -127,8 +127,9 @@ battery:
|
||||
|
||||
# Proactive car charging strategy (forecast-driven, no export threshold required)
|
||||
car_charging:
|
||||
min_soc: 35 # start car charging only if battery SOC ≥ this (%)
|
||||
min_soc: 25 # start car charging only if battery SOC ≥ this (%)
|
||||
soc_floor: 5 # emergency brake floor — stop if SOC drops below this (%)
|
||||
soc_high_bypass_pct: 90 # activate without forecast check when SOC ≥ this % (battery full → always charge)
|
||||
eod_soc_target: 90 # desired battery SOC at end of day / sunset (%)
|
||||
eod_time: "16:00" # start EOD soft-stop checks after this time
|
||||
no_car_retry_min: 30 # minutes before retrying after no-car detection
|
||||
|
||||
Reference in New Issue
Block a user