Moving the position of a comma

Hello all, I am having problems with my readout results that I got from a ventilation unit via modbus/tcp.

These values should come out as for example: 20.2°C but unfortunately in this case I get 202°C. Anyone have any idea how to solve this or how to move the comma?

code:

‘modbus:’

'''
- name: "Menerga"
  type: tcp
  host: 192.168.1.27      # ip adres Menerga
  port: 502
  sensors:
    - name: "EL - Temp"
      unit_of_measurement: °C
      slave: 1
      address: 35080
      count: 1
      input_type: holding
      data_type: custom
      structure: ">h"
      device_class: "energy"
      state_class: "measurement"
      unique_id: EL - Temp
      scan_interval: 5
      '''

Thanks in advance

Welcome, can you post your code using the communinty standards found here

See #11

- name: "Menerga"
  type: tcp
  host: 192.168.1.27      # ip adres Menerga
  port: 502
  sensors:
    - name: "EL - Temp"
      unit_of_measurement: °C
      slave: 1
      address: 35080
      count: 1
      input_type: holding
      data_type: custom
      structure: ">h"
      device_class: "energy"
      state_class: "measurement"
      unique_id: EL - Temp
      scan_interval: 5
      scale: 0.1   # <---- Add this ###

See: https://www.home-assistant.io/integrations/modbus/#scale

1 Like

You, my friend are a hero, so simple to fix but i am still so happy haha, thank you so much!

1 Like