Skip to content

EV SoC temporarily falls to an assumed level during session discovery after restart #1235

Closed

Description

@frahlg

A Core restart can temporarily replace a retained EV SoC estimate with an assumed value while the charger reports a connected cable before and after the restart. The charge target survives, but the estimated energy needed changes sharply.

Observed on v3.4.2-beta.4 while creating a consistent pre-update archive. No cable operation or loadpoint configuration change was performed by the update procedure.

Before restart, GET /api/loadpoints reported current_soc about 0.664, soc_source=inferred, soc_retention=session, and about 6.0 kWh delivered in the charger session. After restart and fresh telemetry, it reported current_soc about 0.315, soc_source=assumed, soc_retention=unavailable, and about 9.6 kWh delivered. The same configured charger remained plugged in; capacity and target were unchanged. The counter had increased, not reset. Hardware session identity continuity still needs to be checked.

Inspect startup ordering of connection/session identity and counters, saved-session invalidation, and restoration in go/internal/loadpoint/session_state.go. Do not restore a prior car's SoC without valid identity. Do preserve an existing valid anchor when the same hardware session is proved after initial incomplete telemetry.

Required local regression coverage: restart with the same physical session; delayed session identity; a counter temporarily missing at startup; out-of-order counter telemetry; an actual unplug/replug or changed car; persistence failures; confirmation before durable identity arrives. Verify inferred SoC and the resulting planner energy request, not only stored JSON.

The control observation after restart (zero current and no EV in the planner request) is retained separately for follow-up after the new beta is installed; causality has not been established.

Follow-up after installing v3.5.0-beta.1: the original inferred estimate returned at about 70.68%, with soc_retention=session, without manually restoring the old anchor. Therefore this is not proof that the saved record was destroyed. Investigate the startup transition and readiness handling; distinguish waiting for session proof from actual loss of the record. The owner then supplied a current BMS reading, which was recorded through the normal SoC endpoint.

Activity

  1. changed the title [-]EV SoC falls back to the assumed level after Core restart despite prior session retention[/-] [+]EV SoC temporarily falls to an assumed level during session discovery after restart[/+] on Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions