Smart Home Automation Forum

Full Version: A8S and Modbus sensor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,

I would like to ask for help setting up A8S with RS485 Temperature and Humidity Sensor Modbus RTU Use By SHT30 an ESPHome

https://shop.kincony.com/products/rs485-...e-by-sht30

Thank you
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.
(06-10-2024, 12:56 PM)admin Wrote: [ -> ]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.

Hello, i already have the rs-485 sensor and need to place it 70m cable length away.

Can you please send me ESPHome example how to use the sensor?
when have free time, we can have a test.
Can you please send me some more information about the sensor? Default address? Used registers to read etc?
the sensor default address is 1, RS485 9600bps
read temperature and humidity data from 0x0 register, read 2 bytes.
here is our arduino demo source code , maybe can help you.
https://www.kincony.com/forum/showthread.php?tid=5702
Thank you
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;
good, thanks share your code.
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
Pages: 1 2