OH 2.x + Hue / zWave 1.x binding does not work

Platform information: Win10 64bit / 32GB RAM / intel Z270 / M2e SSD
Java Runtime Environment: 1.8.0_152

Dear all

I’m on the migration to OH2. Since I had several problems with the hue 2.x binding I wanted to try the 1.x.

Here I see several errors:

Either there is something missing:

2017-11-26 10:27:00.394 [ERROR] [org.openhab.binding.hue             ] - FrameworkEvent ERROR - org.openhab.binding.hue
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.hue [208]
  Unresolved requirement: Import-Package: com.sun.jersey.api.client

	at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

Please note: the compatibility layer has been installed with

feature:install openhab-runtime-compat1x

And I cannot install via Karaf:

2017-11-26 10:15:17.283 [ERROR] [apache.karaf.shell.support.ShellUtil] - Exception caught while executing command
java.lang.IllegalArgumentException: No matching features for openhab-binding-hue1/0.0.0

And I cannot install via PaperUI, there appears only the 2.x binding.

I tried also to copy the 1.x jar-file into the addon folder, the binding appears in Karaf console but stays always in state “installed” and goes never to “Active”.

How can I install the Hue 1.x binding on OH2?

I just realized that same applies for the zWave 1.x binding, here I get a similar error:

2017-11-26 10:42:41.872 [ERROR] [org.openhab.binding.zwave           ] - FrameworkEvent ERROR - org.openhab.binding.zwave
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.zwave [212]
  Unresolved requirement: Import-Package: gnu.io

	at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

Thanks & Regards
John

For the ZWave error, you need to add the serial bundle :

feature:install openhab-transport-serial

Thanks @chris - that solved the zWave problem.

Unfortunately HUE is still causing same problems.

Or add serial1 to the binding line in /etc/openhab2/services/addons.cfg to have OH load that automatically.

You need to enable Legacy mode which will show the 1.x version of bindings when there are 2.x versions available. By default this setting is set to false.

You can change it in PaperUI or via addons.cfg.

It should then show up in PaperUI and you can install it like any other add-on.