feat(easee): verify active session identity for saved battery levels - #108
Conversation
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f92e705016
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f92e705. Configure here.
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>



Core needs a charger session identity before it can restore a saved battery level after restart. Easee observation 129 describes a previous completed session, and observation 223 can remain after charging ends while the cable stays connected. Neither alone proves that a paused car is the same car.
Easee Cloud 1.3.0 emits session_id only after measured charging and the ongoing-session API confirm the same observation-223 ID and start with no session end. The driver keeps that proof through ordinary pauses in the same process. Disconnect, completion or a changed session revoke it. A fresh process cannot identify a paused or completed car automatically. After completion an offline car may need its battery level confirmed again.
The extra API call is limited to ten attempts per hour, at least one minute apart after failure. A verified active session needs no repeated lookup. JSON values that are not session objects no longer stop fresh power telemetry. Equivalent UTC timestamps match with either +00:00 or Z and optional zero fractional seconds.
Validation:
This head addresses the two Codex review findings and the Bugbot timestamp finding on f92e705. Core srcfl/ftw#1074 pins the updated driver; the paired client is srcfl/ftw-webapp#63. No release has been published.