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!

1 Like

Change binary_sensors: to sensors:

and

  data_type: float32
  count: 2
2 Likes

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

2 Likes

This configuration doesn’t work for me.
Invalid config for ‘modbus’ at modbus.yaml, line 109: Напряжение L1: count illegal with data_type: float32 ‘modbus->2->sensors->0’, got {‘name’: ‘Напряжение L1’, ‘unit_of_measurement’: ‘V’, ‘slave’: 1, ‘address’: 1, ‘input_type’: ‘holding’, ‘data_type’: ‘float32’, ‘count’: 2, ‘offset’: 1}
Invalid config for ‘modbus’ at modbus.yaml, line 119: Частота сети: count illegal with data_type: float32 ‘modbus->2->sensors->1’, got {‘name’: ‘Частота сети’, ‘unit_of_measurement’: ‘Hz’, ‘slave’: 1, ‘address’: 55, ‘input_type’: ‘holding’, ‘data_type’: ‘float32’, ‘count’: 2, ‘offset’: 1}

Remove count line

Btw, Can you tell me what converter you use to read data?