Modbus new configuration style leads to unavailable sensors

Hi *,

I just adapted the new modbus config style before I updated to 2021.7.1.
Configuration passes the checks, but all sensors are unavailable.
Here is the config:

  - name: ModbusTCPPV
    type: rtuovertcp
    port: 8888
      - name: Modbus_OL_Temp_MPPT
        slave: 1
        address: 8192
        input_type: input

The old style working config:

  - name: ModbusTCPPV
    type: rtuovertcp
    port: 8888

  - platform: modbus
      - name: Modbus_OL_Temp_MPPT
        hub: ModbusTCPPV
        slave: 1
        register: 8192
        register_type: input

What is wrong with the config?

Does your issue match any of the issues currently open already?

HomeAssistant Github - Modbus Open Issues

Not that I can see.
The only indication I have from the logs is:

2021-07-09 14:10:11 DEBUG (SyncWorker_9) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-09 14:10:11 DEBUG (SyncWorker_9) [homeassistant.components.modbus.modbus] Pymodbus: Exception Response(132, 4, IllegalAddress)

But I think this is related to some misconfigurated sensor from one of my modbus devices. This had also been present in the old configuration.

A reboot of the RS485 gateway did not help either.

All sensors are still “Unavailable”

There was another post earlier tonight about getting modbus illegal address errors.

Definitely seems to be some sort of issue. You should open one.

Hi All
I have the same challenge, after 2021.7 I have lost connection to my modbus devices …
have corrected according to the new instructions … I use serial (rs485) via USB …

Same here. Out of three identical SMA solar inverters, set up identically with HA, one (not always the same one) stops receiving data after a few hours. Since update to 2021.7. Other setups with OpenHAB working without any problems. Seems mdobus in HA is broken now somehow.
Any ideas?

Any reason you are using modbus and not the SMA integration?

I ask because I just got a Sunnyboy 6.

There seem to be quite a few issues opened for the modbus integration in the last few days:

I did switch over to the SMA integration now. Did not before since early on there was only one instance of the SMA integration allowed. Modbus was the trick to get the other ones in…

1 Like

solved in 2021.7.4