Skip to content

An owner-entered car SoC is lost when the charger socket reconnects #1928

Open

Description

@frahlg

Follow-up from #1788, which #1848 settled: a socket drop or a missing hardware identity no longer ends Charge now.

One part was left open there. observeConnectionProof (go/internal/loadpoint/session_state.go, about lines 332–344 on master 83c2b24) still clears the SoC the owner entered when the socket reconnects. A target such as "Charge now to 80 %" then counts from PluginSoC instead of the value the owner typed.

Expected: a reconnect of the same charger and session keeps the owner-entered SoC. It is cleared only on unplug, another serial, a new session ID or a loadpoint config change, the same rules #1848 uses for the hold.

Test: the #1848 reconnect shape with an owner-entered SoC of 40 % and a target of 80 %; after the reconnect the session still reports 40 % as its start.

Not needed for stable.

🤖 Generated with Claude Code

Activity

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