Skip to content

fix(drivers): bundle sonnen 2.0.4, battery power with the site sign - #2093

Merged
frahlg merged 1 commit into
masterfrom
drivers-pin-sonnen-2-0-4
Nov 28, 2026
Merged

frahlg merged 1 commit into
masterfrom
drivers-pin-sonnen-2-0-4

Conversation

@frahlg

@frahlg frahlg commented Nov 28, 2026

Copy link
Copy Markdown
Member

Moves the driver pin from srcfl/device-drivers 8aeecee3 to 20f9e8e5. Only sonnen changes.

Driver device-drivers PR What changes
sonnen 2.0.4 srcfl/device-drivers#232 sonnen's JSON API v2 reports Pac_total_W positive while the battery discharges. 2.0.3 passed it through, so FTW showed charging as discharging and the reverse. 2.0.4 negates it, so charge is positive as the site convention wants.

Field evidence

From srcfl/device-drivers#232, one sonnenBatterie (software 1.40.5): a time-of-use charge window read Pac_total_W negative in every sample while USOC rose from 17 % to 99 %, and self-consumption hours read it positive while USOC fell. 2.0.4 itself has not run on a box yet.

Checks

  • 20f9e8e5 descends from 8aeecee3 and is device-drivers main. git diff --stat 8aeecee3 20f9e8e5 -- drivers/lua lists only sonnen.lua.
  • scripts/sync-bundled-drivers.sh then --check: ok.
  • make driver-versions-across-pin: ok (44 bundled drivers).
  • go test -count=1 ./internal/drivers/ ./internal/fleetping/: ok.
  • make verify and 981 web tests on master 97c2d34, the base of this branch: ok.

Changeset: patch.

🤖 Generated with Claude Code

Moves the driver pin from srcfl/device-drivers 8aeecee3 to 20f9e8e5.
Only sonnen.lua changes (srcfl/device-drivers#232).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Fredrik Ahlgren <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 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-28T04:56:40.787437Z 1ebf288 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 270963e into master Nov 28, 2026
17 checks passed
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