Posts: 6,242
Threads: 804
Joined: Oct 2020
Reputation:
151
i suggest you use SHT31 connect with A8S' i2c extender interface, it's easy for ESPHome.
if you really want to use RS485 bus for long distance. ok, the product's link is ok.
Posts: 6,242
Threads: 804
Joined: Oct 2020
Reputation:
151
when have free time, we can have a test.
Posts: 17
Threads: 4
Joined: Aug 2023
Reputation:
0
Can you please send me some more information about the sensor? Default address? Used registers to read etc?
Posts: 17
Threads: 4
Joined: Aug 2023
Reputation:
0
Hello,
If some one would be looking for the same thing, this is the part of yaml that works for me:
modbus:
id: modbus1
uart_id: mod_bus
modbus_controller:
- id: a8s
address: 0x01
modbus_id: modbus1
setup_priority: -10
update_interval: 5s
uart:
id: mod_bus
tx_pin: 33
rx_pin: 32
baud_rate: 9600
stop_bits: 1
parity: NONE
sensor:
- platform: modbus_controller
modbus_controller_id: a8s
name: "Box Temp"
id: modbus_temp
register_type: holding
address: 0
unit_of_measurement: "°C"
value_type: S_WORD
accuracy_decimals: 1
filters:
- lambda: return x / 10.0;
- platform: modbus_controller
modbus_controller_id: a8s
name: "Box Hum"
id: modbus_Hum
register_type: holding
address: 1
unit_of_measurement: "%"
value_type: S_WORD
accuracy_decimals: 1
filters:
- lambda: return x / 10.0;
Posts: 6,242
Threads: 804
Joined: Oct 2020
Reputation:
151
good, thanks share your code.
Posts: 3
Threads: 0
Joined: Jul 2024
Reputation:
0
Hello
I want to use several of these sensors in one bus. How can I change the sensor's address? In which registry the address is stored?
Thank you