I am using the ESP32-S3-ETH-8DI-8RO and wanted to add a pressure sensor to the RS485 port on it.
Sensor QDW90A (with or without screen)
I had trouble finding the right settings and wanted to share them with you now that everything is working correctly.
It is important that you connect the GND of the RS port to a G on the internal pin block.
# =========================================================
# RS485 / MODBUS - DRUKSENSOR
# =========================================================
uart:
id: modbus_uart
tx_pin: GPIO17
rx_pin: GPIO18
baud_rate: 9600
parity: NONE
stop_bits: 1
modbus:
id: modbus1
uart_id: modbus_uart
modbus_controller:
- id: pressure_controller
address: 1
modbus_id: modbus1
update_interval: 60s
command_throttle: 50ms
# =======================================================
# SYSTEEMDRUK - RS485 MODBUS
# =======================================================
- platform: modbus_controller
modbus_controller_id: pressure_controller
name: "Systeem Druk"
id: systeem_druk
register_type: holding
address: 4
value_type: U_WORD
unit_of_measurement: "bar"
device_class: pressure
state_class: measurement
accuracy_decimals: 3
filters:
- multiply: 0.001
- lambda: |-
if (x < 0) return 0;
if (x > 5.5) return 0;
return x;
Cheers,
Sake Banga
AKA Toendra

