evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Planner: spread charging as much as possible to avoid peak loads

Open bolisaf opened this issue 2 years ago • 26 comments

Is your feature request related to a problem? Please describe. charge plan charges the remaining charge after solar at peak power. I want to avoid peak charging as much as possible because of the 'capacity tariff' here in BE: https://www.fluvius.be/nl/factuur-en-tarieven/capaciteitstarief/gezinnen-en-kleine-ondernemingen

Describe the solution you'd like in addition to the current functionality for the charge plan, I would like to have an option to start charging right after sunset at the lowest power possible, based on the delta between current charge and target charge, and the time available (sunset to set departure time).

Describe alternatives you've considered some automation in HA but then what's the use for EVCC...

Additional context referring to a quote from @andig: https://github.com/evcc-io/evcc/issues/9550#issuecomment-1722207893

Plan charging tages as much PV as possible and covers the remainder at full speed.

bolisaf avatar Dec 29 '23 13:12 bolisaf

Sound similar to https://github.com/evcc-io/evcc/issues/9763

StefanSchoof avatar Dec 29 '23 13:12 StefanSchoof

in addition to the current functionality for the charge plan, I would like to have an option to start charging right after sunset at the lowest power possible, based on the delta between current charge and target charge, and the time available (sunset to set departure time).

with the latest Version of evcc this is possible. Not automatically, but just with a few clicks. The Planner shows you a preview of the charging time and the chargePower. So you can adjust the maxcurrent within the ui to get the best solution.

VolkerK62 avatar Dec 29 '23 13:12 VolkerK62

@VolkerK62 fundamentally you are right. but the max current setting applies to every charge mode (solar, min + pv, fast). I still want to be able to change to 'fast' charging at the max current possible. this workaround would limit other functionalities that I use.

edit: I just tried what you suggested, but I didn't see my start time for my charging plan change as I modified the max current setting.

On 29 Dec 2023, at 14:45, VolkerK62 @.***> wrote:

in addition to the current functionality for the charge plan, I would like to have an option to start charging right after sunset at the lowest power possible, based on the delta between current charge and target charge, and the time available (sunset to set departure time).

with the latest Version of evcc this is possible. Not automatically, but just with a few clicks. The Planner shows you a preview of the charging time and the chargePower. So you can adjust the maxcurrent within the ui to get the best solution.

— Reply to this email directly, view it on GitHub https://github.com/evcc-io/evcc/issues/11324#issuecomment-1872101044, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXHBOI5RWJCBHEQIO7G47DYL3CPBAVCNFSM6AAAAABBGT3BJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGEYDCMBUGQ. You are receiving this because you authored the thread.

bolisaf avatar Dec 29 '23 14:12 bolisaf

What‘s so particular over sunset that it matters?

andig avatar Dec 29 '23 16:12 andig

What‘s so particular over sunset that it matters?

usually there's no more solar production after sunset so that can't influence the calculation for minimal charge power to reach the target charge in time :)

bolisaf avatar Dec 29 '23 16:12 bolisaf

