Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-a16 XY-MD02 SHT20
#1
Good day. I ordered a temperature and humidity sensor, I'm trying to connect it, but the sensor doesn't respond. Maybe I'm doing something wrong. I connected it via USB, and also via KC868-a16


Attached Files Image(s)
               
Reply
#2
disconnect with KC868-A16, let USB-RS485 adapter connect to sensor to test firstly.
Reply
#3
(08-02-2025, 05:57 AM)admin Wrote: disconnect with KC868-A16, let USB-RS485 adapter connect to sensor to test firstly.

This was done at the very beginning. Look at the photo carefully!
Reply
#4
# Config Modbus
modbus:
uart_id: uart_modbus
id: modbus1

modbus_controller:
- id: modbus_sensor
address: 0x01 # device address
modbus_id: modbus1

sensor:
- platform: modbus_controller
modbus_controller_id: modbus_sensor
name: "RS485 Temperature Sensor"
id: temperature_sensor
address: 0x0001
register_type: read
value_type: U_WORD
unit_of_measurement: "°C"
accuracy_decimals: 1
filters:
- lambda: if (x < 10000) return x * 0.1; else return -1 * (x - 10000) * 0.1;

- platform: modbus_controller
modbus_controller_id: modbus_sensor
name: "RS485 Humidity Sensor"
id: humidity_sensor
address: 0x0002
register_type: read
value_type: U_WORD
unit_of_measurement: "%"
accuracy_decimals: 1
filters:
- multiply: 0.1


Теперь работает!
Reply
#5
you can try to hold on the RESET button of sensor, hold on 5 seconds, release it , will reset the sensor, then the RS485 address will be set to 1
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)