Testing OH2 with Z-wave

Hi,

Just to introduce myself as I am new to openHAB community.
I have been working in IT industry as developer for more than 18 years and past ~14 years as IT architect. My main focus has always been Java but cheating in other programming languages.

I have my existing Vera3 Z-wave home automation system up and running for 2-3 years and now I felt curious to explore other options…and I have known openHAB for a long time :slight_smile:
So at Christmas I purchased a Aeotec Gen5 stick to start playing in parallell to existing Z-wave and if I get it working and it’s stable I will migrate… still to be proven :wink:
Now when testing and learning openHAB I try to do it as newbie in order to test and evaluate the software.

So I have the Aeotec 5Gen USB Stick…first I got it onto Raspberry PI 2 with Raspbian Jessie. Everything started and I got Z-wave stick working and it detects two items (the stick I assume and a included switch).
In order to simplify testing/evaluation I started to use my workstation as test bench .

Starting “distribution-2.0.0-SNAPSHOT-demo” with addition of Z-wave binding (org.openhab.binding.zwave-1.8.0-SNAPSHOT) it starts and find two items.

2016-01-03 17:45:18.918 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, port = COM10
2016-01-03 17:45:18.931 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, healtime = 2
2016-01-03 17:45:18.931 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, softReset = false
2016-01-03 17:45:18.936 [INFO ] [b.z.i.protocol.ZWaveController] - Starting Z-Wave controller
2016-01-03 17:45:18.936 [INFO ] [b.z.i.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
2016-01-03 17:45:18.936 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to serial port COM10
2016-01-03 17:45:18.948 [INFO ] [.service.AbstractActiveService] - ZWave Refresh Service has been started
2016-01-03 17:45:19.330 [INFO ] [.s.u.b.i.servlet.WebAppServlet] - Started Basic UI at /basicui/app
....snip....
2016-01-03 17:44:24.008 [INFO ] [rialApiGetInitDataMessageClass] - NODE 1: Node found
2016-01-03 17:44:24.009 [INFO ] [rialApiGetInitDataMessageClass] - NODE 2: Node found
2016-01-03 17:44:24.009 [INFO ] [rialApiGetInitDataMessageClass] - ZWave Controller using Controller API
2016-01-03 17:44:24.009 [INFO ] [rialApiGetInitDataMessageClass] - ZWave Controller is Primary Controller
2016-01-03 17:44:24.009 [INFO ] [rialApiGetInitDataMessageClass] - ------------Number of Nodes Found Registered to ZWave Controller------------
2016-01-03 17:44:24.010 [INFO ] [rialApiGetInitDataMessageClass] - # Nodes = 2
2016-01-03 17:44:24.010 [INFO ] [rialApiGetInitDataMessageClass] - ----------------------------------------------------------------------------
2016-01-03 17:44:24.210 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = SWITCH_BINARY, value = 255, ignoring.
2016-01-03 17:44:24.248 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = METER, value = 0E+1, ignoring.
2016-01-03 17:44:24.285 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = METER, value = 0E+1, ignoring.
2016-01-03 17:44:24.321 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = METER, value = 0E+1, ignoring.
2016-01-03 17:44:24.357 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = METER, value = 0E+1, ignoring.
2016-01-03 17:44:24.394 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No item bound for event, endpoint = 0, command class = METER, value = 228.5, ignoring.`

The WebUI (paper UI) doesn't show any Z-wave bindings/things; why is that?

I have also made an attempt with OH1 (1.7.1) but got error so for now I am testing on OH2
`Launching the openHAB runtime...
osgi> 2016-01-03 17:49:45.599 [WARN ] [o.config.core.ConfigDispatcher] - Main openHAB configuration file 'configurations/openhab.cfg' does not exist.
2016-01-03 17:49:45.603 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.7.1).
2016-01-03 17:49:46.077 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
2016-01-03 17:49:46.119 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
2016-01-03 17:49:47.346 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
2016-01-03 17:49:56.434 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Classic UI at /openhab.app
2016-01-03 17:50:06.485 [WARN ] [e.jetty.servlet.ServletHandler] - /openhab.app
org.openhab.ui.webapp.render.RenderException: Sitemap 'default' could not be found

Try HabMin2 for OH2 (https://github.com/cdjackson/HABmin2)

There you can See your Zwave controller

(Dont forget Zwave.cfg in services folder also; see how: https://github.com/openhab/openhab2/issues/180 )

The background why habmin and Zwave are not fully standard of oh2 is nothing i can help with…

I’m not going to go into HABmin discussions, but just to say that this wasn’t something that OH wanted at the time (ie a admin interface). However, the Z-Wave binding is, and always has been, part of OH.

Thanks @shorty707 for the tip and I have started to test it on both OH1 and OH2 and I can get device configurations etc but need to figure how to use it in automation and also in direct control (e.g. set a switch into ON/OFF mode).

And as for you @chris I would like to take my hat off to you and thank you for the great contribution to openHAB and also to dataMine which am currently using on Vera :wink: Thanks!

I need to explore HABmin and openHAB a bit more

Wow - I’m amazed DataMine still going :smile: I’ve certainly not been using it (or my Vera) for 2 1/2 years or so I think…

Enjoy :smile:

1 Like

Ha :wink:

But I heard it will be fully integrated in OH2 Beta or Final… Is that correct?
Everything else would be very sad :smile:

Eagerly waiting for a new snapshot :wink:

1 Like