Skip to content

fix(growatt): skip battery telemetry when no battery is connected - #203

Merged
frahlg merged 3 commits into
srcfl:mainfrom
huangkongsheng:fix/growatt-pv-only-battery-node
Nov 5, 2026
Merged

frahlg merged 3 commits into
srcfl:mainfrom
huangkongsheng:fix/growatt-pv-only-battery-node

Conversation

@huangkongsheng

Copy link
Copy Markdown
Contributor

PV-only Growatt still answers the battery registers with 0, so Overview
rendered a phantom Battery node. Only emit battery telemetry when
voltage/SoC/power indicate a real battery. Fixes srcfl/ftw#1669.

Signed-off-by: huangkongsheng <59566679+huangkongsheng@users.noreply.github.com>

@miravoss26 miravoss26 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skips the battery emit in the Growatt driver when all battery readings are zero, so PV-only installs stop showing a phantom Battery node (srcfl/ftw#1669). Bumps driver and manifest to 2.1.3 and adds three harness tests.

  • Gate is bat_v > 0 or bat_soc > 0 or bat_charge_w > 0 or bat_discharge_w > 0. All four are initialised before use (growatt.lua ~L150-175), so no nil risk.
  • Tests cover PV-only (no emit), hybrid (emit), and a real battery at 0% SoC with voltage present (emit). That last one is the case I'd have worried about, good that it's there.
  • Minor: a hybrid whose battery is fully offline (voltage 0) will now also stop emitting. That seems like the right behaviour, just flagging it.
  • Security screen: no secrets, no new deps, no new network destinations.
  • Note: statusCheckRollup is empty, so I can't see CI. The new tests skip without ./lua55, so worth confirming the pipeline actually ran them.

Safe to merge from my read, once CI is green.

frahlg and others added 2 commits November 5, 2026 14:52
… 2.1.3

The battery gate removes four invented numbers from growatt (20 to 16),
so the ratchet needs its baseline lowered. index.yaml, devices.yaml and
the support status are regenerated for the 2.1.3 manifest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
@frahlg
frahlg force-pushed the fix/growatt-pv-only-battery-node branch from 5c495fe to 36eaac7 Compare November 5, 2026 14:01
@frahlg
frahlg merged commit e07d270 into srcfl:main Nov 5, 2026
5 checks passed
frahlg added a commit to srcfl/ftw that referenced this pull request Nov 5, 2026
#1973)

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>
@huangkongsheng

Copy link
Copy Markdown
Contributor Author

Thanks for merging!

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

3 participants