evcc icon indicating copy to clipboard operation
evcc copied to clipboard

EEBUS / Porsche Mobile Charger Connect ignores limits since 0.316.0 – keeps charging in "off" mode

Open JR550 opened this issue 2 months ago β€’ 3 comments

Describe the bug

Same problem as #34055 (closed without a fix as far as I can see) – please reopen or track here. Reproducible: PMCC acknowledges every limit via EEBUS, but actual current never changes (stuck at 6A before, 16A after a PMCC power cycle), also in mode "off".

Suspected regression between 0.315.0 and 0.316.0, candidates: #33386 (EEBus: wait for use case data before returning the device) #33430 (EEBus: replay use case support to devices registering after discovery) Downgrade to 0.315.0 is not possible due to "'core.Loadpoint' has invalid keys: alwaysCharge" (#32490).

Steps to reproduce

...

Configuration details

network:
  schema: http
  host: 192.168.1.203
  port: 7070

log: info
levels:
  cache: error

interval: 30s   # minstens 30s; korter geeft 'current mismatch'-waarschuwingen

mqtt:
  broker: 192.168.1.203:1883
  topic: evcc

meters:
  - name: grid_shelly_mqtt
    type: custom
    power:
      source: mqtt
      topic: shellies/shellypro3em/status/em:0
      jq: .total_act_power
      # Als import/export omgekeerd is:
      # jq: (.total_act_power * -1)

  # PV via het solaredge-cloud containertje (site-niveau, dus master/slave + 2 accu's)
  - name: pv_solaredge
    type: custom
    power:
      source: http
      uri: http://192.168.1.203:8095/pv
      jq: .power            # Watt, positief = productie

  # Accu via hetzelfde containertje
  - name: battery_solaredge
    type: custom
    power:
      source: http
      uri: http://192.168.1.203:8095/battery
      jq: .power            # Watt, laden = -, ontladen = + (evcc-conventie)
    soc:
      source: http
      uri: http://192.168.1.203:8095/soc
      jq: .soc              # 0-100 %
    capacity: 48            # totale kWh van beide accu's samen β€” pas aan naar je echte capaciteit

circuits:
  - name: main
    title: "Main grid"
    maxPower: 20000
    meter: grid_shelly_mqtt

chargers:
  - type: template
    template: pmcc
    name: wallbox5
    ski: 5586-b61e-5aea-da06-b961-3c0d-1f61-bce3-6a2c-3c26
    ip: 192.168.1.210

vehicles:
  # Taycan: SoC via de laadkabel (EEBUS) β€” betrouwbaar, geen vertraging door
  # slechte ontvangst in de garage. Wordt herkend aan zijn EEBUS-identiteit.
  - name: taycan
    type: template
    template: offline
    title: Taycan
    capacity: 84               # bruikbare kWh β€” pas aan
    identifiers:
      - F0:7F:0C:28:2D:1C      # EEBUS-identiteit; hieraan herkent evcc de Taycan
  # Cayenne: Porsche Connect-login werkt momenteel niet in evcc (status 400 β€”
  # bekende kapotte onofficiΓ«le API). Daarom offline. Sinds 03-09-2026 wordt
  # hij betrouwbaar herkend aan de EEBUS-identiteit die de PMCC tijdens een
  # aangesloten Cayenne-sessie rapporteerde. Er wordt nooit meer op ontbrekende
  # SoC gegokt. Smart %-plan kan offline niet; de scheduler maakt een kWh-plan.
  - name: cayenne
    type: template
    template: offline
    title: Cayenne
    capacity: 25               # kWh accu van de plug-in hybride
    identifiers:
      - F0:7F:0C:28:14:96      # Cayenne, bevestigd in PMCC/EEBUS-log 03-09-2026

loadpoints:
  - title: Garage
    charger: wallbox5
    mode: pv

    # ------------------------------------------------------------------
    # AANGEPAST 03-09-2026 β€” stabiel PV-laden zonder thuisaccu-verbruik
    #
    # De eerdere positieve enable-threshold van 500 W was omgekeerd: EVCC
    # waarschuwde dat daarmee starten mΓ©t netafname was toegestaan. Met -500 W
    # start EVCC pas wanneer, bovenop het minimale laadvermogen, 500 W echte
    # teruglevering beschikbaar blijft. MinCurrent blijft via de EVCC-UI beheerd.
    #
    # De stopvertraging is verkort van 15m naar 1m. Een PMCC/EEBUS wake-up-test
    # op 2 A kan daardoor niet meer een kwartier uit de thuisaccu doorladen.
    # Een actief EVCC-laadplan kan nog steeds 's nachts laden om 07:00 te halen.
    # ------------------------------------------------------------------
    enable:
      threshold: -500
      delay: 2m

    disable:
      threshold: 500
      delay: 1m

    circuit: main
    # vehicle: taycan  bewust uitgecommentarieerd moet blijven: zo kan EVCC de
    # Taycan via de identifier herkennen en blokkeert een vaste voertuigkeuze die
    # herkenning niet

