Synology and QNAP
Quick Install OpenHAB V2 until it's in the official docs:
Current releases of OpenHAB2 require Oracle Java due to the generation of certificates based on EC which is not available in free Java implementations. If you see the following error you are likely using OpenJDK: java.security.NoSuchAlgorithmException: EC KeyPairGenerator not available
The easiest way to install Java is to include the PC-Loadletter Repo. Download Java8 SE (latest ARMv6) (Java Cryptography Extension if required) and put them in the public folder of your NAS. Then start the installation of Java8 SE.
Now download and install the github package.
Deprecated builds and older information can be found here:
Synology Information below is for older versions
This packages can be installed in DSM via the package manager -> manual installation or by adding https://www.hofrichter.at/sspks/ as package source - there is a tutorial on the Synology support pages about how to do that.
This package is tested on DS213+ with oracle's java 7 from PC load letter.
In the Synology package manager you can
This package comes without any demo files - so the UI will not show much without giving OpenHAB some configurations ;-) It takes some time after the start of OpenHAB before the UI starts responding (less than a minute on a DS213+).
OpenHAB is installed at
/var/packages/OpenHAB/target/ (which is linked to
If the directory
/volume1/public/OpenHAB/configurations exists, this directory will be used for all OpenHAB configuration files. This should make it easier to work with the OpenHAB designer installed on your PC.
If the directory
/volume1/public/OpenHAB/addons exists, this directory will be used for all OpenHAB addons (bindings) files.
####Ports The UI is on port 8081, the console (via telnet) is on port 5555.
####Demo files In the OpenHAB google groups and on the package server https://www.hofrichter.at/sspks is an install-able package of the OpenHAB 1.4.0 demo files (only the demo files!) for Synology NAS. Prerequisite is that the OpenHAB package is installed.
After the installation of OpenHAB and the demo files http://your.synology.URL:8081/openhab.app?sitemap=demo should show the UI with the demo configuration.
"Text to speech" is disabled in configurations/rules/demo.rules otherwise the demo files are unchanged. This change was necessary (at leased on a DS213+) else OpenHAB stops responding. Give OpenHAB a minute or so after the start of OpenHAB before you expect any response in the UI ;-) ####Kernel drivers Some bindings (e.g. EnOcean) work with USB-sticks that require some kernel drivers. For qoric CPU Diskstations (e.g. DS213+) there is a short guide how to install those drivers at Samples-Tricks.
QNAP Turbo Station
QPKG for QNAP on GitHub can be found here -> https://github.com/openhab/openhab-qnap-qpkg
There is a QPGK package to install openHAB v1.7 on a QNAP Turbo Station NAS. http://forum.qnap.com/viewtopic.php?f=320&t=95315&p=423268