Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A8S and Modbus sensor
#1
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
Reply
#2
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.
Reply
#3
(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?
Reply
#4
when have free time, we can have a test.
Reply
#5
Can you please send me some more information about the sensor? Default address? Used registers to read etc?
Reply
#6
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
Reply
#7
Thank you
Reply
#8
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;
Reply
#9
good, thanks share your code.
Reply
#10
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
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)