How to retrieve dat from Siemens PAC2200 meter via modbus?

I am trying to read power, amps, voltage and frequency data from a pac2200 using home assistant. The values returned do not match the values I see via a web browser connected to the pac2200. I saw a few earlier posts using ‘count: 2’ , but the current HA gives an error message when used with float32 data type.

Using the following setup: Any suggestions on what might be wrong here?

- name: "PAC2200"
    delay: 2
    type: tcp
    host: 192.xx.xx.xx
    port: 502
    sensors:
    - name: “Grid active power”
      slave: 1
      address: 19
      input_type: holding
      offset: 1
      data_type: float32
      unit_of_measurement: "W"
      device_class: "power"
      state_class: "measurement"
      scan_interval: 10
    - name: “Grid Voltage”
      slave: 1
      address: 1
      input_type: holding
      offset: 1
      data_type: float32
      unit_of_measurement: "V"
      device_class: "voltage"
      state_class: "measurement"
      scan_interval: 10
    - name: “Grid Current”
      slave: 1
      address: 13
      input_type: holding
      offset: 1
      data_type: float32
      unit_of_measurement: "A"
      device_class: "current"
      state_class: "measurement"
      scan_interval: 10
    - name: “Grid Frequency”
      slave: 1
      address: 55
      input_type: holding
      offset: 1
      data_type: float32
      unit_of_measurement: "Hz"
      device_class: "frequency"
      state_class: "measurement"
      scan_interval: 10

Hi Peter, I’m getting this “configuration warning”: “Integration error: sensors - Integration ‘sensors’ not found.” And therefore do not get any values.

Did you face the same issue or do you just get error messages with your code?

I used this code in the configuration.yaml:

modbus:
- name: "PAC2200"
  delay: 2
  type: tcp
  host: 192.168.0.xxx
  port: 502
sensors:
    - name: "PAC2200_Active_Power_L1"
      slave: 1
      address: 25
      input_type: holding
      data_type: float32
      count: 2
      offset: 1
      unit_of_measurement: "W"
      device_class: "power"
      state_class: "measurement"

it is the count: 2 that HH does not like (anymore). I’ve seen this used in other examples, but it does not seem to be a valid configuration parameter anymore. So wondering what the alternative is?

The problem was the offset: , I copied that from an old example, it just adds a 1 to the measured value.