Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Installation via Synology DSM

Marco Raddatz edited this page Jul 4, 2019 · 2 revisions

1. Download Image

First of all, login to your Synology DSM, open Docker and download marcoraddatz/homebridge from within the registry.

Registry Overview.

2. Prepare your scripts

Create a folder via DSM File Station at /volume1/docker/homebridge and put your config.json and either your package.json or install.sh (recommended) in there. If you'd like to develop an own plugin or debug Homebridge, also copy the .env file.

File Station.

Here are two examples of how your setup files may look like:

{
  "name": "DiskStationHomeBridge",
  "description": "HomeKit support for the impatient.",
  "version": "0.1.1",
  "license": "ISC",
  "dependencies": {
    "homebridge-harmonyhub": "0.2.0-alpha",
    "homebridge-netatmo": "^0.0.4",
    "homebridge-nukiio": "^0.0.3",
    "homebridge-synology": "^0.1.0"
  }
}

Note that you can also use this file to install server dependencies!

#!/bin/bash

npm install -gs homebridge-harmonyhub
npm install -gs homebridge-netatmo
npm install -gs homebridge-nukiio
npm install -gs homebridge-synology

Since version 2.1 all commands get executed as root, so this is a good place to install missing dependencies.

3. Start Container

Once the plugins have been set up, the Docker container is ready to launch.

Launch container.

Click 'Advanced Settings'.

Link local configs.

Link the /volume1/docker/homebridge to /root/.homebridge, otherwise, the configuration files won’t be loaded (within DSM the path is only shown as /docker/homebridge.

Use the same network as Docker host.

Apply settings.

Once you launch (or restart) the container, Homebridge and all its dependencies will get installed. To verify that Homebridge is running or if an error occurs, you can use the container's log (Container → Details → Log) to receive further information on the process.