Testing Z-Wave binding on openHAB-2

Well, the light switch that I was able to add to the controller initially show initializing. After wating about 5 minutes on that, I restarted OH2. Now it appears showing as ‘Offline’ in PaperUI and Red X in habmin.

If i can find out remove the device from the controller, I’ll try and readd and see what happens.

in old habmin the Node (empty no devices added) could be viewed somewhere… I thought it was at tools / log viewer

I have many devices… none are shown as availbale thing yet

I’m not 100% sure what you mean, but in HABmin1, the controller did show up in the nodes list. It basically does here as well, but it’s not shown in quite the same way. Instead it’s shown as the Serial Controller.

Can you describe more what you mean? When devices are detected, then show up in the inbox, and then you can approve/add them, and they are moved to the thing configuration.

When you say they aren’t available, what does that mean?

If i got it right I go to configuration and have 2 options

Magnifying glass (+) does Start discovery for zwave things… Thats not Find any Device ( Device is in inclusion mode)

Or second manually add things … That Lists 59 possible devices. All mine are not there. (Nodon, devolo, Dlink,…) they are in the DB but not marked as “finished”

Strange - is this the same stick you had for OH1? ie are there already devices attached to this controller? If so, it should just list all the devices… The only exception is battery devices - these won’t show up until the device finishes part of its initialisation.

If you already have the XML files from OH1, then I would encourage you to upload them to the database so we can get them added…

I think I can maybe confirm what @shorty707 is seeing. I had attempted to add 1 item to my ZME-UZB1 stick on a windows laptop right next to the switch. And that device get showing as unitialized the entire time. And this is hardwired switch.

So after about 30 minutes, I decided to move that ZME-UZB1 stick back over my Ubuntu VM box. Now when I restarted OH2 on that machine, the Zwave controller showed up fine but not the switch/device that was added to it?

@chris Please forgive me as i know it must be posted someplace, but is there a link, etc to where to upload existing OH1 xml files to? I mainly have Leviton switches, but I can upload what i have if it helps.

Can you provide a log?

Sure - it’s here.

@chris would you like the entire log file, or just some of the lines on zwave? I see I can’t upload a log file here, but I could post it to google if you would like?

This is part of the log from when I had it connected to my windows laptop (Win7 machine)

2016-02-14 15:14:09.950 [INFO ] [marthome.event.ItemStateChangedEvent] - zwave_serial_zstick_152e09d16e6_serial_sof changed from 1 to 2
2016-02-14 15:14:09.952 [INFO ] [marthome.event.ItemStateChangedEvent] - zwave_serial_zstick_152e09d16e6_serial_ack changed from 2 to 3
2016-02-14 15:14:09.953 [INFO ] [marthome.event.ItemStateChangedEvent] - zwave_serial_zstick_152e09d16e6_serial_sof changed from 2 to 3
2016-02-14 15:14:09.954 [INFO ] [marthome.event.ItemStateChangedEvent] - zwave_serial_zstick_152e09d16e6_serial_ack changed from 3 to 4
2016-02-14 15:14:09.954 [INFO ] [marthome.event.ItemStateChangedEvent] - zwave_serial_zstick_152e09d16e6_serial_sof changed from 3 to 4
2016-02-14 15:14:09.955 [INFO ] [marthome.event.ItemStateChangedEvent] - zwave_serial_zstick_152e09d16e6_serial_ack changed from 4 to 5
2016-02-14 15:14:09.956 [INFO ] [marthome.event.ItemStateChangedEvent] - zwave_serial_zstick_152e09d16e6_serial_sof changed from 4 to 5
2016-02-14 15:14:09.957 [INFO ] [marthome.event.ItemStateChangedEvent] - zwave_serial_zstick_152e09d16e6_serial_ack changed from 5 to 6
2016-02-14 15:14:09.957 [INFO ] [marthome.event.ItemStateChangedEvent] - Heating_FF_Bed changed from NULL to ON
2016-02-14 15:14:09.958 [INFO ] [ome.event.GroupItemStateChangedEvent] - Status changed from NULL to 18.800000000000000710542735760100185871124267578125 through Temperature
2016-02-14 15:14:09.959 [INFO ] [ome.event.GroupItemStateChangedEvent] - Temperature changed from NULL to 18.800000000000000710542735760100185871124267578125 through Temperature_GF_Corridor
2016-02-14 15:14:09.964 [INFO ] [age.SerialApiGetInitDataMessageClass] - NODE 1: Node found
2016-02-14 15:14:09.964 [INFO ] [age.SerialApiGetInitDataMessageClass] - NODE 2: Node found
2016-02-14 15:14:09.964 [INFO ] [age.SerialApiGetInitDataMessageClass] - NODE 3: Node found
2016-02-14 15:14:09.965 [INFO ] [age.SerialApiGetInitDataMessageClass] - ZWave Controller using Controller API
2016-02-14 15:14:09.965 [INFO ] [age.SerialApiGetInitDataMessageClass] - ZWave Controller is Primary Controller
2016-02-14 15:14:09.965 [INFO ] [age.SerialApiGetInitDataMessageClass] - ------------Number of Nodes Found Registered to ZWave Controller------------
2016-02-14 15:14:09.965 [INFO ] [age.SerialApiGetInitDataMessageClass] - # Nodes = 3
2016-02-14 15:14:09.965 [INFO ] [age.SerialApiGetInitDataMessageClass] - ----------------------------------------------------------------------------

