Skip to content

Commit cb45443

Browse files
xchillxxclaude
andcommitted
Rewrite as Surplus Pilot: one plan for car, home battery and devices (v3.0.0)
Surplus Load Switch (devices) and Smart Car Charger (EV) ran side by side and fought over the same surplus: the charger left the battery less because it knew the car would leave before sunset, the device controller didn't know that, saw the battery "behind schedule" and reserved everything for it, so devices got a budget of zero while plenty of PV was forecast. Surplus Pilot replaces both with a single pure planner (planner.py): car obligation for the next departure -> home battery (departure-aware) -> devices by priority -> car top-up, with the top-up moved before the devices when the car gets no PV chance tomorrow, and a late, cheapest-slot grid fallback when PV can't reach a departure target. Replayed on 30 days of recorded data the same code cut feed-in by 21 % and raised device runtime without missing a departure target. Vendor-neutral: every input is a free entity choice (car control on the car or the wallbox, any price sensor, any Energy-dashboard solar forecast). New domain surplus_pilot; no automatic migration from surplus_load_switch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c40c202 commit cb45443

68 files changed

Lines changed: 3897 additions & 9541 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ __pycache__/
33
.DS_Store
44
.vscode/
55
.idea/
6+
__pycache__/
7+
*.pyc
8+
.pytest_cache/

‎README.md‎

Lines changed: 110 additions & 692 deletions
Large diffs are not rendered by default.

‎branding/dark_logo.png‎

-5.17 KB
Loading

‎branding/dark_logo.svg‎

Lines changed: 2 additions & 2 deletions
Loading

‎branding/dark_logo@2x.png‎

-10.8 KB
Loading

‎branding/logo.png‎

-5.46 KB
Loading

‎branding/logo.svg‎

Lines changed: 2 additions & 2 deletions
Loading

‎branding/logo@2x.png‎

-11.1 KB
Loading

‎custom_components/surplus_load_switch/__init__.py‎

Lines changed: 0 additions & 56 deletions
This file was deleted.

‎custom_components/surplus_load_switch/base_load_floor.py‎

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)