Feature request — per-mode polling interval for Load Management (circuits)
Is your feature request related to a problem? Please describe. I'm using evcc with a SolaX Inverter Modbus integration and a go-e Gemini wallbox, with Load Management (circuits) configured to protect a 20A/13.8kW breaker inside my house (separate from the 25A grid connection breaker). The circuit uses the grid meter (import/export) as reference.
The polling/control interval (currently set to 20s) has to be a compromise between two very different scenarios:
- Solar-only charging mode: grid import/export changes slowly and smoothly (e.g. clouds passing), so a longer interval (30s) would be sufficient.
- Fast / Min+Solar charging mode (drawing from grid): load can spike very quickly (e.g. oven, heat pump, or other appliances switching on simultaneously with EV charging), and a fast reaction time (10s) is needed to avoid tripping the breaker before the circuit management can reduce charging current.
Describe the solution you'd like Allow a configurable/dynamic polling interval for circuits depending on the active charging mode of the associated loadpoint. For example, a faster interval automatically applied when mode is "now" (fast) or "minpv", and a slower interval when mode is "pv" (solar-only).
Describe alternatives you've considered Using a single fixed interval as a compromise, but this either slows down reaction to grid load spikes or causes unnecessary Modbus polling during solar-only charging.
Additional context This would let users balance safety (fast reaction when grid load is involved) against efficiency (fewer Modbus reads when only solar surplus is being managed).
Thanks for the detailed write-up. Confirmed how this works today: circuit power/current updates (site.circuit.Update(...)) are driven by the single global site control loop interval (core/site.go Site.Run), not by a per-circuit or per-mode polling interval. There is currently no mechanism to vary the update rate based on the loadpoint's active charging mode (pv/minpv/now) — all circuits and loadpoints are updated on the same fixed tick.
Implementing a dynamic, mode-dependent interval would require rethinking the main control loop (which currently assumes one fixed tick for the whole site, including loadpoint control, circuit limits, etc.), so this isn't a small config change — it's a design question for the maintainers on whether/how to support variable-rate control loops.
🤖 Generated with Claude Code
and a fast reaction time (10s) is needed to avoid tripping the breaker before the circuit management can reduce charging current.
Circuit breakers are way slower than that.
We're working on splitting updates from reading, so this is on the roadmap!
Hi evcc team,
I’d like to follow up on the planned separation of meter readings and control updates discussed in this issue.
I’m using evcc 0.319.0 with:
- 3×50 A grid connection
- KOSTAL KSEM via Modbus TCP
- go-e Gemini wallbox / VW ID.3
- Daikin Altherma heat pump via SG Ready
- Circuit load management with a 45 A limit
Measurements and observations
The KSEM provides updated per-phase currents at 1-second intervals with approximately 2–3 ms Modbus response times.
At a global evcc interval of 15 seconds, I observed roughly 10–15 seconds before the wallbox reduced charging current following additional household load.
I also tested a global interval of 5 seconds. This produced a startup warning:
charger logic error: current mismatch (got 15.6A measured, expected 6A) - make sure your interval is at least 30s
This suggests that simply shortening the global interval may interfere with charger feedback timing. So far, the warning has not repeated, but longer-term stability is not yet verified.
Architecture and possible implementation
As discussed in this issue, circuit updates are currently tied to the global site control loop (Site.Run() / site.circuit.Update()).
Rather than accelerating the entire control loop, could circuit load management use an independent, faster measurement and evaluation mechanism?
My suggested behavior would be:
- Read relevant phase currents every 1–2 seconds.
- Immediately reduce the allowed charging current when a circuit limit is exceeded.
- Maintain the reduced limit until the circuit has remained safely below the threshold for a configurable period, e.g. 30 seconds.
- Gradually restore charging current after that period.
- Ensure circuit limits always take priority over PV optimization and normal charging decisions.
An interesting implementation approach might be to reuse the existing current-validation and charging-limit mechanisms instead of introducing a second independent controller.
The fast mechanism could update a shared circuit current ceiling, while the regular charging controller remains responsible for executing the resulting limits.
This would require careful coordination to avoid competing control loops, stale measurements, or premature restoration of charging current.
Questions
Has the planned separation of measurement and control progressed since July?
Could the existing circuit-limit logic support this asymmetric behavior (fast reduction, delayed recovery)?
Is there an experimental branch or preferred architectural approach?
I’d be happy to contribute real-world measurements, logs, regression testing and feedback. I would also be interested in testing proposed patches or helping implement a solution following the maintainers’ guidance.
Thanks for your work on evcc!