And then later down in the log is this as well

2016-02-14 15:25:56.846 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'zwave:unknown:152e09d16e6:node3' changed from OFFLINE to UNINITIALIZED (HANDLER_MISSING_ERROR)
2016-02-14 15:25:57.020 [INFO ] [smarthome.event.ItemRemovedEvent    ] - Item 'zwave_unknown_152e09d16e6_node3' has been removed.
2016-02-14 15:25:57.114 [INFO ] [home.event.ItemThingLinkRemovedEvent] - Link 'zwave_unknown_152e09d16e6_node3-zwave:unknown:152e09d16e6:node3' has been removed.
2016-02-14 15:25:57.116 [INFO ] [smarthome.event.ThingRemovedEvent   ] - Thing 'zwave:unknown:152e09d16e6:node3' has been removed.

At least part of this is because your device isn’t in the database - I’d definitely suggest trying to get the devices added…

@chris,

Can we somehow just add the entire db in the /path_to_open_hab/userdata/zwave/nodes_all.xml ?

And the configs are pulled as discovered/needed? Or is are they being pulled from your online DB as discovered/needed?

I’m not sure what you mean? I’m adding the database entries as they are added to the database.

It’s compiled in to the JAR in he same way was it was in OH1 - except it’s obviously a different format since it needs to be the ESH format.

I guess I am having a hard time understanding the way they are added or if each node needs to be added manually and placed in the ./userdata/zwave/ folder.

I have, for now, just the zwave controller (Aeon Labs ZW090). Since it is Node 1 I added the contents of the exported, openHAB-2 product file for Aeon Labs ZW090, into file the file node1.xml. Once I saved the pathway in Habmin, all this was replaced within the attached
node1.xml (1.1 KB)

@chris - I added the Zwave info I have, which surprisingly i didn’t see in the listed in the device list. Its really only 4 different pieces of hardware.

Leviton Switch
Leviton Dimmer Switch
A Garage door sensor (from monoprice)
and an Aeon RGBW bulb

Have a read of the thread I posted on the database (referenced again at the top of this post), or read through the description on the website

The database is compiled into the JAR - it’s similar to how it was done in OH1, but for OH2 the database needs more information. In order to get this, it’s best to upload the XML files from the userdata/zwave folder as this will provide some default data that we can edit to update. The files aren’t placed INTO the userdata folder…

You basically just need to take the files from the userdata/zwave folder and upload it to the database - it’s all described in the page I referenced a couple of posts ago.

Thanks. I’ve processed these files and I’ll generate a new binding and load it to github shortly.

@ptmuldoon - that’s done… Let me know if you have any better luck with this version (I’m off to bed shortly so will pick this up again tomorrow night).

Just to continue the explanation of the database and why it’s changed from OH1… OH2 is meant to be more automatic, and user friendly. One thing that was a problem in OH1 was everyone had to generate the binding strings, and this was a major source of configuration error. In OH2, this is done automatically - ie the data is added to the database files. So, once the database is correctly configured, OH2 ought to ‘just work’ once the device is added…

The online database I’ve come up with allows the XML files to be loaded and processed. A lot of the information required is stored in these XML files - this is used as the default for each device, and users can then edit them to improve the data. The current database starts from the OH1 database, so we have all the configuration and association information, but we need to add the information about the items (actually, channels in OH2 terminology).

I hope that helps to explain the rational…

I see… From what it seems I don’t have access rights to add any files in the DB. I can only search and export.

I’ve just updated you… I don’t automatically give everyone who registers on the site write access - since anyone can register, there needs to be some sort of control to stop (or reduce at least) any malicious input.

Understood, and thank you. I have numerous devices I will be adding to the mix. Thank you for your patience.

No probs, and thanks for yours :slightly_smiling:

Any hassles with the database, just yell… Anything you add tonight I’ll process tomorrow night now…