Skip to content

victron, ferroamp_modbus: meter and PV send 0 when a read fails #258

Open

Description

@frahlg

victron and ferroamp_modbus still send 0 for the meter and PV streams when a read fails. docs/WRITING-A-DRIVER.md ("Never fabricate") says a field that did not answer is left out, and a stream whose defining reading did not answer is not emitted. A fabricated 0 W meter reading is the worst case: it looks like a balanced site.

#254 fixes the battery side of both drivers; the meter and PV sides are left for this issue.

Expected: each field is set only from a register that answered, and the meter/PV stream is emitted only when its power read answered. Add harness tests for a failed read.

🤖 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