Modbus RTU input

Hi,
i bought a modbus rtu I / O relay.
Modbus Relay
I connect the relay via a USB converter. There is no problem with output control. I can’t read the status of the inputs. I want to use these inputs in automation. How to read the status. I tried a binary sensor with slave 2 and address 0-255 - so it responded to a change in the state of relay 1. Thank you for the advice on how to read the status of individual inputs.

modbus:
  name: sbernice
  type: serial
  method: rtu
  port: /dev/ttyUSB0
  baudrate: 9600
  stopbits: 1
  bytesize: 8
  parity: N
switch:
  - platform: modbus
    scan_interval: 40
    coils:
      - name: Relay33
        hub: sbernice
        slave: 2
        coil: 0
      - name: Relay34
        hub: sbernice
        slave: 2
        coil: 1
      - name: Relay35
        hub: sbernice
        slave: 2
        coil: 2
      - name: Relay36
        hub: sbernice
        slave: 2
        coil: 3
      - name: Relay37
        hub: sbernice
        slave: 2
        coil: 4
      - name: Relay38
        hub: sbernice
        slave: 2
        coil: 5
      - name: Relay39
        hub: sbernice
        slave: 2
        coil: 6
      - name: Relay40
        hub: sbernice
        slave: 2
        coil: 7
1 Like