06-11-2025, 02:17 PM
I apologize for my lack of knowledge here but I am trying to set up an SHT temperature and humidity sensor (purchased through your website) to my F16 board. I found YAML in a different thread and copied it and changed the pin numbers to match my board. I am using ESPhome through Homeassistant. The YAML pertaining to the temperature humidity sensor is as follows:
uart:
- id: uart_modbus
baud_rate: 9600
tx_pin: 16
rx_pin: 17
# 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: 0x0000
register_type: holding
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: 0x0001
register_type: holding
value_type: U_WORD
unit_of_measurement: "%"
accuracy_decimals: 1
filters:
- multiply: 0.1
The sensors read as unavailalbe in homeassistant. I have a feeling that the issue may be in the address of the specific sensors, but I have no idea since I have never used the RS485 pins before.
uart:
- id: uart_modbus
baud_rate: 9600
tx_pin: 16
rx_pin: 17
# 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: 0x0000
register_type: holding
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: 0x0001
register_type: holding
value_type: U_WORD
unit_of_measurement: "%"
accuracy_decimals: 1
filters:
- multiply: 0.1
The sensors read as unavailalbe in homeassistant. I have a feeling that the issue may be in the address of the specific sensors, but I have no idea since I have never used the RS485 pins before.

