Modbus sensors not readable with error: "Pymodbus: hub1: Exception Response(132, 4, SlaveFailure)"

Since 30 December 2021 (therefore I guess since Home assistant 2021.12.7 released one day earlier, but I cannot be sure) I cannot read data from my TCP modbus client anymore.

I get this error:

Logger: homeassistant.components.modbus.modbus
Source: components/modbus/modbus.py:291
Integration: Modbus ([documentation](https://www.home-assistant.io/integrations/modbus), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+modbus%22))
First occurred: 10:30:10 AM (10 occurrences)
Last logged: 10:34:40 AM

Pymodbus: hub1: Exception Response(132, 4, SlaveFailure)

Needless to say, when I test the device with a different software it works just fine.

The configuration has not changed:

modbus:
  - name: "hub1"
    type: tcp
    delay: 5
    host: 192.168.x.y
    port: 502
    sensors:
      - name: "Ducobox status"
        slave: 1
        address: 11
        input_type: input
        scan_interval: 30
        data_type: uint16
# and more...

Any idea about how to solve the issue? I couldn’t find anything online.

Try changing this values:

modbus:

  - name: edpbox3
    type: tcp
    host: 10.1.0.47
    port: 9502
    delay: 1
    timeout: 3
    retries: 3
    retry_on_empty: true
    message_wait_milliseconds: 250

I tried those settings, except the port which in my case if 502, and the problem persists.

Logger: homeassistant.components.modbus.modbus
Source: components/modbus/modbus.py:291
Integration: Modbus ([documentation](https://www.home-assistant.io/integrations/modbus), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+modbus%22))
First occurred: 11:43:59 PM (15 occurrences)
Last logged: 11:50:59 PM

Pymodbus: hub1: Exception Response(132, 4, SlaveFailure)

It looks like the ventilation system decided to reset to default and it starts counting modbus addresses from 0, no more from 1, therefore all addresses had to be shifted by one. Now it works.

1 Like