Skip to content

Commit 11dc5eb

Browse files
committed
20220312 homebridge - master branch - PR 1 of 2
Changes image from `oznu/homebridge:no-avahi-arm32v6` to `oznu/homebridge:latest`: * `homebridge:latest` pulls `arm` or `arm64` as appropriate (ie Buster/Bullseye) * IOTstack defaults to running the container in host mode (as per the [homebridge documentation](https://github.com/oznu/docker-homebridge/wiki/Homebridge-on-Raspberry-Pi)), therefore the container can see multicastDNS traffic, therefore "no-avahi" was never really appropriate. Further, current [homebridge documentation](https://github.com/oznu/docker-homebridge/wiki) says: > Note: Avahi is now disabled by default in all Alpine builds as Homebridge no longer requires it. If you have a plugin that requires avahi, it can enabled by setting the environment variable ENABLE_AVAHI=1. `homebridge:latest` pulls an Alpine-based image so the above note is applicable. Replaced UI port placeholder with fixed port 8581. This is in line with the [homebridge documentation](https://github.com/oznu/docker-homebridge/wiki/Homebridge-on-Raspberry-Pi#managing-homebridge). Removed `build.py` from the homebridge template. The script was throwing errors, was not substituting the port placeholder with a sensible default, and was not offering any mechanism to replace the placeholder with a proper port number. Added basic documentation. Signed-off-by: Phill Kelley <[email protected]>
1 parent 9cc8533 commit 11dc5eb

File tree

3 files changed

+47
-322
lines changed

3 files changed

+47
-322
lines changed

.templates/homebridge/build.py

Lines changed: 0 additions & 318 deletions
This file was deleted.

.templates/homebridge/service.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
homebridge:
22
container_name: homebridge
3-
image: oznu/homebridge:no-avahi-arm32v6
3+
image: oznu/homebridge:latest
44
restart: unless-stopped
55
environment:
66
- TZ=Etc/UTC
77
- PGID=1000
88
- PUID=1000
99
- HOMEBRIDGE_CONFIG_UI=1
10-
- HOMEBRIDGE_CONFIG_UI_PORT=%WUIPort%
10+
- HOMEBRIDGE_CONFIG_UI_PORT=8581
1111
volumes:
1212
- ./volumes/homebridge:/homebridge
13-
#ports:
14-
# - "4040:4040"
1513
network_mode: host
1614

docs/Containers/Homebridge.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Homebridge
2+
3+
## References
4+
5+
* [GitHub home](https://github.com/oznu/docker-homebridge)
6+
* [Configuration Guide](https://github.com/oznu/docker-homebridge/wiki/Homebridge-on-Raspberry-Pi)
7+
* [DockerHub](https://hub.docker.com/r/oznu/homebridge)
8+
9+
## Configuration
10+
11+
Homebridge documentation has a comprehensive [configuration guide](https://github.com/oznu/docker-homebridge/wiki/Homebridge-on-Raspberry-Pi) which you are encouraged to read.
12+
13+
Homebridge is configured using environment variables. In IOTstack:
14+
15+
* If you are running new menu (master branch, the default), environment variables are kept inline in `docker-compose.yml`.
16+
* If you are running old menu (old-menu branch), environment variables are at the path:
17+
18+
```
19+
~/IOTstack/services/homebridge/homebridge.env
20+
```
21+
22+
In either case, you apply changes by editing the relevant file (`docker-compose.yml` or `homebridge.env`) and then:
23+
24+
```bash
25+
$ cd ~/IOTstack
26+
$ docker-compose up -d homebridge
27+
```
28+
29+
### About "avahi"
30+
31+
"avahi", "multicast DNS", "Rendezvous", "Bonjour" and "ZeroConf" are synonyms.
32+
33+
Current Homebridge images disable avahi services by default. The Homebridge container runs in "host mode" which means it can participate in multicast traffic flows. If you have a plugin that requires avahi, it can enabled by setting the environment variable:
34+
35+
```yaml
36+
ENABLE_AVAHI=1
37+
```
38+
39+
## Web Interface
40+
41+
The web UI for Homebridge can be found on `"your_ip":8581`. You can change the port by adjusting the environment variable:
42+
43+
```
44+
HOMEBRIDGE_CONFIG_UI_PORT=8581
45+
```

0 commit comments

Comments
 (0)