1. cd /home/homebridge
2. mkdir homebridge1;mkdir homebridge2;mkdir homebridge3
3. Download https://github.com/jvmahon/Homebridg...g.complex.json as a starting point.
4. Rename to config.json and copy into each homebridgeX folder.
5. Tweak the bridge settings to make them unique.
Run the first instance in the foreground with the following command:
/usr/local/bin/homebridge --user-storage-path /home/homebridge/homebridge1
If all looks good, hit ctrl-C and repeat for homebridge2 and homebridge3.
Once all is good in the foreground, you'll need to create 3x unit files for systemd.
Here's a sample of what the homebridge1.service would look like:
Code:
[Unit] Description=Instance 1 - Homebridge After=syslog.target network-online.target [Service] Type=simple User=homebridge ExecStart=/usr/local/bin/homebridge --no-qrcode --user-storage-path /home/homebridge/homebridge1 Restart=on-failure RestartSec=10 KillMode=process [Install] WantedBy=multi-user.target
Let me know if you need a hand getting these setup in systemd.
Leave a comment: