-
-
Notifications
You must be signed in to change notification settings - Fork 248
Homebridge on LibreELEC
This guide will show you how to run the oznu/homebridge docker image on a LibreELEC device.
From the Kodi Confluence main menu, navigate to SYSTEM
-> LibreELEC
-> Services
-> Enable SSH
From the Kodi Confluence main menu navigate to Add-ons
-> Download
-> Services
-> Docker
We should now be able to log in to LibreELEC via an SSH session on another machine on the local network. From this remote machine, enter the following:
ssh root@<IP address of the LibreELEC device>
Provide the default password of libreelec
or openelec
.
LibreELEC's avahi-daemon
service conflicts with the Homebridge process, so you need to disable it first:
systemctl stop avahi-daemon
systemctl disable avahi-daemon
This is where your Homebridge config.json
and other important files will be stored.
mkdir /storage/homebridge
You will need to pick the image variant/tag that matches the device you're running LibreELEC on. Type the following command to check your system architecture:
uname -m
-
x86_64
= Use thelatest
tag -
armv7l
orarmv6l
= Use theraspberry-pi
tag -
aarch64
= Use theaarch64
tag
Run this command to start Homebridge. Replace raspberry-pi
on the last line with the tag determined in Step 6:
docker run -d --restart=always --net=host \
--name=homebridge \
-v /storage/homebridge:/homebridge \
-e HOMEBRIDGE_CONFIG_UI=1 \
-e HOMEBRIDGE_CONFIG_UI_PORT=8581 \
oznu/homebridge:raspberry-pi
Some users have reported Homebridge is not starting on boot despite the container being start with --restart=always
. Use this workaround if you're experiencing this problem:
Open /storage/.config/autostart.sh
for editing in nano:
nano /storage/.config/autostart.sh
Add this line to the bottom of the file:
docker restart homebridge
To manage Homebridge go to http://<IP address of the LibreELEC device>:8581
in your browser. For example, http://192.168.1.20:8581
. From here you can install, remove and update plugins, modify the Homebridge config.json
and restart Homebridge.
The default username is admin with password admin. Remember you will need to restart Homebridge to apply any changes you make to the config.json
.
docker logs -f homebridge
docker restart homebridge
docker rm -f homebridge
# Replace `raspberry-pi` on the last line with the tag determined in Step 6
docker pull oznu/homebridge:raspberry-pi
After downloading a new version of the image, remove the existing container and recreate it using the command shown in Step 7. You won't loose any config or settings since this is stored in /storage/homebridge
.