Modbus tcp Siemens Sentron PAC3200 - Solved

Hi, I would like to read from Sentron PAC3200 . I have tried this configuration:
modbus:

  • name: pac3200
    type: tcp
    host: 192.168.5.3
    port: 502
    binary_sensors:
    • name: “Voltage L1”
      slave: 0
      address: 1
      input_type: holding
      unit_of_measurement: V (this command generate error)
      state_class: measurement (this command generate error)
      count: 1 (this command generate error)
      offset: 0 (this command generate error)
      scale: 0.1 (this command generate error)
      data_type: uint16 (this command generate error)
      Example of error
      Invalid config for [modbus]: [scale] is an invalid option for [modbus]. Check: modbus->modbus->0->binary_sensors->0->scale. (See /config/configuration.yaml, line 17).

This is part of manual that shows how to read data from device.

Thanks a lot!

Change binary_sensors: to sensors:

and

  data_type: float32
  count: 2
1 Like

Thanks a lot!
This is yaml example that work with this device:

modbus:

  • name: pac3200
    type: tcp
    host: 192.168.5.3
    port: 502
    sensors:
    • name: “Voltage L1”
      slave: 1
      address: 1
      input_type: holding
      data_type: float32
      count: 2
      offset: 1
    • name: “AC Frequency”
      slave: 1
      address: 55
      input_type: holding
      data_type: float32
      count: 2
      offset: 1

Best regards

1 Like