Skip to content

growatt: battery power sign is reversed (1009/1011 swapped) #263

Open

Description

@frahlg

While adding battery temperatures in #262, the growatt driver turned out to read registers 1009 and 1011 the wrong way round, so battery.w has the wrong sign: charging shows as discharging and the reverse.

Our sign convention is battery charge positive (docs/WRITING-A-DRIVER.md, "Sign convention"). The driver is read_only, so no command goes the wrong way, but the site balance, history and planning input are wrong for every Growatt battery.

Needed: confirm against Growatt's Modbus document which of 1009/1011 is charge and which is discharge power, fix the sign with a harness test, and ideally check it on a real Growatt while the battery charges.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions