evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Optimizer: tracking issue for actions feedback

Open andig opened this issue 4 months ago • 12 comments

Comment below for experience with optimizer observations: https://github.com/evcc-io/evcc/pull/31905

andig avatar Jul 18 '26 11:07 andig

So this is for general feedback or only actions?

Feature Request:

  • Regions: EVCC has a lot of users from all over Europe, all with different rules and regulations. change Optimizers settings based on region

djfanatix avatar Jul 19 '26 18:07 djfanatix

The title says it all and the comment is bot actionable in any way…

andig avatar Jul 19 '26 18:07 andig

Proposal: "Solar first" optimizer strategy

I have implemented two features for the optimizer that are tested and running in production on a 34 kWp / 42.58 kWh LiFePO4 system. Built with AI assistance (Claude). Both are fully backwards compatible (opt-in only).

1. charge_profile: SoC-dependent charge power limits (CC-CV taper). The optimizer currently treats c_max as constant. In reality, the BMS reduces charge current at high SoC. This feature adds a chargeProfile: lifepo4_conservative config option per battery that models the taper curve, making schedules feasible above 80% SoC.

2. Solar first strategy: Alternative to the MILP for systems where self-consumption matters more than cost arbitrage. Instead of minimizing cost, it finds the flat export ceiling that charges the battery to target SoC while reducing grid export peaks. Activated via OPTIMIZER_STRATEGY=solar-first env var. The UI adapts (shows "Solar first / reduce grid peaks" instead of "Lowest cost").

Image Image

Solar first charging plan

Changes span evcc-io/optimizer (4 files) and evcc-io/evcc (7 files). Both PRs are ready. How would you like me to submit them given the two-repo dependency?

We briefly met at MCH2022 and WHY2025. Happy to discuss on a call, in German if easier.

1va13n7in avatar Jul 20 '26 06:07 1va13n7in

@1va13n7in can we please stay on topic here. This issue is for optimizer actions as shown in the UI, nothing else.

andig avatar Jul 20 '26 06:07 andig

Seeing the battery on/off flip-flopping issue on my electric car charging recommendations, for overnight charging optimization, with multiple isolated 15min blocks when it is targeted to charge. Splits up the charging sessions into 6 blocks, with charging being stopped because price increases by 0.01 EUR.

jeremiahpslewis avatar Jul 22 '26 19:07 jeremiahpslewis

OT and already reported: https://github.com/evcc-io/optimizer/issues/69

andig avatar Jul 22 '26 19:07 andig

Closing here. Feedback- if any- will still be read!

andig avatar Aug 06 '26 14:08 andig

es wäre toll, wenn der Optmizer kurz einen Grund für die Empfehlung mitteilen könnte: Sonne erwarte nächste stunde oder Preis geringen in 30 min...oder etwas ähnliches.

Rainbow45-pixel avatar Aug 18 '26 10:08 Rainbow45-pixel

Den gibt es nicht. Der Grund ist dass es auf overall niedrigste Kosten einzahlt.

andig avatar Aug 18 '26 10:08 andig

Since two days (2026-11-17) I get these notifications from evcc: "Optimierungsvorschlag für SBH200: Wäre die Optimierungssteuerung aktiv, würde sie jetzt „hold“ anwenden. Dies ist nur ein Hinweis, es wurden keine Änderungen vorgenommen. Experimentell – Feedback ist willkommen unter https://github.com/evcc-io/evcc/issues/31903"

Optimizer itself and control of everything is enabled and is working.

MFlasskamp avatar Nov 19 '26 13:11 MFlasskamp

The cause of my confusion was only the default notification template. Actually the optimizer is allowed to execute (e.g. control) its plans.

Optimierungsvorschlag für ${suggestionTitle}: Wäre die Optimierungssteuerung aktiv, würde sie jetzt „${suggestionAction}“ anwenden. Dies ist nur ein Hinweis, es wurden keine Änderungen vorgenommen. Experimentell – Feedback ist willkommen unter https://github.com/evcc-io/evcc/issues/31903

MFlasskamp avatar Nov 21 '26 10:11 MFlasskamp

Yes, we've disabled notifications for this case now.

andig avatar Nov 21 '26 10:11 andig