OpenHab 1.8 and Habmin

Hi all,

I’m new here and just playing around with some demo set ups. My wife and I are purchasing a new a place and we have a year in which to do it up. My intention is to automate the house as much as possible.

I have tried to install habmin on OH1.8 and OH2 and not managed to connect to it successfully. On OH1.8 I downloaded: https://github.com/cdjackson/HABmin/releases/download/0.1.3-snapshot/habmin.zip

Unzipped it in the OH installation directory (/etc/openhab). I have tried an alternative installation method as well without success.

If I list the OH install directory I have:

drwxrwxrwx 2 root root 4096 Jan 18 20:49 addons
drwxr-xr-x 8 openhab openhab 4096 Jan 15 20:02 configurations
-rw-r–r-- 1 root root 3744052 Jun 20 2014 habmin.zip
-rw-r–r-- 1 root root 3744052 Jun 20 2014 habmin.zip.1
drwxr-xr-x 4 root root 4096 Jan 15 18:18 jetty
-rw-r–r-- 1 root root 2583 Jan 10 21:31 logback_debug.xml
-rw-r–r-- 1 root root 2311 Jan 10 21:31 logback.xml
-rw-r–r-- 1 root root 145 Jan 10 21:31 login.conf
drwxr-xr-x 2 root root 4096 Jan 15 23:37 persistence
-rw-r–r-- 1 root root 302 Jan 10 21:31 quartz.properties
-rw-r–r-- 1 root root 657 Jan 10 20:28 README.TXT
drwxr-xr-x 3 root root 4096 Jun 20 2014 webapps

In /etc/webapps/habmin I have:

drwxr-xr-x 7 root root 4096 Jun 20 2014 app
-rw-r–r-- 1 root root 16047 Jun 20 2014 chart.html
drwxr-xr-x 2 root root 4096 Jun 20 2014 images
-rw-r–r-- 1 root root 2955 Jun 20 2014 index.html
drwxr-xr-x 3 root root 4096 Jun 20 2014 js
drwxr-xr-x 2 root root 4096 Jun 20 2014 openhab
drwxr-xr-x 4 root root 4096 Jun 20 2014 resources

And in /addons I have:

-rw-r–r-- 1 root root 19557 Jan 10 22:13 org.openhab.binding.http-1.8.0.jar
-rw-r–r-- 1 root root 10404 Jan 10 22:13 org.openhab.binding.ntp-1.8.0.jar
-rw-r–r-- 1 root root 872513 Jun 20 2014 org.openhab.binding.zwave-1.5.0-SNAPSHOT.jar
-rw-r–r-- 1 root root 1123714 Jun 20 2014 org.openhab.io.habmin-1.5.0-SNAPSHOT.jar
-rw-r–r-- 1 root root 6162 Jan 10 22:17 org.openhab.persistence.exec-1.8.0.jar
-rw-r–r-- 1 root root 7346 Jan 10 22:17 org.openhab.persistence.logging-1.8.0.jar
-rw-r–r-- 1 pixie pixie 832950 Jan 15 22:46 org.openhab.persistence.mysql-1.8.0.jar
-rw-r–r-- 1 root root 624560 Jan 10 22:17 org.openhab.persistence.rrd4j-1.8.0.jar

I’m stuck so I am hoping someone will be able to assist me as I’m hoping that habmin will simplify the configuration process greatly. I have the demo site installed and have made a copy of this and played around with this. Sorry if I have posted this in the wrong section or anything :).

Thanks in advance!!

Sorry I should have said the error I’m getting is:

HTTP ERROR 404

Problem accessing /habmin/index.html. Reason:

ProxyServlet: /habmin/index.html

Powered by Jetty://

I’m not sure if this is the issue, but I would consider upgrading to a more recent version of zwave and habmin - version 1.5 is very old (probably nearly 2 years I think). I would certainly solve this first…

Thanks Chris for your response - I’ve just looked in https://github.com/cdjackson/HABmin/releases and the .zip latest zip contains the 1.5 versions. Daft question but should I grab later versions from https://github.com/cdjackson/HABmin/tree/master/addons then?

Cheers,
Adam

I’ve grabbed the files but still the same error (I stopped and started OH). The files I have in addons/ are:

-rw-r–r-- 1 root root 19557 Jan 10 22:13 org.openhab.binding.http-1.8.0.jar
-rw-r–r-- 1 root root 10404 Jan 10 22:13 org.openhab.binding.ntp-1.8.0.jar
-rw-r–r-- 1 root root 30519 Jan 18 22:00 org.openhab.binding.zwave-1.8.0-SNAPSHOT.jar
-rw-r–r-- 1 root root 30444 Jan 18 22:01 org.openhab.io.habmin-1.7.0-SNAPSHOT.jar
-rw-r–r-- 1 root root 6162 Jan 10 22:17 org.openhab.persistence.exec-1.8.0.jar
-rw-r–r-- 1 root root 7346 Jan 10 22:17 org.openhab.persistence.logging-1.8.0.jar
-rw-r–r-- 1 pixie pixie 832950 Jan 15 22:46 org.openhab.persistence.mysql-1.8.0.jar
-rw-r–r-- 1 root root 624560 Jan 10 22:17 org.openhab.persistence.rrd4j-1.8.0.jar

