evcc icon indicating copy to clipboard operation
evcc copied to clipboard

PV forecast aware charge Plan.

Open mggevaer opened this issue 8 months ago • 4 comments

Is your feature request related to a problem? Please describe.

Our car almost always leaves around mid-day or early evening and comes back in the (late)evening of that same day. If we set a departure time for the next day, the car is simply completely charged at night by EVCC when we have slightly cheaper night-tariff electricity. This leaves no room in the battery to capture any PV surplus.

Unfortunately this means that EVCC is essentially reducing our PV surplus charging to 0% rather than increasing it.

Describe the solution you'd like

This could be solved by a simple flow where you set departure time, and the system combines forecasted solar production with grid import at the cheapest hours to reach the desired charge goal by that time.

For users that already have a solar forecast set up, I think the "business logic" is reasonably straightforward.

  1. Use the current departure time plan UI (or take the relevant one from recurring plans).

  2. Look ahead to see what the solar forecast is between now and departure time, and determine if additional grid import will be needed.

    • Perhaps allow users to tell the system to "subtract" a base load from the forecast, although this is an extra feature.
    • Could be an option to switch from PV to min+pv before going for grid import if needed. But again, this is an additional sub-feature that would be less impactful than the main feature.
  3. Repeat the calculation of the planned mix periodically. By repeating it EVCC would be able to compensate for lower than expected PV surplus by adding additional import (more self usage, adjusted PV forecast,...). Or perhaps just some logic that switches to fast charging before departure if the charge goal won't be reached.

Describe alternatives you've considered It is possible to set a charge before departure time, that way there is room left in the battery to capture potential solar surplus of the next day. But this means each day manually estimating how much time to set based on the solar forecast. It's fairly inaccurate, and doesn't automatically update for changing forecasts and actual PV surplus. (e.g. charging a bit more during cheap hours since the latest calculation run shows the car will require more import than expected). It's also much more difficult to explain to the non-technical folks in my family that use the car than just saying "set your departure time, the system does the rest".

This means our current most reasonable solution is to set 100% late charging. This will import a lot at higher tariffs, but will at least allow as much time as possible for solar surplus to do it's work before then. Certainly during winter months this can add more costs than our PV surplus would save.

Additional context I can imagine that there are additional complexities to consider when home batteries come into play, but I was surprised to find that EVCC does not currently support this PV+required import planning system.

I am however obviously still thankful for all the work done in building EVCC.

mggevaer avatar Apr 02 '26 17:04 mggevaer

Hi, We have this same use case in our setup.

Our 80/20 solution is based on the “luxury problem” that the car typically doesn't need to be 100% charged when leave, but just at least 50% in the winter and 40% in the summer time. This target value is set for the continuous nighttime charging schedule to ensure the car stays at a minimum SoC even during bad weather. Any PV surplus is then charged additionally, ideally even allowing us to automatically skip the next nighttime charging schedule at all if the car hasn't been moved that much. Could this be a possible solution for you, too? In the beginning, our biggest fear was range anxiety, but we managed to overcome it by keeping a set of public fast charge ID cards in the car. On top, we gained trust in PV surplus by every leave realizing the car SoC doesn't have only 40 or 50%, but 80+ just because of the good weather . ;)

hstammlerj avatar Apr 05 '26 05:04 hstammlerj

@hstammlerj during the summer we can do a bit of this, and I'll keep your excellent suggestion in mind. However during winter months, it does need to be 100%, but I suppose during those times the PV-surplus is very low anyway. In that light I would understand if this feature is marked as low-priority.

mggevaer avatar Apr 06 '26 09:04 mggevaer

I am just starting with evcc and reading up. I expected this to be the case as well, that is the reason to import forecasts right? To take them into account. Otherwise it does not add a lot on top of the simple charging logic I already implemented in HomeAssistant.

So +1 for this one from my side!!

vanrace avatar Apr 07 '26 09:04 vanrace

This is not something easy to do since planner guarantees the car to be charged while forecast is that- it may vary and househould consumption needs to be deducted. Lets revisit when we make the optimizer actionable.

andig avatar Apr 09 '26 10:04 andig