site:
  title: Eekhoornlaan
  meters:
    grid: grid_shelly_mqtt
    pv: pv_solaredge
    battery: battery_solaredge

# Dynamisch tarief: Belgische day-ahead prijs (Energy-Charts, zelfde bron als de app-grafiek).
# Hiermee kan evcc in de goedkoopste uren laden om het laadplan te halen.
# Lukt 'energy-charts-api' niet, dan is het alternatief: template: entsoe, domain: "BZN|BE"
# (gratis ENTSO-E-token nodig).
tariffs:
  currency: EUR
  grid:
    # Custom tarief dat onze eigen prijs-bridge leest (poort 8095, /tariff).
    # Die levert de Energy-Charts-prijzen al kant-en-klaar in evcc's formaat,
    # dus evcc hoeft niets om te zetten. Omzeilt de haperende template.
    type: custom
    forecast:
      source: http
      uri: http://192.168.1.203:8095/tariff

# ----------------------------------------------------------------------
# SMART COST LIMIT ("laden bij goedkoop tarief") β€” gekozen: <= 0,10 EUR/kWh
# Dit kan NIET in deze yaml: het is geen loadpoint-parameter, evcc bewaart
# het in zijn eigen database (blijft dus staan na herstart).
# Eenmalig instellen, ofwel via de UI (laadpunt-instellingen), ofwel met:
#   curl -X POST http://192.168.1.203:7070/api/loadpoints/1/smartcostlimit/0.10
# Verwijderen kan met:
#   curl -X DELETE http://192.168.1.203:7070/api/loadpoints/1/smartcostlimit
# Effect: zakt de prijs onder 10 ct/kWh, dan laadt evcc vol vermogen β€”
# ook in minpv-modus, ook zonder zon (winter).
# ----------------------------------------------------------------------

eebus:
  uri: ":4712"
  certificate:
    private: |
      -----BEGIN EC PRIVATE KEY-----
      MHcCAQEEICZaM8t6Ok1R6K+kZp+/2oe3OSK2kVtcE2dKfnwO2oQmoAoGCCqGSM49
      AwEHoUQDQgAEpS2iXSiLHQrr7JfYmVbaZtQJfwZz/y3pHsXAK0Dwx6DlpPeJGTLt
      n9gHgikvqGc7by4niSvg3IDKSfjBcBkmfQ==
      -----END EC PRIVATE KEY-----
    public: |
      -----BEGIN CERTIFICATE-----
      MIIBvTCCAWOgAwIBAgIRAZA+1t5fhzfq2XnqR3HT/EAwCgYIKoZIzj0EAwIwPjEL
      MAkGA1UEBhMCREUxDTALBgNVBAoTBEVWQ0MxCTAHBgNVBAsTADEVMBMGA1UEAwwM
      RVZDQ19IRU1TXzAxMB4XDTI1MTIxMTIxMDEzNVoXDTM1MTIwOTIxMDEzNVowPjEL
      MAkGA1UEBhMCREUxDTALBgNVBAoTBEVWQ0MxCTAHBgNVBAsTADEVMBMGA1UEAwwM
      RVZDQ19IRU1TXzAxMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEpS2iXSiLHQrr
      7JfYmVbaZtQJfwZz/y3pHsXAK0Dwx6DlpPeJGTLtn9gHgikvqGc7by4niSvg3IDK
      SfjBcBkmfaNCMEAwDgYDVR0PAQH/BAQDAgeAMA8GA1UdEwEB/wQFMAMBAf8wHQYD
      VR0OBBYEFJwWi4rHvxYmzUzYwEhLAEe9Wk12MAoGCCqGSM49BAMCA0gAMEUCIQDu
      SWYrtrxgK/V5Fwuuj9zvg1tys7Gae25S0N+qnZaSiwIgWXjkqXysvynzI7wNu2Lx
      KuuXN0qymYkmlMbtg6YRN2s=
      -----END CERTIFICATE-----

Log details

**Log excerpt**
[lp-1] DEBUG 08:37:15 charge power: 10760W
[lp-1] DEBUG 08:37:15 charge currents: [15.6 15.7 15.2]A
[lp-1] WARN  08:37:15 charger out of sync: expected disabled, got enabled
[lp-1] DEBUG 08:37:15 charger enable
[eebus] DEBUG 08:37:15 Evnt: ... cem-opev-DataUpdateLimit
[eebus] DEBUG 08:37:15 Evnt: ... cem-oscev-DataUpdateLimit
[lp-1] DEBUG 08:37:15 charger disable
[eebus] DEBUG 08:37:15 Evnt: ... cem-opev-DataUpdateLimit
[eebus] DEBUG 08:37:15 Evnt: ... cem-oscev-DataUpdateLimit
(charging continues at ~16A)

Full debug + trace logs attached.

What type of operating system or environment does evcc run on?

Linux

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

No response

JR550 avatar Sep 25 '26 13:09 JR550

Thanks for the report. This looks like the same underlying regression already being investigated in #34004 (closed as completed, but the discussion there is still actively ongoing with fresh trace logs as of today) and reported similarly in #34055. All reports describe a Porsche Mobile Charger Connect (PMCC/EEBus) that keeps charging at a fixed current regardless of the limit evcc writes, including in off mode.

