Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rs485 SHT
#1
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.
Reply


Messages In This Thread
rs485 SHT - by Read.0h1 - 06-11-2025, 02:17 PM
RE: rs485 SHT - by admin - 06-12-2025, 12:43 AM
RE: rs485 SHT - by Read.0h1 - 06-12-2025, 02:48 PM
RE: rs485 SHT - by admin - 06-12-2025, 11:17 PM
RE: rs485 SHT - by Read.0h1 - 06-13-2025, 11:53 PM
RE: rs485 SHT - by admin - 06-15-2025, 12:59 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)