Skip to content

fix(drivers): bundle growatt 2.1.3, a PV-only Growatt shows no battery - #1973

Merged
frahlg merged 1 commit into
masterfrom
fix/bundle-growatt-213
Nov 5, 2026
Merged

frahlg merged 1 commit into
masterfrom
fix/bundle-growatt-213

Conversation

@frahlg

@frahlg frahlg commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Problem

A Growatt inverter with no battery (PV only) answers its battery registers with 0, and growatt 2.1.2 emitted a battery on every poll anyway. Overview then drew a second battery at 0 W and 0 % beside the site's real one (#1669). Two sites with a Growatt for PV and a Pixii battery reported it; one ran a local copy of the driver with the battery emit removed.

Change

Move the bundled-driver pin from e463c653 to e07d2703, which carries srcfl/device-drivers#203 (growatt 2.1.3): the driver emits a battery only when its voltage, charge level, charge power or discharge power is above 0. growatt is the only bundled driver that changes across the pin (make driver-versions-across-pin passes); the other two upstream commits add and fix a SAJ driver FTW does not bundle.

The Growatt meter stays. Core counts only the site meter's reading in the power balance (telemetry/forecast.go), so a Growatt meter at 0 W does not change Home use.

Evidence

  • TestGrowattEmitsABatteryOnlyWhenOneAnswers runs the bundled driver through the real Lua host with a fake Modbus device: PV only gives a PV reading of −2 500 W and no battery; a hybrid at 50 % and a battery at 0 % with 52 V both give a battery. With growatt 2.1.2 the PV-only case fails with a battery at 0 W and SoC 0.
  • In device-drivers, make check passes on feat(loadpoint,easee): 1Φ/3Φ auto-switching with per-phase fuse clamp #203 merged with current main (5 089 passed), and its three harness tests fail on the old driver for the PV-only case.
  • On a live PV-only Growatt site (Growatt PV-only installation appears as a battery on Overview #1669), removing the battery emit by hand removed the phantom battery and kept PV and meter readings. 2.1.3 itself has not run on hardware yet; it is in drivers-beta from e07d2703.
  • make verify passes on this machine.

Fixes #1669.

🤖 Generated with Claude Code

srcfl/device-drivers#203 skips the battery emit when every battery
reading is 0, so a PV-only Growatt no longer draws a phantom battery
beside the site's real one (#1669). The pin moves e463c653 to e07d2703;
growatt is the only bundled driver that changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T14:06:12.322608Z becc51d 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 2e9c780 into master Nov 5, 2026
22 of 23 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.

Growatt PV-only installation appears as a battery on Overview

1 participant