Getting Started with the Prototype (Part 5)

Getting Started with the Prototype (Part 5)

Lets get OpenHAB Running!

Now we’re out of the woods as it were with the hardware and interfaces, we need to get something to tie everything together. I’m using OpenHAB at the centre of my install. I’ll try and outline the setup below:


OpenHAB is platform agnostic running ontop of JAVA, at the moment the rerecorded Java Virtual Machine is Oracle Java 8.

Unfortunately while Jessie ships with Oracle JDK, it’s not up to date, and installing it can be a royal pain in the posterior. To this end, I’m going to just grab the binary and install it.

Before we do however, lets get some other useful tools.

Now that’s done, grab the latest java ARM 32 hard float tar.gz from here, and copy it to /tmp on the Pi.

Note: This next step will allow you to download it straight to the Pi, but I’ve no idea who’s ftp this is! – So I don’t trust it. Right now I’m just using it as a quick way to demo given I can’t wget from Oracle!! A better way would be to host it yourself, or scp it.

Extract the new JavaSDK to /opt

Set default java and javac to the new installed jdk8.

After all, verify with the commands with -verion option.

Download and Install OpenHAB

We’re going to use the snapshot builds, as there’s generally more features, and is a good way to know exactly what we’ll be getting. Lets follow: (

First create a user and then as some of our devices are local on GPIO we also need to add the user to the gpio group we created earlier.

Copy the link to the tar.gz here: and use it for the wget request below!

The extracted openHAB files should belong to the earlier created openhab user. Execute:

You should now be able to start open hab and try it out!

Then in a web browser of choice try: http://[ipAddressOfYourPi]:8080/

You ‘should’ be presented with the following page:

From here on in, I’m going to assume that you’ve