evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Feature Request: Include home battery in charging prioritization

Open nanoBit93 opened this issue 8 months ago • 4 comments

Is your feature request related to a problem? Please describe. Currently, the battery can not be assigned with a charging priority. The battery priority setting overrides the charging priority. Example: I have a heat pump, an EV charger and a battery. My charging prio is heat pump > EV charger, battery priority is set to 85% SoC.

With this setup, the battery would charge up to 85% and trigger the heat pump in case there's either sufficient power after the battery charge to power the heating or the battery reaches 85% SoC. The problem is that the heat pump requires a maximum possible run time as when it switches into elevated SG mode it runs for approx 4-5h straight. This would not be possible if the battery would charge until 85%. One could now think, lowering the SoC requirement for the battery priority would solve. But when I put that to for instance 30%, the EV charger would gain a higher priority than the battery. So the heating would be triggered early (good), but the remaining power would go into my car rather than my home battery (bad).

Describe the solution you'd like I'd like the battery to be part of the charging prioritization. As an optional setting I'd keep the SoC-based prioritization setting of the battery. This would allow the following:

  1. (if there's sufficient PV power) heat pump is triggered
  2. Battery charging until (for instance) 60%
  3. (if battery is 60%+ OR remaining grid export is enough to power EV charger) EV charger is triggered

This would ensure that the heat pump is getting maximum run time in elevated mode and the battery is charged to min X% before the car is being charged.

Describe alternatives you've considered Currently I'm checking the generated power every morning and trigger the heat pump via fast charging...

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

nanoBit93 avatar Mar 20 '26 07:03 nanoBit93

I am wondering if "min+pv" charging is a solution for this problem? If you configure the "heatpump charger" with a target SOC it should get preference over the battery once the battery is over that number.

Target SOC for heatpumps are usually in the 30 degree range (for heating) or (50 for warmwater).

I get this would be a workaround though.

What this request is about is a global priority system (today prios are only within loadpoints)

Priority 1: Heat Pump (always first) Priority 2: Battery (charge to 60%) Priority 3: EV Charger (after battery reaches 60%)

This would require architectural changes to:

Extend the priority system to include batteries as "virtual loadpoints" Modify the optimizer to respect battery position in priority queue Keep existing SoC-based controls as optional fallback

This is a significant feature request that would enhance the existing priority system, not a bug fix.

daniel309 avatar Mar 20 '26 11:03 daniel309

Unfortunately min+PV doesn't work. Min+PV triggers the elevated SG3 mode on the heatpump. This is definitely not something I want to run all day 😃

Tested just now, battery is at 28%, prioritizing battery until 85%.

Min power configured in the heat pump: 3,5A (3 phases) =2.5kW ---> minimum power when the compressor is on (other than that there's a constant ~100W consumption all day even when it's not running for the circulation pumps, etc).

PV production 0.4kW

----> Activating min+PV triggered the SG3 mode immediately instead of waiting for sufficient PV production

EDIT: Ok I've played around with the min power setting for the heatpump... it's a bit tricky because of the constant 100W consumption even when it's technically off. But Min+PV does not trigger immediately when I set the min power to 0,01A. Let's see if it triggers SG3 when there's sufficient sun around noon..

EDIT 2: unfortunately doesn't work... for whatever reason the min + PV mode doesn't wait until the PV production passes the limit set in the heat pump charge point (-3000W), but triggers earlier:

Image Furthermore it's turning it off and on again quite a lot which is the worst one can do to a heat pump

nanoBit93 avatar Mar 21 '26 06:03 nanoBit93

@nanoBit93 The way I solved this is to dynamically set the battery settings with an external script. Based on forecast, I move my start values from sunrise (25,30) to sunset (97,98) slower or faster

michiproep avatar Mar 29 '26 17:03 michiproep

I'd like to see this as well.

Maybe it isn't a bad idea to handle home batteries like cars in the future because with bidirectional charging cars will become home batteries.

My default priority for charging is:

  1. heat pump
  2. home battery
  3. electric car

SnejPro avatar Aug 28 '26 08:08 SnejPro