evcc
evcc copied to clipboard
Charge Planner not following the plan
Describe the bug
This plan shows two slots seperated by 1 slot as the charging plan.
In reality this happens after the first slot
evcc-1 | [lp-1 ] DEBUG 2024/10/23 01:00:22 plan: charge 1h0m28s between 2024-10-23 02:00:00 +0200 CEST until 2024-10-23 05:30:00 +0200 CEST (power: 11040W, avg cost: 0.281)
evcc-1 | [lp-1 ] DEBUG 2024/10/23 01:00:22 plan: avoid re-start within 1h0m0s, continuing for remaining 59m37s
https://github.com/evcc-io/evcc/blob/fc377138d1debfea0d4bfc749911f1be580bf73b/core/loadpoint_plan.go#L175-L177
Here the value smallGapDuration
which is not configurable is used to skip the slot inbetween that was planned.
Either the shown plan is wrong because at the beging of the plan we already know that the slot inbetween will be skipped anyway or the skip is wrong.
It's possible that the skipped slot is way more expensive than the planed slot.
Steps to reproduce
Set planner
Configuration details
none
Log details
evcc-1 | [lp-1 ] DEBUG 2024/10/23 01:00:22 plan: charge 1h0m28s between 2024-10-23 02:00:00 +0200 CEST until 2024-10-23 05:30:00 +0200 CEST (power: 11040W, avg cost: 0.281)
evcc-1 | [lp-1 ] DEBUG 2024/10/23 01:00:22 plan: avoid re-start within 1h0m0s, continuing for remaining 59m37s
What type of operating system are you running?
Linux
Nightly build
- [ ] I have verified that the issue is reproducible with the latest nightly build
Version
lateste master