OH has an Ember Zigbee coordinator for the OH Zigbee binding, and an ITEAD Zigbee Coordinator for z2m. All is working well.
I need to connect a 2nd and 3rd (SLZB-06 POE) Zigbee coordinator for the garage and another for the shed (three separate buildings).
I have installed the SLZBs, as these are Ethernet (LAN) connected; they have their own names and I have configured and updated these.
Now comes the step I do not know.
Can run multiple instances on this rPi without using docker or Proxmox machines?
If so, how?
I havenât figured out how z2m is launched; maybe it can be launched with specifying a different config file?
Has anyone done this?
Or what is the best approach; as I can run up LXCs or docker instances on another machine, but was hoping there is a simpler way.
I am well aware of this URL⊠it shows a config for a single instance, but does not say how to get there what other entries to make.
Yes, I have got the âyellow boxesâ (SLZBs with individual IP addresses), and I am sure I can make these talk to one MQTT broker⊠but what do I need to do to get there?
It seems that people just copy the zigbee2mqtt directory in /opt/ to say /opt/zigbee2mqtt2 and /opt/zigbee2mqtt3 and change the config file.
While (I believe) I can follow this in principle, how do these other two instances start at start-up?
The key here is to change the following parameters per instance:
frontend:
port: 8083
mqtt:
base_topic: zigbee2mqtt_garage
server: mqtt://192.168.1.5
serial:
port: tcp://192.168.1.221:6638
advanced:
channel: 11
log_directory: /var/log/zigbee2mqtt_garage/%TIMESTAMP%al
I copied zigbee2mqtt.service to zigbee2mqtt_garage.service
with sudo cp /etc/systemd/system/zigbee2mqtt.service /etc/systemd/system/zigbee2mqtt_garage.service
Description=Zigbee2MQTT_Garage
// this seems to be different in different installations; at least it differs from Gregâs (most likely) standard install, while mine runs on openHABian
ExecStart=/usr/bin/npm start
WorkingDirectory=/opt/zigbee2mqtt_garage
Did the same with the shed files.
Start the services: sudo systemctl status zigbee2mqtt_garage.service and for the shed too.
Check if it running: sudo systemctl status zigbee2mqtt_garage.service (same for shed)
Set the services to auto start: sudo systemctl enable zigbee2mqtt_garage.service (and for the shed too).
Glad it worked.
I have it set up on my server ready to use but I didnât need to use it yet as the coordinator is good enough to cover the whole property. Mine server etc is in the garage which is 10 metres from the house but I have a lot of zigbee router devices (10 roller blind motors) which relay the signal quiet well.
I have bigger distances to cover with âtin-foiledâ buildings.
There is a lesson learned (at least for me). Architecture matters!
I started with one USB Ember in the OH instance in the shed.
I have now devices in house and garage.
I wanted a backup Ember for redundancy, but could not get any Embers
Bought two ITEADs.
Then realised I do Zigbee in the garage too.
Dang.
When I got onto SLZBs (thanks to you) and got three, one for each building.
Now that the instances can be housed on the OH rPi, the rPi can be relocated to the tech room in the house when the time comes WITHOUT any dongle business no longer reaching its location
I am now in the process of migrating devices to the right coordinator (SLZB).
What I also discovered, I can use ArgyleCourt/Shed instead of zigbee2mqtt_shed as a base topic in the config, which brings consistency to my MQTT topics. I am wrapped.
⊠now becomes KDL/Presence_01 as friendly name; great.
You can also use those devices in wifi mode and you donât need an ethernet POE cable from the switch. You can use either a USB power supply or a POE injector which means you can put it anywhere there is a power point.
Again, glad it worked. I might do it for real one day but everything is working fine at the moment although I have just built another shed and am going to put some temperature sensors on there so I may need another co-ordinator?