What specifically is a plan that spreads charging as much as possible? For which cost criteria would that optimise (that's what plans do). I'm not sure why this should become a plan. You can always set mode Min+Solar and adjust the session limit.

andig avatar Jan 02 '24 11:01 andig

Hi andig,

maybe if I provide some use-cases it's clearer:

  • it's winter, so early sunset at 17h. car battery is at 40% and needs to be at 80% at 7AM. that's 14hours of charging, but the minimum power is 1400W so charging starts at say 21h to charge all night at minimal power
  • same as before, only now it's summer and the sun sets at 22h. that means not enough time to charge at minimal power, so the power is increased a little bit to make sure the car is charget at the target SoC at 7AM.
  • same scenario, but I arrive really late at 3AM. that means only 4 hours to get the car charged to Target SoC at 7AM, so the charging power is increased accordingly

does that make sense?

bolisaf avatar Jan 02 '24 18:01 bolisaf

@naltatis @premultiply is "spread" charging something we want to consider?

andig avatar Jan 09 '24 21:01 andig

Not really, as it would maximize losses and costs.

premultiply avatar Jan 09 '24 23:01 premultiply

OPs point is that it minimises costs since he would pay more for power than for additional energy (Belgium amongst others).

andig avatar Jan 10 '24 06:01 andig

One thing that's not yet clear for me: are we talking about evenly spreading through all remaining hours to keep max power as low as possible or must this now (or potentially later) also work with dynamic prices: "charge in the cheapest hours but don't exceed 5kW if possible". This would change how we'd have to think about the solution and calculate the cheapest option.

naltatis avatar Jan 10 '24 08:01 naltatis

OPs point is that it minimises costs since he would pay more for power than for additional energy (Belgium amongst others).

Ok, got it. But I'm still not sure whether it's really cheaper, for example, to buy twice the amount of energy than to pay for slightly higher power on the grid connection.

premultiply avatar Jan 10 '24 10:01 premultiply

@naltatis @premultiply is "spread" charging something we want to consider?

I would like this feature! It is god for the battery and for the grid.

Oberreiter avatar Jan 12 '24 13:01 Oberreiter

It is god for the battery

Do you have any data that can support this? Does it really make a difference if you charging below 11 kW?

StefanSchoof avatar Jan 12 '24 16:01 StefanSchoof

@StefanSchoof doesn't matter. We already have the case to reduce peak power.

andig avatar Jan 12 '24 16:01 andig

Replaced by #11654 for getting broader view on requirements

andig avatar Jan 13 '24 09:01 andig

It is god for the battery

Do you have any data that can support this? Does it really make a difference if you charging below 11 kW?

https://ladehero.de/blog/so-behandeln-sie-ihren-e-auto-akku-richtig https://www.e-mobileo.de/10-tipps-wie-der-akku-laenger-haelt/

Oberreiter avatar Jan 13 '24 12:01 Oberreiter

One thing that's not yet clear for me: are we talking about evenly spreading through all remaining hours to keep max power as low as possible or must this now (or potentially later) also work with dynamic prices: "charge in the cheapest hours but don't exceed 5kW if possible". This would change how we'd have to think about the solution and calculate the cheapest option.

OPs point is that it minimises costs since he would pay more for power than for additional energy (Belgium amongst others).

Ok, got it. But I'm still not sure whether it's really cheaper, for example, to buy twice the amount of energy than to pay for slightly higher power on the grid connection.

@naltatis @premultiply

Just as a reference/background info: Belgium system:

In every month they check per 15 min (h:00-h:15-h:30-h:45-h:00) what your average peak power consumption is. For that month they write down "month peak power == 7kW" They write this down for every month and after a year they do an average of all your month peak power. You get a global single number, let' say 5kW Every kW has a cost of around 40 EUR. So 200 EUR If you would charge every month at 11kW that would be 440 EUR

What would be immensely cool (but you got my mind thinking about global costs and how important peak is in general, I am making an Excel) is if you would store the month peak for that month yourself (since you see that data if you have a meter) and adapt per month to allow EVCC to charge this fast since you are already penalized for that month because you did some other things...

I also think you in Germany are a bit ahead of the dynamic tariffs, this is not (yet) a big thing in Belgium and the Netherlands afaik.

By using a boolean "flatten curve/limit peak usage" you can include this logic or not.

Use case in Belgium would be then:

Car is home every night User sets minimum charge needed for every day via planner EVCC plans the charge and limits the current to charge the car "as fast as possible but reducing peak or limiting peak" and warns when a the set charging speed will not make the deadline Load balancer takes into account the set maximum peak or takes this into account by using statistics Car stops charging because charging planner has reached the target SoC and continues charging with solar if car is still connected in the morning.

hyperbart avatar Feb 02 '24 08:02 hyperbart

Well setting maxCurrent by API from an external automation system should simply do the trick?

premultiply avatar Feb 03 '24 07:02 premultiply

I suppose so, but I don’t understand your logic here. I mean with the same reasoning I could just do everything in HA and not use EVCC at all.What we’re asking for here is a new feature to be added to this software. It doesn’t make sense if you then say ‘yes but you can do it using another software’, do you follow me? On the other hand I do understand you can’t add all the bells and whistles everyone is asking for, but here’s quite a few people who seem to be wishing for the same feature. And I’m sure that sooner or later this ‘capacity tariff’ will be introduced in some form in Germany as well ;)Thanks!LOn 3 Feb 2024, at 08:08, premultiply @.***> wrote: Well setting maxCurrent by API from an external automation system should simply do the trick?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

bolisaf avatar Feb 03 '24 15:02 bolisaf