Any thoughts?

The files you downloaded from github are corrupt - both the zwave and the habmin binding should both be around 1MB. This is a common problem with downloading binaries from github… Just try again, or, when you click the file to download, then click RAW just above and to the right of the filename.

Thanks Chris! I will retry tonight when I get home!

Still no luck, I’m afraid - I grabbed the files as RAW as above, scp’d them over to the VM running OH1 and still getting the same error.

addons/ now looks like this:

-rw-r–r-- 1 root root 19557 Jan 10 22:13 org.openhab.binding.http-1.8.0.jar
-rw-r–r-- 1 root root 10404 Jan 10 22:13 org.openhab.binding.ntp-1.8.0.jar
-rw-r–r-- 1 root root 1133742 Jan 19 17:19 org.openhab.binding.zwave-1.8.0-SNAPSHOT.jar
-rw-r–r-- 1 root root 1134175 Jan 19 17:16 org.openhab.io.habmin-1.7.0-SNAPSHOT.jar
-rw-r–r-- 1 root root 6162 Jan 10 22:17 org.openhab.persistence.exec-1.8.0.jar
-rw-r–r-- 1 root root 7346 Jan 10 22:17 org.openhab.persistence.logging-1.8.0.jar
-rw-r–r-- 1 pixie pixie 832950 Jan 15 22:46 org.openhab.persistence.mysql-1.8.0.jar
-rw-r–r-- 1 root root 624560 Jan 10 22:17 org.openhab.persistence.rrd4j-1.8.0.jar

:S the only other thing I can think to do is to grab the RAW 1.5 versions and trying those. Any thoughts on other steps to try while I try this?

Nope tried the 1.5 versions using the same process, moving the newer versions then stopping and starting openhab and still no luck.

Solved it!! I went back through the openhab documentation and on this page:https://github.com/openhab/openhab/wiki/Linux---OS-X#apt-get followed the file locations section and moved the bindings and webapps folder to /usr/share/openhab. Stop and restart openhab and it loaded!

Glad it’s working :smile:

Would you expand on what you did via apt-get? I am not following…

Background:
I am trying to install Habmin on OpenHab 1.8, however I cannot find the openhab-addon-io-habmin via apt-get…

Thanks!

Habmin is not yet in the apt repository, you have to download it from here (use raw and check the correct filesize after downloading).

Hi Caleb,

As I have openhab installed on a Ubuntu server in a vm I had to download it and scp it across to the Ubuntu server. How have you got it installed?

Cheers,
Adam

I habe openhab on an debian server and tried to install Habmin
after serching the net and some frustrating attemps I followed these steps:

cd /usr/share/openhab
wget https://github.com/cdjackson/HABmin/releases/download/0.1.3-snapshot/habmin.zip
unzip habmin.zip
/etc/init.d/openhab restart

Browse: http://“ip-adress”:8080/habmin

voila - habmin; but it looks like habmin doesn’t read exisitng *.items
I will have to spent another evening to figure that out

mox

Don’t forget to copy the zwave and habmin bindings into the usr/share/openhab/addons folder:
https://github.com/cdjackson/HABmin/tree/master/addons
Your extracted habmin files should be in /usr/share/openhab/webapps/habmin

Ok a little confused on this install…

I have installed the latest master.zip file into “/opt/openhab/webapps/habmin/”

It comes up fine using my local url and :8080/habmin

There is an addons folder in the “/opt/openhab/webapps/habmin/addons/” folder. There is the 1.8.0 zwave binding there and it does not show in my bindings.

I have several bindings in my “/opt/openhab/addons/” folder. Those do not show up at all. I also have a sitemap and an item setup that do not show either.

Where are the bindings and sitemap supposed to be? Is there somewhere else that habmin should be installed? I thought I followed the directions pretty well…

thanks!

Hi Clint,

Have you tried installing it in/usr/share/openhab? I think you the instructions you followed are for raspberry pi installations.

Cheers,
Adam

Cleared everything out and after some trial and error and using the directions from homeautomationgeek:

cd /opt/openhab
sudo wget https://github.com/cdjackson/HABmin/releases/download/0.1.3-snapshot/habmin.zip
sudo unzip habmin.zip

i think i have it setup correctly now. not sure what was up with master.zip but its working now.

thanks!

The different answers here are based on two different install methods and habmin has to be installed in different folders based on the chosen install method:

Manual install:
1a) manual install of openhab:
the tutorials recommend to copy the downloaded files in
/opt/openhab
The addons folder for ALL addons is /opt/openhab/addons

1b) habmin based on manual install:
extracted habmin.zip goes to
/opt/openhab/webapps/habmin/
zwave and habmin jar go to /opt/openhab/addons

apt-get install
2a) apt-get install of openhab:
this creates a completely different folder structure, there is NO /opt/openhab folder
Instead you have (among others) for ALL addons:
usr/share/openhab/addons

2b) habmin based on apt-get install:
extracted habmin.zip goes to
/usr/share/openhab/webapps/habmin
zwave and habmin jar go to
/usr/share/openhab/addons

If you have mixed these two different install methods it won’t work.
Easiest way is to start from scratch …