Multiple adapters setup
Sometimes the system architecture requires to manage several SLZB-06/06M Zigbee cordinators under the same instance of Home Assistant. Such cases include but not limited to:
- covering remote locations in an apartment, or a different floor, or a basement etc.;
- covering remote buildings like a garage through a LAN connection;
- covering remote locations like a summer house accessible remotely via an Internet connection;
- separating "unstable" end-devices from the main Zigbee network;
- having "guest" Zigbee networks for testing and DIY work.
It is possible to connect any number of SLZB-06/06M coordinators to the same Home Assistant instance. The coordinators can function simultaneously, regardless of whether they are:
- connected via a USB cable;
- connected via Ethernet or WiFi on a local network (either with a PoE power supply or a type-C power supply);
- connected via Ethernet or WiFi on a remote network over an Internet connection (either with a PoE power supply or a type-C power supply). Possible connection scenarios and the architecture of the multi-coordinator system are shown in the figure below.
TIP
Running multiple instances of Zigbee2MQTT in HA OS or docker: youtube
TIP
Each coordinator creates a separate Zigbee network. This does not typically matter to the end-users, as Home Assistant does not care which coordinator the end devices are connected to. The only case when it might matter is when using direct binding — the bound devices have to be connected to the same network.
In order to run several coordinators you have to:
- install and run several instances of Zigbee2MQTT on your server;
- configure each Zigbee2MQTT instance according to your adapter settings, e.g. add their IP addresses to the following section of Zigbee2MQTT config:
...
data_path: /config/zigbee2mqtt_1
...
mqtt:
base_topic: zigbee2mqtt_1
...
serial:
port: tcp://192.168.0.105:6638
...
advanced:
pan_id: 6754
chanel: 11
...
The example value meanings are as explained below.
/config/zigbee2mqtt_1
- set up unique path to each Zigbee2MQTT instance, e.g. use/config/zigbee2mqtt_1
for Zigbee2MQTT instance #1,/config/zigbee2mqtt_2
for Zigbee2MQTT instance #2 etc;mqtt: base_topic: zigbee2mqtt_1
- unique MQTT topic for each Zigbee2MQTT instance, e.g.base_topic: zigbee2mqtt_1
for Zigbee2MQTT instance #1,base_topic: zigbee2mqtt_2
for Zigbee2MQTT instance #2 etc;192.168.0.105
is an IP address of SLZB-06/06M on your network;6638
is a network port your SLZB-06/06M adapter uses (the default is 6638, it can be changed within Firmware);pan_id: 6754
- a unique PAN ID (ID of the Zigbee network) for each Zigbee2MQTT instance, e.g. use6754
for Zigbee2MQTT instance #1,1234
for Zigbee2MQTT instance #2 etc;pan_id
can be ANY 4 digitschanel: 11
- a Zigbee network channel. Similar to WiFi networks, each network operates on its own channel. It is possible for several Zigbee networks to use the same channel, however it is recommended to use different ones. Please use dedicated channels for different devices to reduce interference. Please follow the official Zigbee2MQTT guide for additional explanation of the config settings.
WARNING
If you are going to use a remote SLZB-06/06M Zigbee coordinator with access over Internet, we recommend securing your connection to the remote device by in any available way.
WARNING
chapter to be added