Posts: 9,113
Threads: 1,204
Joined: Oct 2020
Reputation:
236
how to wire? why not let 4pcs of A16 board all connect to your router by network cable?
Posts: 9,113
Threads: 1,204
Joined: Oct 2020
Reputation:
236
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