evcc icon indicating copy to clipboard operation
evcc copied to clipboard

PMCC EEBUS vehicle identifier disappears before loadpoint detects car connection

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

Describe the bug

I use a Porsche Mobile Charger Connect (PMCC) through EEBUS with evcc 0.315.0. The PMCC correctly reports the vehicle EUI-48 identifier, but only briefly and before the evcc loadpoint reports car connected.

Observed timeline: 07:57:40 β€” EEBUS reports cem-evcc-EvConnected 07:57:49 β€” PMCC reports Cayenne identifier F0:7F:0C:28:14:96 07:57:53 β€” PMCC reports an empty identifier 07:58:03 β€” evcc loadpoint reports car connected

Vehicle detection starts after this, but the identifier is already empty, the vehicle therefore remains β€œGuest vehicle”

Relevant trace: 2026/09/03 07:57:49 identificationType: "eui48" identificationValue: "F0:7F:0C:28:14:96" 2026/09/03 07:57:53 identificationType: "eui48" identificationValue: "" 2026/09/03 07:58:03 car connected Vehicle configuration:

vehicles:

  • name: cayenne type: template template: offline title: Cayenne capacity: 25 identifiers:
    • F0:7F:0C:28:14:96

The configured loadpoint interval is 30 seconds.

Expected behavior: evcc should remember the last non-empty EEBUS vehicle identifier until the physical charging session has started, or for a short grace period such as 30–60 seconds. The cached identifier should be cleared immediately on an actual vehicle disconnect.

Actual behavior: The non-empty identifier is lost before the loadpoint’s vehicle-detection cycle reads it, so the configured vehicle cannot be selected.

Suggested solution: Cache a non-empty EEBUS identification value when DataUpdateIdentifications is received. Keep it until physical disconnect or until a short timeout expires. A subsequent empty identification update during the connection handshake should not immediately discard it.

This should allow normal identifier matching without external automation or permanent EEBUS trace logging.

Environment:

evcc version: 0.315.0 Charger: Porsche Mobile Charger Connect Connection: EEBUS Vehicle: Porsche Cayenne E-Hybrid 2025 evcc running in Docker

Steps to reproduce

...

Configuration details

interval: 30s

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

vehicles:
  - name: taycan
    type: template
    template: offline
    title: Taycan
    capacity: 84
    identifiers:
      - F0:7F:0C:28:2D:1C

  - name: cayenne
    type: template
    template: offline
    title: Cayenne
    capacity: 25
    identifiers:
      - F0:7F:0C:28:14:96

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

eebus:
  uri: ":4712"
  # Certificate intentionally omitted

Log details

Relevant EEBUS trace timeline:

2026/09/03 07:57:40
cem-evcc-EvConnected

2026/09/03 07:57:49
identificationListData:
identificationType: "eui48"
identificationValue: "F0:7F:0C:28:14:96"

2026/09/03 07:57:53
identificationListData:
identificationType: "eui48"
identificationValue: ""

2026/09/03 07:58:03
[lp-1] car connected
vehicleDetectionActive: true
connected: true

2026/09/03 07:58:05
vehicleTitle: ""
vehicleName: ""

The complete EEBUS trace is available if required.

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

Docker container

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

v0.315.0

JR550 avatar Sep 03 '26 10:09 JR550

Thanks for the very detailed trace β€” it made the root cause easy to pin down.

Root cause: EEBus.Identify() in charger/eebus-evse.go performs a live read of the SPINE identification state on every call (via cem.EvCC.Identifications) with no caching. identifyVehicle() in core/loadpoint_vehicle.go invokes this once per loadpoint update cycle (interval, 30s in your config). The PMCC only reports the EUI-48 identification briefly during the connection handshake and then re-sends an empty value before evcc's next update cycle runs, so by the time identifyVehicle() reads the identification it is already empty and the vehicle can't be matched β€” exactly matching your timeline.

Fix: cached the last non-empty identification in the EEBus charger, kept until a physical disconnect (EvDisconnected or SHIP-level disconnect) is detected, per your suggested solution. See #33458 (draft).

πŸ€– Generated with Claude Code

github-actions[bot] avatar Sep 03 '26 10:09 github-actions[bot]

Relevant trace:

Please add eebus trace log. Closing until available.

andig avatar Sep 03 '26 11:09 andig

Look at 07:47:49 to 07:58:05. This happens only at the Prosche Cayenne, my Porsche Taycan is okay.

JR550 avatar Sep 03 '26 14:09 JR550

Analysed the attached trace (evcc-20260903-080032-trace.log, 4864 lines) against the code. Findings:

# Finding Evidence
1 The EVSE sends the EUI-48 exactly once, then withdraws it. The whole log contains only three DataUpdateIdentifications events and none after 07:57:53. trace L3149 "" (reply to evcc's read), L3211 F0:7F:0C:28:14:96, L3244 ""
2 Identification is readable for a 4 s window (07:57:49–07:57:53). L3211 / L3244
3 EEBus.Identify() does a live SPINE read with no caching, so the empty notify overwrites the value before evcc looks. charger/eebus-evse.go:523 β†’ c.cem.EvCC.Identifications(evEntity)
4 identifyVehicle() runs once per loadpoint cycle. Cycles here were 07:57:33 β†’ 07:58:03 (interval: 30s), i.e. the window was missed by 10 s. core/loadpoint.go:2350-2352, trace L3012 / L3397
5 Empty result actively clears the stored identifier rather than keeping the previous one. core/loadpoint_vehicle.go:69-75
6 This is not a connected() gating problem. The EV entity reports operatingState: normalOperation at 07:57:40, so Status() would already have returned B from 07:57:41 β€” evcc simply was not polling during the window. trace L3100 (entity [1,1] added), L3141 (deviceDiagnosisStateData)
7 The 10-minute detection window does not help β€” it drives identifyVehicleByStatus() (SoC-based), not a re-read of the identification. core/loadpoint_vehicle.go:20-21, 291-304
8 Taycan vs Cayenne difference is not verifiable from this log β€” no Taycan session is contained in it. Consistent with the Cayenne withdrawing the value while the Taycan keeps it, but unproven. β€”

Root cause: transient identification (4 s) versus periodic polling (30 s), with no caching on either side.

Note that evcc receives the value in real time β€” the cem-evcc-DataUpdateIdentifications event fires at 07:57:49, 14 s before the loadpoint would ever look at it. So the fix is to capture it in the event handler rather than to add a grace timer:

  • cache the last non-empty identification in the EEBus charger, set from UseCaseEvent on DataUpdateIdentifications
  • clear it on EvDisconnected and in Connect(false) β€” both already exist and are exactly where c.ev is reset (charger/eebus-evse.go:145,160)

That is what the draft in #33458 does.

πŸ€– Generated with Claude Code

andig avatar Sep 03 '26 16:09 andig

In short words: the Cayenne retracts the identification. We'll just need to cache it.

andig avatar Sep 03 '26 16:09 andig