Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A16 work with relay board by RS485 modbus in ESPHome
#11
how to wire? why not let 4pcs of A16 board all connect to your router by network cable?
Reply
#12
(07-11-2023, 01:44 PM)admin Wrote: how to wire? why not let 4pcs of A16 board all connect to your router by network cable?

RS485. Maybe its the wrong method, but I would like to make them communicate even when the network might be down. 1 can be connected straight to a HA server.
Reply
#13
ok, if you want to add 4pcs A16 board on one modbus , just need to add "modbus_controller_id", here is example of use 2pcs A16 board:

modbus_controller:
- id: a16a
address: 1
modbus_id: modbus1
update_interval: 3s

modbus_controller:
- id: a16b
address: 1
modbus_id: modbus1
update_interval: 3s

switch:

- platform: modbus_controller
modbus_controller_id: a16a
name: 'modbus-switch1'
address: 0 # 0:relay1 1:relay2 ......
register_type: coil
bitmask: 1

- platform: modbus_controller
modbus_controller_id: a16b
name: 'modbus-switch1'
address: 0 # 0:relay1 1:relay2 ......
register_type: coil
bitmask: 1
Reply


Forum Jump:


Users browsing this thread: