evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Laden bei Ankunft starten wenn Preis bis zur Abfahrt gleich

Open maduuto opened this issue 2 months ago • 7 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Ich habe eine Tarif, der von 0-5 Uhr günstigen Strom hat. Wenn ich nach 0 von der Spätschicht komme, lädt mein Auto z.B. Erst um 3 Uhr. Describe the solution you'd like A clear and concise description of what you want to happen. Direktes starten, sofern die Kosten gleich günstig sind, da die Batterie ja noch warm ist

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

maduuto avatar Sep 20 '26 15:09 maduuto

Thanks for the report. This is expected behavior given the current planner logic, not a bug.

When multiple slots have the same (lowest) price, the planner deliberately prefers the latest possible slots over earlier ones - see the sort in core/planner/sort.go (sortByCost) and the comment in core/planner/planner.go:

// - rates are sorted in ascending order by cost and descending order by start time (prefer late slots)

So if your tariff has a flat cheap price from 0-5, and you plug in at e.g. 00:30, the planner picks the latest slots that still satisfy the required charging duration (e.g. starting at 03:00) instead of starting immediately, even though the price is identical right now.

This is a reasonable feature request: allow charging to start immediately once the current price is already at (or equal to) the minimum price within the planning window, rather than always deferring to the latest equally-priced slot. This would need a design decision from the maintainers on how/whether to change the tie-breaking behavior (e.g. only for the first slot, or a config option), so I'm not opening a PR for it.

Labeling as tariffs enhancement.

🤖 Generated with Claude Code

github-actions[bot] avatar Sep 20 '26 15:09 github-actions[bot]

Ist die Frage, ob das jetzt soooo viel Strom spart, direkt zu laden oder ob es nicht spürbar ist. Dann kann man sich den Programmieraufwand sparen.

maduuto avatar Sep 20 '26 15:09 maduuto

Das möglichst späte Laden hat insbesondere im Winter Vorteile bei der Akkuvorkonditionierung.

premultiply avatar Sep 20 '26 16:09 premultiply

Zudem steht das Auto weniger lang mit vollem Akku herum.

mfuchs1984 avatar Sep 20 '26 16:09 mfuchs1984

Das möglichst späte Laden hat insbesondere im Winter Vorteile bei der Akkuvorkonditionierung.

Ok ich fahr aber erst um 12.30 wieder los bis dahin ist es ja wieder kalt

maduuto avatar Sep 20 '26 16:09 maduuto

Zudem steht das Auto weniger lang mit vollem Akku herum.

Ich lad eh nur bis 80. Aber im grossen Ganzen macht das wohl dann doch keinen Sinn

maduuto avatar Sep 20 '26 16:09 maduuto

@maduuto "spätes Laden" haben wir ja explizit als Ladeplan-Option. Genau aus dem Grund den @premultiply nennt. Das "Sofort nach Ankunft-Laden" weil der Akku noch warm ist höre ich zum ersten Mal als Anwendungsfall. Wie du schon schreibst, vmtl. ist der Effizienzgewinn dadurch nicht wirklich hoch. Wir sprechen hier ja von AC-Laden.

Als Workaround kannst du natürlich mit deinem MinSoC Wert spielen um sofort nach Ankunft den SoC auf den Wunschstand zu füllen. Das gilt dann allerdings immer (auch wenn man nicht von der Nachtschicht kommt).

Ich mach hier erst einmal zu.

naltatis avatar Sep 20 '26 18:09 naltatis