mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
5882b0e5d0
* Update 10-dns.sh Updated the cni plugin to resolve some issues with vlans. * Update install-cni-plugins.sh Updated cni plugin version to later version to resolve clan issues with some containers. * Update 25-homebridge.sh Updated cni plugin version to resolve clan issues. * Delete 10-dns.sh * Delete install-cni-plugins.sh * Create install-cni-plugins.sh * Delete install-cni-plugins.sh * Create 15-test.sh * Support caching in install-cni-plugins.sh (#114) * Support caching in install-cni-plugins.sh * Update README Conflicts: dns-common/on_boot.d/10-dns.sh * removed unused file Co-authored-by: Adam Bolsover <bowseruk@users.noreply.github.com> |
||
---|---|---|
.. | ||
cni | ||
on_boot.d | ||
README.md |
Run Homebridge on your UDM
Features
- Run Homebridge on your UDM.
- Integrate Unifi Protect cameras in HomeKit via
homebridge-unifi-protect
. - Persists through reboots and firmware updates.
Requirements
- You have successfully setup the on boot script described here.
- You have applied container-common change to prevent UDM storage to fill up with Homebridge logs and addon error messages that can move fast.
Customization
- Update 90-homebridge.conflist to match your network:
- Change
"bridge": "br0"
to the appropriate VLAN for your network. - Update
"subnet"
and"gateway"
to match that VLAN. - If you want a specific IP assigned, update
"rangeStart"
and"rangeEnd"
. Otherwise those properties can be deleted.
- Change
Steps
-
mkdir -p /mnt/data/homebridge/run
-
Copy 25-homebridge.sh to
/mnt/data/on_boot.d
. -
Copy 90-homebridge.conflist to
/mnt/data/podman/cni
. This will create the podman network that bridges the container to your VLAN. -
Run the Homebridge docker container. Change the timezone (
-e TZ
) to match your timezone, and DNS (--dns
) to match your VLAN gateway.podman run -d --restart always \ --privileged \ --name homebridge \ --net homebridge \ --dns 192.168.1.1 \ --dns-search lan \ -e TZ=America/Chicago \ -e PGID=0 -e PUID=0 \ -e HOMEBRIDGE_CONFIG_UI=1 \ -e HOMEBRIDGE_CONFIG_UI_PORT=80 \ -v "/mnt/data/homebridge/:/homebridge/" \ -v "/mnt/data/homebridge/run/:/run/" \ oznu/homebridge:latest
-
Access the Homebridge UI based on the IP you assigned, like http://192.168.1.20/.
-
If using the UDM Pro, the
homebridge-unifi-protect
plugin can be installed via the Homebridge UI to integrate Unifi Protect cameras.