Skip to content

Support custom Modbus Function Code 0x13 for writing parameters on Zucchetti ZM1 (Sofar) inverters #795

Description

@Alejandro26817

Hi! I'm trying to write parameters (e.g., Battery Settings at register 0x10B0) to my inverter Zucchetti ZM1 (Sofar)

According to the official Sofar Modbus protocol manual, these inverters do not use standard function codes (0x06 or 0x10) for writing parameters. Instead, they strictly require a custom Function Code 0x13.

Currently, the integration's services (write_holding_register / write_multiple_registers) use standard codes, which my inverter rejects.

Would it be possible to add support (or a specific service) for sending raw Modbus frames with custom function codes like 0x13 through pysolarmanv5 instead of 0x16?

Thank you

Alessandro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions