Skip to content

Optimizer: report loadpoint charging state - #33802

Merged
andig merged 3 commits into
masterfrom
feat/optimizer-charging-state
Sep 17, 2026
Merged

andig merged 3 commits into
masterfrom
feat/optimizer-charging-state

Conversation

@andig

@andig andig commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

pairs with evcc-io/optimizer#157

The optimizer's continuity tie break counts charge starts inside a plan, but it assumed every device enters the horizon switched off. A car that charges right now therefore scored one start whether the plan kept it running or stopped it and restarted a slot later, so an interruption stayed free whenever both slots carried the same price. Reporting the loadpoint state lets the optimizer prefer the uninterrupted plan.

  • c_active is set from the charge status, so only a loadpoint actually charging anchors the plan. An enabled but idle loadpoint does not.
  • The anchor decides ties only: cost, preference and grid peak bounds keep the economics of the schedule unchanged.
  • The module points at the optimizer rollup branch, which carries the anchor, so a preview deployment of that rollup can be tested against this branch.

TODO

🤖 Generated with Claude Code

The optimizer's continuity tie break assumed every device starts the horizon switched off,
so interrupting a running charge and restarting it one slot later scored the same as
charging through. Report the loadpoint state so it can prefer the uninterrupted plan.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@andig
andig enabled auto-merge (squash) September 17, 2026 16:21
@andig
andig merged commit 3d104bb into master Sep 17, 2026
21 of 23 checks passed
@andig
andig deleted the feat/optimizer-charging-state branch September 17, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant