Skip to content

fix(drivers): bundle the FoxESS driver that reports grid state (device-drivers#285) - #2138

Merged
frahlg merged 1 commit into
masterfrom
fix/bundle-grid-state-drivers
Nov 29, 2026
Merged

frahlg merged 1 commit into
masterfrom
fix/bundle-grid-state-drivers

Conversation

@frahlg

@frahlg frahlg commented Nov 29, 2026

Copy link
Copy Markdown
Member

Moves the bundled drivers' pin to srcfl/device-drivers eeee2c48, so a FoxESS site reports its grid state (#2125). #2132 reads it into the site's grid_state.

What changes

  • Of the 44 bundled drivers, only foxess_h3_smart changes, to 0.11.0. The device-drivers compare 77cfcda5...eeee2c48 touches drivers/lua/foxess_h3_smart.lua and drivers/lua/konja-261-svk.lua, and Konja is not bundled.
  • foxess_h3_smart emits grid_state on its inverter stream from Status 3 bit 0 (39066), and writes the raw words to history as foxess_status3_hi and _lo.
  • The status block is already read, so there are no new Modbus reads, no writes and no change to any control path.
  • Grid state is not yet verified through a real grid cut on a 1K5. Until it is, the site only shows the state. The off-grid behaviour in feat(control): off the grid, hand the house to the inverter #2133 stays a draft until that grid cut.

Evidence

  • scripts/sync-bundled-drivers.sh fetched the 44 drivers at the new pin, and --check passes.
  • go test ./internal/drivers/... passes; it runs the Lua syntax and contract checks.

🤖 Generated with Claude Code

…e-drivers#285)

Moves the pin to srcfl/device-drivers eeee2c48. Of the bundled drivers
only foxess_h3_smart changes: 0.11.0 reports grid_state on its inverter
stream from Status 3 bit 0 (39066), which #2132 reads into the site's
grid state. konja-261-svk 0.5.0 does the same but is not bundled.

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 29, 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-29T16:49:19.123140Z b7fbc14 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 22d5788 into master Nov 29, 2026
16 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