Prerequisite - Install Java
Current releases of openHAB 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 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.
The best option for older unsupported Synology models such as PowerPC and ARMv5 is to include the PC-Loadletter Repo. Download Java 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.
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.
Download the latest SPK package: Releases The SPK is a wrapper to download the latest openHAB release and does not contain openHAB itself.
- Login and open the DiskStation Manager.
- Go to Main Menu → Package Center.
- Click on the Manual Install button.
- Click “Choose File” and select the previously downloaded openHAB
- 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.
- 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.
The location of configuration files by openHAB differs depending on wether or not a shared folder named
- with public share folder:
- without public share folder:
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 to learn more.