evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Epic: §14a support for batteries and heatpumps

Open andig opened this issue 1 year ago • 15 comments

Currently, support for home batteries and heatpumps is incomplete:

  • home battery: forced charging is not locked against §14a active
  • heatpumps: dimm mode is not utilized during §14a active

To improve this, we need to make the following changes:

  1. Prevent or disable fast battery charging when load mangement is active (load management power limits only). This is either unconditionally (if we don't know the battery's charge power) or conditionally (if a battery's charge power would exceed the circuit's limit).
  2. Dimm heatpumps if §14a is active. A dependency of dimming on circuit being overloaded is not possible, since un-dimming cannot rely on expected heatpump power. This would lead to fluctuating demand and potentially violate §14a restrictions.

TODO

  • [x] prevent and disable fast battery charging when load management is active https://github.com/evcc-io/evcc/pull/23920
  • [x] add heatpump dimm api and dimm if §14a restriction (but not load management) is active https://github.com/evcc-io/evcc/pull/23925
  • [x] add §14a load management indicator https://github.com/evcc-io/evcc/pull/23927

Out of scope

  • [ ] add overloaded api https://github.com/evcc-io/evcc/pull/23905

andig avatar Sep 28 '25 11:09 andig

How about passing EEBUS LPC on to devices?

CiNcH83 avatar Sep 28 '25 18:09 CiNcH83

For what purpose?

andig avatar Sep 28 '25 18:09 andig

Dimming devices like the Vaillant aroTHERM, see here.

CiNcH83 avatar Sep 28 '25 18:09 CiNcH83

Bitte eigenes Issue dazu. Mir ist nicht klar, wie die evcc Schnittstelle dazu überhaupt aussieht.

andig avatar Sep 28 '25 18:09 andig

See #23930

CiNcH83 avatar Sep 28 '25 19:09 CiNcH83

home battery: forced charging is not locked against §14a active

Wenn ich das recht verstehe, wird das Grid Charging aktuell deaktiviert, wenn die Leistungsreduzierung aktiv ist. Ich habe mal in die Huawei Doku geschaut. Da wäre es auch möglich, die Speicher-Netz-Ladeleistung via Modbus zu dimmen:

Register Datatype Unit Description
47242 UINT32 W Max. power of charge from grid (Closed-loop controller=Inverter)
47590 UINT32 W Max. power of charge from grid (Closed-loop controller=SDongle)

CiNcH83 avatar Oct 12 '25 18:10 CiNcH83

So wie es aussieht, kann man aktuell Batterien auch nicht dem lpc Circuit zuweisen? D.h. alle Batterien werden aktuell auf Hold gesetzt, wenn ein Maximum gesetzt ist, auch wenn sie gar nicht unter den § 14a EnWG fallen?

CiNcH83 avatar Oct 13 '25 17:10 CiNcH83

So wie es aussieht, kann man aktuell Batterien auch nicht dem lpc Circuit zuweisen? D.h. alle Batterien werden aktuell auf Hold gesetzt, wenn ein Maximum gesetzt ist, auch wenn sie gar nicht unter den § 14a EnWG fallen?

Ich denke du wirst das HEMS nur konfigurieren wenn du deine SteuVE angemeldet hast. Und dann meldest du auch den Akku an falls du einen hast, oder? Daher denke ich passt es schon das, bei konfiguriertem HEMS (LPC wird oberster circuit), auch immer der Akku gedimmt wird.

daniel309 avatar Oct 15 '25 09:10 daniel309

Meine Batterie macht nur 2,5 kW Ladeleistung. Die würde dann sinnlos gedimmt, obwohl sie nicht unter den § 14a fällt.

CiNcH83 avatar Oct 15 '25 09:10 CiNcH83

#23920 follow-up...

I think we need a dimmed state for the battery.

I don't think so, but we should not have this discussion here.

According to this documentation, Hold is more of a discharge lock. So why Hold is set in the dimmed case is beyond me. Or am I actually misunderstanding something? In fact the opposite direction (charge) has to be locked in the § 14a case, no?

CiNcH83 avatar Oct 15 '25 11:10 CiNcH83

Ah. I think I understand now. Battery is only put on Hold if the current mode is Charge AND LPC is set. Otherwise mode is Normal which locks only grid charging.

But I think it still makes sense to exclude batteries which do not fall under the § 14a.

Also some batteries can indeed be dimmed with regards to grid charging instead of being block altogether.

CiNcH83 avatar Oct 17 '25 11:10 CiNcH83

I see, thanks for digging deeper.

To me, the implementation as it is right now is very good and I think this Epic can be closed. It fully covers the EnWG 14a responsibilities you have as the owner of SteuVE's. And it does so with very little drawbacks. So far, I only see two (special) cases not supported:

  1. Batteries with less than 4.2kW charge power cannot be excluded from being blocked to charge from grid when "Dim" signal is active
  2. Batteries that allow fine-grained grid charge control (like chargers themselves) are hard blocked instead of being dimmed properly.

I am perfectly fine with those limitations, especially as this is the first version of EVCC fully supporting EnWG 14a for all devices that implement the charger: type: sgready api, of which there are many devices outside car chargers (batteries, heatpumps, heaters, ...).

Keep in mind grid dimming is limited to very few hours per day and few times per month. Exact details are subject to each grid operator's conditions.

Maybe open the missing special cases as separate issues to keep track?

daniel309 avatar Oct 17 '25 12:10 daniel309

Was mir noch aufgefallen ist, dass man für Huawei über forceaccharging den § 14a lahmlegt. Ohne diesen Parameter kann die Batterie allerdings nicht über einen kaskadierten WR per AC geladen werden. Bin mir nicht sicher, ob man tatsächlich um ein explizites dim herumkommt.

CiNcH83 avatar Oct 26 '25 11:10 CiNcH83

Was mir noch aufgefallen ist, dass man für Huawei über forceaccharging den § 14a lahmlegt.

Gemäß diesem Beitrag wird es wohl einen Parameter geben, der einen meter als dimmbar deklariert. Damit kann man sich mit dem forceaccharging den § 14a nicht mehr verbauen.

          {{- if or (eq .forceaccharging "false") (.maxdimmedpower) }}
          - source: const
            value: 0 # Disable
            set:
              source: modbus
              {{- include "modbus" . | indent 12 }}
              register:
                address: 47087 # Charge from grid
                type: writesingle
                encoding: uint16
          {{- end }}

Dafür kann man da dann per kaskadiertem WR nicht mehr von AC-Seite laden, bzw. nur über den Modus charge.

CiNcH83 avatar Oct 26 '25 21:10 CiNcH83

Closing as completed according to scope defined above in favor of https://github.com/evcc-io/evcc/issues/24976.

andig avatar Nov 02 '25 15:11 andig