Skip to content

unknown error - 'ModbusIOException' object has no attribute 'registers' #31

@moerlien

Description

@moerlien

I have a DTSU666 connected to a Waveshare RS485 to Eth.

the waveshare link led gets blue for a few seconds, when clicking okay in the Integration, the gets green again, after Integration says unknown error.

Unfortunately, a connection to my DTSU is not working while getting unknown error message.

Here is the log entry:

'ModbusIOException' object has no attribute 'registers'

Traceback (most recent call last):
File "/config/custom_components/chint_pm/config_flow.py", line 387, in async_step_setup_network
info = await validate_network_setup(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/chint_pm/config_flow.py", line 145, in validate_network_setup
decoder = BinaryPayloadDecoder.fromRegisters(rr.registers, byteorder=Endian.BIG)
^^^^^^^^^^^^
AttributeError: 'ModbusIOException' object has no attribute 'registers'

Any idea what went wrong?

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