I looked at the two PRs you named as candidates:

  • #33386 ("wait for use case data before returning the device") only touches charger/eebus-ohpcf.go, meter/eebus.go and the new Connector.WaitUseCase/UseCase methods β€” the existing Connector.Wait/Connect path used by the EVSE charger (charger/eebus-evse.go) is unchanged.
  • #33430 ("replay use case support to devices registering after discovery") only replays use-case events to a second device registration for an already-connected ski (e.g. the config UI's live device test) β€” it doesn't run on the normal startup path a configured PMCC charger takes.

So I can't confirm either as the cause from the code alone, and charger/eebus-evse.go itself wasn't touched between 0.315.0 and 0.316.0, which is why I'm not naming a culprit here.

The log excerpt in the report only shows [lp-1]/[eebus] debug lines around the enable/disable calls, not the actual EEBus/SPINE limit-write and acknowledgement frames. To make progress here we'd need, like in #34004:

  • a full trace-level log (eebus and lp-*/the relevant loadpoint logger) starting from evcc startup, through connection, a limit write, and the EVSE's response
  • confirmation of the exact evcc version/build (the report only says "latest nightly")

Given the overlap with #34004, it may be worth continuing the detailed trace analysis there to avoid splitting the investigation, and linking back here once resolved.

πŸ€– Generated with Claude Code

github-actions[bot] avatar Sep 25 '26 13:09 github-actions[bot]

Full trace log attached (evcc 0.316.0, from startup incl. connection, car connect, fast -> off at 15:37:14). PMCC + Taycan.

What the SPINE frames show on every disable (15:37:14, 15:38:37, 15:40:07):

  1. write loadControlLimitListData: OPEV ids 1/3/5 active 0.1A, OSCEV ids 2/4/6 active 16A -> result OK
  2. write loadControlLimitListData (no partial filter, full list): OPEV ids 1/3/5 isLimitActive=false value 0, OSCEV ids 2/4/6 inactive 0.1A -> result OK
  3. PMCC notify afterwards: ALL limits inactive -> EVSE charges at max (~16A).

Same on enable (15:35:07): each write replaces the full list, so the OSCEV write deactivates the OPEV limit that was just written, and vice versa. The final state is always whatever the second (OSCEV) write contained.

charger/eebus-evse.go is unchanged 0.315.0 -> 0.316.0, but go.mod bumps the spine-go / eebus-go / ship-go forks (spine-go f9a8d8e -> 3757d61 includes several partial-update / write-handling changes), which might explain a behaviour change without touching the charger code.

evcc-20260925-154013-trace.log

JR550 avatar Sep 25 '26 13:09 JR550

Thanks for the detailed SPINE-frame breakdown and the trace log β€” that's exactly the kind of evidence needed here.

I checked the two module bumps you named as candidates:

  • charger/eebus-evse.go (the file that calls OpEV.WriteLoadControlLimits / OscEV.WriteLoadControlLimits in writeCurrentLimitData/writeOscevLimits) is unchanged between 0.315.0 and 0.316.0.
  • The vendored eebus-go/spine-go rollup was bumped once in that range, in #33340 (spine-go f9a8d8eβ†’3757d61, eebus-go e735091fβ†’7e1f121e). Looking at the individual upstream commits in that bump, none of them touch the OPEV/OSCEV write path: usecases/cem/opev and usecases/cem/oscev (including the shared internal.WriteLoadControlPhaseLimits helper that both writeCurrentLimitData and writeOscevLimits go through) are untouched by the bump. The actual changes are in LPC/LPP consumption/production-limit reads (Don't require a value for inactive load control limits), smartEnergyManagementPsData partial-update merging for OHPCF heat pumps, a useCaseAvailable client-side fix, and SHIP double-connection/deadline handling β€” none of which sit in the code path that writes OPEV/OSCEV limits to a PMCC.

So I can't confirm #33340 (or any other single PR) as the cause from the code alone, even though it's the only change touching the EEBus stack in the regression window and a downgrade to 0.315.2 is reported to fix it.

Your frame analysis (limit write 1 for OPEV ids 1/3/5, limit write 2 for OSCEV ids 2/4/6, then the PMCC reporting all limits inactive) points at the interaction between the two sequential WriteLoadControlLimits calls and how the PMCC merges/replaces its limit list across use cases β€” that's a good lead, but pinning down whether it's an evcc/library regression or a PMCC-firmware behavior change needs someone to step through the SPINE write command's filter/partial semantics.

This is the same underlying issue as #34004, where a maintainer is already going through fresh trace logs uploaded today. To avoid splitting the investigation, please attach your evcc-20260925-154013-trace.log there as well (or continue the analysis in that thread) β€” the trace and per-limit breakdown you've done here is valuable and will help pin the exact commit down.

πŸ€– Generated with Claude Code

github-actions[bot] avatar Sep 25 '26 13:09 github-actions[bot]