Smart Home Automation Forum
A8S and Modbus sensor - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A8S (https://www.kincony.com/forum/forumdisplay.php?fid=24)
+--- Thread: A8S and Modbus sensor (/showthread.php?tid=5864)

Pages: 1 2


A8S and Modbus sensor - milan.net - 06-10-2024

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-temperature-and-humidity-sensor-modbus-rtu-use-by-sht30

Thank you


RE: A8S and Modbus sensor - admin - 06-10-2024

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.


RE: A8S and Modbus sensor - milan.net - 06-10-2024

(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?


RE: A8S and Modbus sensor - admin - 06-10-2024

when have free time, we can have a test.


RE: A8S and Modbus sensor - milan.net - 06-12-2024

Can you please send me some more information about the sensor? Default address? Used registers to read etc?


RE: A8S and Modbus sensor - admin - 06-12-2024

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


RE: A8S and Modbus sensor - milan.net - 06-12-2024

Thank you


RE: A8S and Modbus sensor - milan.net - 06-15-2024

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;


RE: A8S and Modbus sensor - admin - 06-15-2024

good, thanks share your code.


RE: A8S and Modbus sensor - martinvysnovsky - 07-26-2024

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