This page is part of archived documentation for openHAB 3.0. Go to the current stable version

# Synology DiskStation

The DiskStation by Synology (opens new window) is a famous NAS server solution for your home, allowing the installation of additional packages. We are proud to be able to provide an openHAB Synology package (opens new window).

# Prerequisite - Install Java

Current releases of openHAB require Oracle Java due to the generation of certificates based on EC (opens new window) 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 install the Synology Java8 package from Package Center. After installation, OpenJDK will be used by default and must be upgraded. To update Oracle JDK to Java8, click the Install Java / Upgrade Java button and then follow the onscreen instructions. The filename and format of the uploaded file will be checked before installation.

Armada 370/XP systems running DSM 6 require hard float ABI rather than the soft float used on DSM 5. If there is not a Java8 package in the Package Center, your machine may not be supported by the Synology package (opens new window).

The best option for older unsupported Synology models such as PowerPC and ARMv5 is to include the PC-Loadletter (opens new window) Repo. Download Java SE (opens new window) (latest ARMv6) (opens new window) (Java Cryptography Extension if required) (opens new window) and put them in the public folder of your NAS. Then start the installation of Java8 SE.

Note that it may be necessary to rename the downloaded file to match the name the Loadletter utility expects which may be an older version than what is currently available.

The Java8 PowerPC versions are available from Oracle (opens new window).

# Installation

Download the latest SPK package: Releases (opens new window) The SPK is a wrapper to download the latest openHAB release and does not contain openHAB itself.

  1. Login and open the DiskStation Manager.
  2. Go to Control Panel → User → Advanced → User Home and check 'Enable user home service'
  3. Go to Main Menu → Package Center.
  4. Click on the Manual Install button.
  5. Click "Choose File" and select the previously downloaded openHAB .spk file.
  6. On the confirmation page: If you would like the package to run immediately after installation, make sure the box next to "Run after Installation" is ticked.
  7. Click Apply to start installation.

If your NAS cannot connect to the internet, the installer will tell you to download and place the ZIP file into your NAS public folder.

# Configuration

The location of configuration files by openHAB differs depending on wether or not a shared folder named public exists:

  • with public share folder: /volume1/public/openHAB/conf/
  • without public share folder: /volume1/@appstore/openHAB/conf/

For certain Synology models the public folder is created automatically during the first setup. The administrator can also create a public shared folder if desired.

Synology does not document which models will automatically create a public folder. Refer to the Synology knowlegde base article on Shared Folder (opens new window) to learn more.

# Logging

The openHAB log files can be found here: /volume1/@appstore/openHAB/userdata/logs/.

From Version openHAB-2.2.0.006 the SPK generates two log files located at /var/log/.

The first log file openHAB-install.log will be generated during the installation. If you can't install the openHAB SPK, please have a look inside the file.

The second log openHAB-start-stop.log will be generated by starting and stopping openHAB inside the Package Manager.