Yes.
Just be sure to use the /dev/serial/by-id naming convention for the port assignment in both ZHA and z2m. Linux can change the “ttyUSBx” names somewhat randomly when multiple USB devices are connected.
Otherwise, nothing special needs to be done. Just follow any of the z2m install guides that can be found elsewhere online.
Not really, but there are some “tricks” required to run multiple z2m addon instances:
-
Run one standard addon instance and one edge instance. This can be simplest since both are included in the addon repo.
-
Fork the addon repo in github, setup auto syncing, and add your new repo to the HA addon store. Forking a github repo is really very easy, again multiple online tutorials.
-
Add the standard z2m addon repo multiple times to the HA addon store. The trick here is to add an extra trailing “/” to the url, ie: “https://github.com/zigbee2mqtt/hassio-zigbee2mqtt/” and “https://github.com/zigbee2mqtt/hassio-zigbee2mqtt//”. I had four instances installed just as a test at one point (using multiple trailing slashes), so theoretically there is no limit to the number of instances with this hack. Biggest risk is the HA devs decide to deem this a url parsing bug and “fix” it.
For z2m, a cc2652p based stick with 20221226 or earlier firmware. I use the Sonoff ZBDongle-P on multiple HA locations, all rock solid.
2025-02-14 Edit:
The 20221226 recommendation was timely whe this message was originally posted. The current 20240710 is reported as stable now without the issues of some releases between 20221226 and 20240710. Personally, I still use an older release just because “if it ain’t broke, don’t fix it.”
Also the recommendation for the cc2652p based stick is not as important now that the newer “ember” driver is available in z2m. Again based on community census.