Skip to content

fix(easee_cloud): declare the coarse session counter (1.4.1) - #214

Merged
frahlg merged 1 commit into
mainfrom
fix/easee-session-counter-coarse
Nov 8, 2026
Merged

frahlg merged 1 commit into
mainfrom
fix/easee-session-counter-coarse

Conversation

@frahlg

@frahlg frahlg commented Nov 8, 2026

Copy link
Copy Markdown
Member

Problem

On 8 November 2026 an Easee charger delivered 24.3 kWh to the owner's car. FTW's energy record kept 10 of them.

Easee moves session energy in steps of about 1 kWh, in its own time. session_wh is cumulative, so FTW's ledger uses it as a counter and judges each step against the time since the previous reading. With the SignalR stream the readings come seconds apart, so a step lands as an impossible power and the ledger rejects it (invalid, counter_jump).

Change

easee_cloud 1.4.1 emits session_wh_coarse = true. session_wh itself stays: it is right for what a session delivered, and the car's level and notices read it. FTW's energy record uses measured power for this charger (paired Core PR).

Open PRs that also touch this driver (#200, #183, #194, #189, #172, #159) will need a version bump past 1.4.1.

Evidence

Measured power against Easee's own session total on the owner's box:

Charge Easee Power integrated
25 Oct 6.6 kWh 6.59 kWh
31 Oct 31.7 kWh 31.68 kWh
8 Nov 24.3 kWh 24.27 kWh
  • make test-driver ID=easee_cloud: 42 passed, 15 skipped, including a new test that the field is declared and session_wh stays.
  • make check passes.

Not run on hardware: the change only adds a field.

🤖 Generated with Claude Code

Easee moves session energy in steps of about 1 kWh. FTW's energy record
judged each step against the time since the last reading, and rejected
those that landed moments later. On one home box it kept 10 of 24.3 kWh.

The driver now says so with session_wh_coarse. Measured power came within
0.1 % of Easee's own total on three charges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T13:32:05.597278Z 87b8bb9 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@frahlg
frahlg merged commit 1e4b5de into main Nov 8, 2026
5 checks passed
@frahlg
frahlg deleted the fix/easee-session-counter-coarse branch November 8, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant