Repository navigation
v2.1.0
Changelog
v2.1.0 (2025-12-03)
馃攱 Smarter Battery Management
Full Valley Charging
Overnight and depleted battery scenarios now use the full valley duration instead of short top-up windows. Previously, a 10% SOC battery at midnight might only charge for 1 hour鈥攏ow it uses the entire cheap period (capped at ~3.5h).
Extended Discharge Windows
Discharge no longer stops at the strict "peak" boundary. The system now extends discharge into all surrounding hours where price > charge_price 脳 1.2, maximizing energy arbitrage.
Consumption Tracking
New avg_overnight_load_kw config estimates SOC drain during gaps between windows, preventing optimistic calculations that ignore standby loads.
Fallback Discharge Detection
When no explicit peaks are detected (flat-ish price days), the optimizer scans for any profitable discharge opportunities above the 20% margin threshold.
鈿欙笍 Config Changes
New parameter in config.yaml:
avg_overnight_load_kw: 1.6 # Standby consumption for SOC drain estimation馃搳 Code Quality
- Reduced codebase from ~800 to ~650 lines
- All 63 tests passing