Support Kathrein Wallbox Fallback Timeout
Is your feature request related to a problem? Please describe. The Kathrein Wallboxes (e.g. https://docs.evcc.io/de/chargers/kathrein-kwb-ac35/) have the possibility to configure a fallback timeout for the EMS control via Modbus. If the Wallbox detects a timeout from the EMS (e.g. evcc), it switches back to a fallback configuration for the current set point and phases configuration. This feature can be configured over the Modbus registers 0x00A3, 0x00A4 and 0x00A5.
This feature makes sense in case the EMS breaks down to keep the Wallbox operational. (Increases the family acceptance factor.)
The problem: this requires the EMS to periodically (re)send the current set point, so that the Wallbox knows the EMS is still present.
Describe the solution you'd like evcc shall periodically send the current set point to the Wallbox (including "0A" as "charging pause"), so the Wallbox knows that evcc is still present. Optionally evcc should provide the ability to configure the fallback configuration via UI (as it is currently not configurable over the Wallboxes Webinterface).
Describe alternatives you've considered As an alternative, this timeout fallback feature of the Wallbox cannot be used.
Additional context I "accidentally" tested the current behavior of the fallback configuration of the Kathrein Wallbox today. It resulted in a toggling charging behavior where the Wallbox started charging after the configured 10min timeout period. As soon as evcc noticed the active charging, it immediately stopped it again by sending the current set point with 0A.
Thanks for the detailed request. Analysis of the current code:
charger/kathrein.gonever touches the EMS timeout registers (0x00A3to0x00A5). The timeout is only active because it was configured outside evcc.- evcc writes the set point (
0x00A2) only when the enable state or current changes (Enable,MaxCurrentMillis). There is no periodic refresh, so the wallbox timer expires while the set point stays unchanged, and it then falls back to its fallback current. That explains the toggling you observed. - Other Modbus chargers solve this with a heartbeat goroutine that periodically rewrites the last set point (0 A when disabled), e.g.
heartbeatincharger/alfen.go. The same approach is feasible for Kathrein, optionally with a configurable timeout that evcc writes to0x00A3.
This is a feature request rather than a bug. Whether to also expose the fallback pattern/current in the UI is a design question for the maintainers.
🤖 Generated with Claude Code
Thanks Claude for the summary. I would kindly request to implement the heartbeat feature as like the mentioned alfen.
The second request for implementing the fallback configuration in the Wallbox configuration UI of evcc is really optional, as this is probably not a job for evcc. It should be configurable in the Wallbox Webinterface (which I will request @Kathrein). But at least I can configure it myself manually.
Ok against my last comment, setting the fallback configuration may be a job for evcc.
The response from Kathrein about this specific subject, why they didn't integrate it in their UI:
Die Konfiguration des Timeout-Verhaltens über Modbus ist bewusst so vorgesehen. Bei einem zentralen Energiemanagementsystem (EMS), an dem beispielsweise 100 Wallboxen angeschlossen sind, kennt nur das EMS die insgesamt verfügbare Leistung und kann entscheiden, wie sich die einzelnen Wallboxen bei einem Kommunikationsausfall verhalten sollen. Würde das Timeout-Verhalten an jeder Wallbox individuell über das Webinterface konfiguriert, könnten Einstellungen vorgenommen werden, die nicht zum Lastmanagementkonzept des EMS passen. Daher sehen wir die Konfiguration dieser Parameter in der Verantwortung des EMS. Die Wallbox selbst überwacht anschließend eigenständig den Empfang der Sollwerte und reagiert bei einem Timeout entsprechend der hinterlegten Konfiguration.
Daher sehen wir die Konfiguration dieser Parameter in der Verantwortung des EMS
Das mag sein, dass Kathrein das so sieht. Jede andere uns bekannte Wallbox handhabt das anders. evcc kann einen Timeout gerne bedienen, setzen werden wir ihn aber sicher nicht.
setzen werden wir ihn aber sicher nicht
Davon bin ich schon ausgegangen. 😉 Daher hab ich das initial auch direkt als "optional" bezeichnet.
Heartbeat reicht mir persönlich auch, die config in der Wallbox kann ich auch selbst machen. Hatte nur den Gedanken, dass dieses sinnvolle Feature leider so versteckt ist, dass es kaum zu finden ist. Will Kathrein aber wohl nicht anders. 🤷♂️
Danke euch jedenfalls schon mal!