Hi, I try to integrate in HA Modbus RS485 SHT 20 Temperature and Humidity sensor via Configuration YAML file. At HA my script create 2 object for Modbus SHT20 Humidity and SHT20 Temperature, but unfortunately the numbers are strange:
SHT20 Humidity 11 899 %
SHT20 Temperature 12 886 С
The sensor placed at home (T 22-24C, H 50%)
Do you have any idea how to fix it?
modbus:
- type: serial
method: rtu
port: /dev/ttyUSB0
baudrate: 9600
bytesize: 8
parity: N
stopbits: 1
timeout: 2
sensors:
- name: SHT20 Temperature
scan_interval: 5
slave: 1
scale: 0.01
address: 1
data_type: uint16
input_type: input
unit_of_measurement: °C
device_class: temperature
state_class: measurement
unique_id: 'SHT20 Temperature'
- name: SHT20 Humidity
scan_interval: 5
slave: 1
address: 2
data_type: uint16
input_type: input
unit_of_measurement: '%'
device_class: humidity
state_class: measurement
unique_id: 'SHT20 Humidity'