Dynamic MinSOC Based on Solar Forecast – Help Bring This Feature to EVCC #32811
Replies: 3 comments 14 replies
|
Have you tried the experimental optimizer? It will automatically find the most economic solution. |
|
The assumption seems to be that one should fast-cache more now if the sun doesn't shine later. This implies some kind of demand consisting of (dynamic) minsoc + (later) solar. If that demand was specified as a charging plan, the optimizer would make this economically perfect, the planner already economically viable. |
|
Thanks everyone for the feedback and for challenging the proposal. My goal here is not to push a specific implementation, but to solve a real-world problem that I encounter frequently. I also want to better understand your point of view and whether there are existing ways to achieve the same behavior using the scheduler, optimizer, or another mechanism that I may have overlooked. I've been running a Dynamic MinSOC setup outside EVCC for almost 2 years now, and it has not let me down yet. That doesn't automatically mean Dynamic MinSOC is the correct solution for EVCC, but it does suggest that the underlying use cases are real and useful in practice. I'm completely open to alternative implementations if they provide the same behavior. So rather than focusing on how it should be implemented, I'd like to focus on what behavior we're trying to achieve. If we can agree on that, the implementation can always be discussed afterwards. For me, the distinction is: The scheduler/optimizer answers: "How do I reach a target SOC?" To illustrate what I mean, here are a few examples. Example Scenarios (Bear in mind this is for the Family car and NOT the car you take to work 900: - 17:00) Assumptions Battery capacity: 60 kWh
In all 5 cases we also if departure is unexpected even earlier we almost always achieve maximum charge to a baseline minimum of 60. so car is as ready as it can be for unexpected departure. And in all cases we did NOT TOUCH or made any changes to any plan as a end user as we also could not have seen we do not know departure times. Why I Think This Is Different From a Charging Plan In all examples above, the optimizer can absolutely determine how to get to a target state. "What should that target reserve actually be today?" When the forecast predicts poor solar production, I want the reserve to increase automatically. So I'm not attached to Dynamic MinSOC as the only implementation. I'm interested in any solution that provides the same adaptive reserve-management behavior. If there's a better architectural fit for EVCC, I'm happy to discuss and help explore that direction as well. What would you consider the cleanest way to achieve these scenarios with the current EVCC architecture? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I recently submitted a pull request that introduces Dynamic MinSOC based on Solar Forecast, and I'd love your feedback and support.
👉 Pull Request: #32688
The feature is already available for testing on Ubuntu using the build attached to the pull request.
Why is this needed?
Many EV owners face the same challenge, especially during the darker months of the year.
You arrive home from a trip with a low battery and plug in your vehicle. The question becomes:
How much should EVCC charge now, and how much capacity should be reserved for today's or tomorrow's solar production? If i fast charge how will i stop it when the sun starts shining.
After all, solar energy is typically the cheapest energy available.
Today, EVCC uses a static MinSOC value. While this works well in summer, it can be less efficient during winter:
Introducing Dynamic MinSOC
The concept is simple:
EVCC automatically adjusts the effective MinSOC based on the solar forecast.
This allows you to keep your vehicle in Solar mode while Dynamic MinSOC automatically determines how much fast charging is required.
Example Scenarios: Vehicle returns with a low battery.
☀️ High Solar Forecast
🌤️ Medium Solar Forecast
☁️ Low Solar Forecast
Little solar production is expected.
EVCC charges more aggressively from the grid to ensure the vehicle is ready when needed. (for example 80% SOC).
Only a small amount of battery capacity is reserved for available solar generation.
The Result
A smarter balance between:
Key Benefits
✅ No need to manually adjust charging settings after every trip
✅ Optimizes charging behavior during winter and low-production periods
✅ Maximizes the use of available solar energy
✅ Works with existing weather forecast integrations
✅ Configurable solar thresholds (Low, Medium, High)
✅ Configurable MinSOC targets for each forecast level
✅ Existing MinSOC behavior remains supported and can override dynamic settings if required
✅ Configurable per vehicle, allowing adjustment for different battery sizes and driving patterns
How You Can Help
If this functionality would be valuable for your setup, please:
Community feedback and adoption are important factors in determining which enhancements are prioritized, so every test and every vote helps.
Thank you for taking the time to review and test the feature. My goal is to make EV charging a little smarter, more automated, and more solar-friendly for everyone.
Screenshots:
Extra configuration options in weather prediction settings:

Car settings for overwrite or active setting:

All reactions