Robbe
(Robbe)
April 9, 2024, 6:57am
1
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
Before we begin…
This forum is not a helpdesk
The people here don’t work for Home Assistant, that’s an open source project. We are volunteering our free time to help others. Not all topics may get an answer, never mind one that helps you solve your problem.
[image]
This also isn’t a general home automation forum, this is a forum for Home Assistant and things related to it. Any question about Home Assistant, and about using things with Home Assistant, is welcome here. We can’t help you with e…
tom_l
April 9, 2024, 9:36am
3
- 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
Robbe
(Robbe)
April 9, 2024, 2:16pm
4
You, my friend are a hero, so simple to fix but i am still so happy haha, thank you so much!
1 Like