Skip to content

fronius: battery addresses do not match the GEN24 storage maps; float decoder flips sign on 32-bit Lua #260

Open

Description

@frahlg

While removing false 0 °C readings in #259, the fronius driver's battery addresses turned out not to match Fronius's own GEN24 storage register maps. Battery W, V and SoC are therefore likely wrong on a GEN24 with storage.

The same review found that the driver's float decoder flips the sign on 32-bit Lua builds. FTW and Blixt L1 run 64-bit Lua, so they are not affected today, but the harness and any 32-bit host are (the same fault was fixed in ferroamp_modbus by #254).

The driver is read_only, so no commands are affected.

Needed: check the battery block against Fronius's GEN24 storage documentation (SunSpec model 124 and the GEN24 Modbus maps), correct the addresses with harness tests, and use a decoder that works on the 16-bit halves as docs/WRITING-A-DRIVER.md ("Numbers") asks. A field report from a GEN24 with a battery would settle it.

🤖 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