I wanted to write this up for people that want to use an Amazon echo to control Vera using bwssystems Home Automation Bridge and a Synology NAS using Docker instead of weeding through hundreds of pages of forum posts. This is pretty straight forward but you must complete each step.
First, a few notes:
At time of writing I am using Synology DSM 6.0.2.
You can find notes and additional information on bwssystems Home Automation bridge here: GitHub - bwssytems/ha-bridge: Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge. and current releases in .jar here: Releases · bwssytems/ha-bridge · GitHub. Currently 3.1.0 is available.
The container is put together by aptalca. See GitHub - aptalca/docker-ha-bridge: Docker container for Home Automation Bridge
I have not been successful using the Docker GUI to install properly. This post will demonstrate how to install it using SSH. You will need a basic understanding of the Synology DSM to get this to work. Thanks to bwssystems and aptalca for making this possible.
Step one:
Use the Synology File Manager and create a folder to store the home automation bridge’s configuration file in. This can be any name and any location. You will need to know the path to this location and it does need to be a shared folder. I would suggest allowing all groups to have full access rights to it at least until you get the bridge setup. I called mine “vera-habridge” but it could be “ha-bridge” or whatever you like.
Step two:
Install Docker in the Package Center on your Synology NAS. You do not need to configure anything in it. Just install it.
Step three:
Make sure you have SSH turned on. You will find this under Control Panel >> Terminal & SNMP >> Enable SSH service. You can turn this off after installation is complete if you do not want to keep the service running.
Step four:
Download and install a SSH client. Putty is easy to use and free. Google putty and download and install it.
Step five:
Run putty and SSH into your Synology NAS. You should be familiar with the IP address and by default the port is 22. When you SSH in it will ask you for a name and password. Use admin as your login and your admin password.
You can go to the root directory using
“cd /” and you will want to find the folder you created in step one. You can google basic unix commands to navigate around if you don?t know how to. VERY IMPORTANT: Your shared folders are not in the root folder but generally under a volume. i.e. /volume1/vera-habridge. You must know the entire path from root to make this work correctly and it can and will (I found out the hard way) lock up your NAS if you use an incorrect path.
Step six:
Return to the root directory and type the following in replacing the parameters as necessary:
sudo docker run -d --name="Home-Automation-Bridge" --net="host" -e SERVERIP="192.168.X.X" -e SERVERPORT="8080" -v /volume1/vera-habridge/:/config:rw -v /etc/localtime:/etc/localtime:ro aptalca/home-automation-bridge
IMPORTANT:
Replace the “192.168.X.X” with your Synology NAS IP address. i.e. SERVERIP=“192.168.1.100”
Replace the “8080” with your port number (8080 is usually fine). i.e. SERVERPORT=“8080”
Replace the /volume1/vera-habridge/ with the path and folder you created in step one. i.e. /volume1/habridge/. Leave in the :/config:rw part.
You will be asked for your password to proceed.
Step seven:
Docker should run, download the latest version of the home automation bridge, and install it. You will see it work through the package and download the necessary files. This can take a little while.
Step eight:
After the download completes and you are returned to a prompt, verify the install by opening the docker package on the Synology DSM and under the “Container” section you should see Home-Automation-Bridge. It should already be running.
Step nine:
Test the installation by using your browser to go to the IP and port you used in step six. i.e. http://192.168.1.100:8080. If it is working the setup screen will appear. Follow the links at the beginning of the post to work through the rest of the setup.
Please let me know if I left anything out or if there are any errors. Thank you.