evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Add configurable startup power boost / preheating duration for DC charging⁠

Open namorg89 opened this issue 3 months ago • 2 comments

Problem Description

When initiating a DC charging session with low target power (e.g., in PV surplus mode on a cloudy day), certain EVs—such as the VW ID.4—abort the charging session.

This happens because the vehicle's thermal management system initially demands around 6 kW to heat the battery pack to operating temperature. If the charger or loadpoint throttles power below this requirement during startup, the car drops the session. Once the battery reaches temperature (typically after ~15–20 minutes), the vehicle comfortably continues charging at lower loads without issue.

Current Workaround

I currently have to manually start charging at 7 kW for 20 minutes to heat the battery before switching the loadpoint over to PV surplus mode.

Proposed Solution

Add a configurable initial power boost or preheating parameter for loadpoints/DC chargers in evcc.yaml.

Suggested parameters:

  • startupMinPower: Enforces a minimum power floor during session start (e.g., 6.5kW).
  • startupDuration: Defines how long the startup power floor remains active before transferring control back to standard surplus logic (e.g., 20m).

This would allow DC chargers (such as the 25 kW Sigenergy EVDC) to reliably initiate sessions on cold batteries without dropping out during low PV yield.

Context / Environment

  • Charger: Sigenergy EVDC (25 kW DC)
  • Vehicle: VW ID.4 2023

namorg89 avatar Aug 28 '26 18:08 namorg89

Thanks for the detailed report and proposal. This looks like a genuine enhancement request rather than a bug: today evcc doesn't have a startup power/current floor with a time-limited "warm-up" window for PV/Min+PV mode.

For context, the closest existing mechanism is Min+PV mode, which enforces minCurrent (an amperage floor) for as long as the vehicle is charging — but it has no separate "startup only, then hand back to surplus logic" behavior, and it's expressed in current (A), not power (kW), which matters for DC chargers that are controlled via a power setpoint rather than current. So the two proposed parameters (startupMinPower, startupDuration) would be new functionality, not a config tweak.

This would need design discussion (e.g. how it interacts with Min+PV/battery boost, how it's exposed for power- vs. current-controlled chargers, whether it belongs on the loadpoint or the charger config) before implementation, so I'm not attempting a fix here.

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 28 '26 18:08 github-actions[bot]

Thanks for the feedback! That makes total sense—handling this centrally at the loadpoint level is much cleaner than adding custom logic inside individual charger plugins.

Here is a technical proposal for how startupMinPower and startupDuration could be integrated into evcc:

1. Configuration Additions (core / api)

Add two optional fields to the Loadpoint configuration schema:

  • startupMinPower: Power floor in Watts (e.g., 6000 for 6 kW) enforced during initial charging.
  • startupDuration: Duration for the warm-up window (e.g., 20m), defaulting to 0 (disabled).

2. State Management (core/loadpoint.go)

  • Add an internal timestamp field to the Loadpoint struct: startupUntil time.Time.
  • When the state machine transitions to charging (StateC), initialize the timer: lp.startupUntil = time.Now().Add(lp.StartupDuration)
  • Reset startupUntil whenever charging stops or the vehicle disconnects.

3. Surplus Power Calculation (pv / loadpoint.go)

  • Inside the loadpoint power distribution loop (where target charging power is calculated for PV / Min+PV modes):
    • Check if time.Now().Before(lp.startupUntil).
    • If active, enforce lp.StartupMinPower as the floor: targetPower = max(calculatedSurplusPower, lp.StartupMinPower)
  • Once startupUntil elapses, the loadpoint seamlessly falls back to standard surplus control.

4. DC Charger Integration

Because DC chargers (like the Sigenergy EVDC 25 kW) are regulated by target power (kW) rather than AC phase current (Amps), applying this floor at the loadpoint target power calculation level provides native compatibility without needing AC phase-to-current conversions.

(🤖 Proposal drafted with AI assistance)

namorg89 avatar Aug 28 '26 18:08 namorg89