In my first post a year ago about how to get homebridge on the Synology Diskstation, there wasn’t a working docker solution yet.
Now things getting a lot easier! Docker now supports host mode and there are now a few images precompiled with homebridge.
Here is the new “How to get homebridge on the synology diskstation guide”
Update 14 February 2018: There is even a more easier way now! Skip the installation instructions from this page and
Install Docker from the Package Manager on your Diskstation.
Download in Docker the image “marcoraddatz-synology-homebridge”.
- Create a folder “homebridge” in your “Docker” share on the Diskstation (For easy filehandeling I like it to enable “Show in network” on the docker share so it shows up as a network share on my computer)
- Add config.json and a install.sh files with the modules you want to the homebridge folder. Check GitHub for my example files.
“Launch” this image and set the following advanced options:
- Network: Use the same network as the Docker host
- Volume: Add for easy access to the dockerized homebridge folder a local directory and point this to /root/.homebridge
- Run container (you can see in the log what is is doing), first it shall install the modules form the install.sh then it will run homebridge with the settings form the config.json.
There should be a homebridge device called ‘Homebridge is Working”
- Rename install.sh > install.sh.installed if u don’t want to wait every time the container runs.
- Add the modules you want to use by editing the install.sh, this wil runs every time when the container starts.
- Edit your config.json so it suits you and check this on jsonlint.com.
- Restart the container to run the new config file and installscript
You can get into the shell of the docker container with the following steps:
- ssh into your Diskstation (ssh root@yourip)
- ‘sudo su’ to get into superuser mode
- ‘docker exec -u 0 -it HomeBridge bash’ to go into your container shell
From here you can direct install modules with ‘npm install -g homebridge-particle’ for example or run homebridge with the command ‘homebridge’ for direct visual feedback in the terminal shell for debugging your edited config file.
If the connection doesn’t work as it should, this is mostly fixed by deleting the persist folder (in the folder on the docker share) and remove your homebridge device from homekit with a reboot of the container and adding it again to homekit.
If u like this guide, feel free to support 🙂 https://www.paypal.me/jensbouma