Multiple modbus units behind a modbusrtu to tcp-server

I’ve a couple of energy-meters behind ONE modbusrtu to TCP converter (Same IP but different unit-numbers). But I’m not able to get this setup running in HA. in NodeRed it’s working fine:

modbus:
  - name: SDM630
    type: rtuovertcp
    host: 192.168.33.28
    port: 502
    sensors:
      - name: Phase 1 voltage
        unique_id: total_l1_voltage
        unit_of_measurement: V
        address: 0
        state_class: measurement
        device_class: voltage
        slave: 2
        count: 2
        precision: 2
        scan_interval : 60
        input_type: input
        data_type: float32

I don’t get any answer.
Same in RED-Node works fine:



Has someone any ideea what’s wrong with my modbus-config? Any hint?

Check for logs: “duplicate error”

If is that. There is no fix

I don’t know why, but it seems less is more… With this configuration all is working fine (moste of the time, with some short interrupts).

  - name: hubA
    type: tcp
    host: 192.168.33.28
    port: 502
    sensors:
      - name: Heizoel
        unique_id: modbus_oil
        address: 0
        unit_of_measurement: Liter
        state_class: measurement
        count: 1
        scale: 0.1
        offset: -830
        input_type: holding
        data_type: int16
      - name: Spannung L1
        unique_id: modbus_v_l1
        slave: 2
        address: 0
        unit_of_measurement: Volt
        state_class: measurement
        input_type: input
        data_type: float32
      - name: Spannung L2
        unique_id: modbus_v_l2
        slave: 2
        address: 2
        unit_of_measurement: Volt
        state_class: measurement
        input_type: input
        data_type: float32
      - name: Spannung L3
        unique_id: modbus_v_l3
        slave: 2
        address: 4
        unit_of_measurement: Volt
        state_class: measurement
        input_type: input
        data_type: float32
      - name: Leistung L1
        unique_id: modbus_w_l1
        slave: 2
        address: 12
        unit_of_measurement: Watt
        state_class: measurement
        input_type: input
        data_type: float32
1 Like