I had a working Z-Wave setup with OpenHAB 1.1 in the beginnig of this year. After I talked to @teichsta on a conference some months ago, I decided to give OH2 a try and wanted to start with the Z-Wave devices I configured the last time.
So I have got a Raspberry Pi 3 with 2016-05-10-raspbian-jessie and updates and latest OH2. I connected a Z-Wave.me UZB Stick and two Switches (a Fibaro Wall Plug FGWPF-102 and a Duewi Switch which i think is discontinued now). So, the two switches were included under the old setup and OH2 with Habmin installed sees the 3 devices. But I cannot find the include button wich, according to http://www.cd-jackson.com/index.php/openhab/habmin/10-habmin-zwave-binding-initialisation should exist. And I cannot manually switch the switches by clicking on the Switch item in the item description, but it produces these log messages: 2016-06-26 19:18:00.029 [ItemStateChangedEvent ] - Wifi_Level changed from 1 to 0 2016-06-26 19:18:00.624 [ItemCommandEvent ] - Item 'zwave_device_cb8c2742_node4_switch_binary' received command OFF 2016-06-26 19:18:00.638 [ItemStateChangedEvent ] - zwave_device_cb8c2742_node4_switch_binary changed from ON to OFF 2016-06-26 19:18:01.839 [ItemCommandEvent ] - Item 'zwave_device_cb8c2742_node4_switch_binary' received command ON 2016-06-26 19:18:01.853 [ItemStateChangedEvent ] - zwave_device_cb8c2742_node4_switch_binary changed from OFF to ON
So it looks like something basic is missing. Any idea?
Thanks in advance
Marcel
The include button should be there (I don’t think it can be disabled or hidden at all!), and once the controller is added, it should add ZWave to the list once you press the button.
Can you provide a screenshot of what you’re seeing?
Thanks, Chris,
I was just browsing through the logs, fetching relevant information as the devices changed their status to green. So, I just had to wait 10 to 15 minutes or something. Strange. Anyway. I could activate the include mode and include another device. This is now shown as “Node 5 - Unknown Device” although it is the same device as the other Fibaro plug (bought later, so maybe a different revision), but without manufacturer and type id. Shouldn’t at least these be there?
^
There are some log messages regarding the device which look like it’s not recognized correctly: 22:12:50.867 [ERROR] [ocol.ZWaveController$ZWaveSendThread] - NODE 5: Timeout while sending message. Requeueing - 0 attempts left! 22:12:50.868 [ERROR] [l.serialmessage.SendDataMessageClass] - NODE 5: Got an error while sending data. Resending message. 22:12:51.147 [WARN ] [tocol.commandclass.ZWaveCommandClass] - NODE 5: Unsupported command class MULTI_INSTANCE_ASSOCIATION 22:12:53.371 [INFO ] [ommandclass.ZWaveVersionCommandClass] - NODE 5: Command Class NO_OPERATION has version 0! 22:12:54.248 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing 'zwave:device:cb8c2742:node5' has been updated.
It would be worth upgrading the binding to a more recent version. I’m not sure it will solve the issue as I’m still looking into this problem, but it might help as there have been some updates since beta 3.
I tried upgrading the binding. I formerly installed OH2 from the apt repository, So I think there is not official “apt way” to upgrade. Not knowing if that is the right way, I replaced the old binding jar by /usr/share/openhab2/runtime/karaf/system/org/openhab/binding/org.openhab.binding.zwave/2.0.0-SNAPSHOT/org.openhab.binding.zwave-2.0.0-SNAPSHOT.jar, but karaf still reports 202 | Active | 80 | 2.0.0.b3 | ZWave Binding, so I think the upgrade didn’t work. I didn’t find any other zwave*jar on the RPis file system.
But I discovered /var/lib/openhab2/zwave/node[3|5].xml and found out that they are identical (except timestamps and node ids). I excluded and re-included the “Unknown device”, but that didn’t change anything.
I installed a fresh version (downloaded OH2-Offline snapshot from monday (2016-06-27) evening - Z-Wave binding 2.0.0.201606271619) in parallel, started it with just Z-Wave binding activated and that installation sees the new node (node 5 above) and can also switch the wall plug. So I had another new wall plug and wanted to include that one also. Same as for the other new one, shown as unknown device (Node 6 now), The node-xml is a bit different this time.^
The log for inclusion:
It’s hard to tell what’s happening without a debug log, but it does look like commands are timing out for some reason. This could be network topology - looking at the plot it looks like nodes 3/4/5 can’t talk to node 6, but this may just be because the neighbour lists haven’t all updated after node 6 was added.
Node 6 and the other ares are seeing each other by now, but Node 6 is still unknown. I attached the debug output of starting up OH2. Looks like the thread Fibaro FGMS-001 Showing as Unknown Device could be a similar problem?
At least in this log, I don’t see the initialisation proceeding, so the binding doesn’t know the manufacturer and device IDs. I guess given you have an XML, that it has done this previously.
What happens if you don’t add the thing - just include the device, but when it appears in the inbox, don’t add it. Does it finally get found?
I’m not completely sure what you want to do now… If you want to exclude the device, then you can do this by clicking on the controller, and clicking on “Exclude Devices”. This puts the controller into exclude mode, and you then need to click on the device.
You won’t be able to use the “Remove device from controller option” - the controller will not allow this to be used with a device that is working (ie not FAILED) and we know this device is ok as it is marked healthy. For healthy devices, if you want to remove them, then use the exclude option as this is the normal way to remove devices in ZWave networks.
However, you shouldn’t need to remove it - just delete the thing, delete the XML and restart the binding. It should be rediscovered and then leave the initialisation to complete to see if it is then discovered. You can email me the complete log if you like.
Thank you, I was not aware of the difference between remove and exclude. But now it’s clear. I excluded the plug and included it, I is now in the inbox. I sent the log to chris personally.
Thank you Chris for investigating it. I has some time yesterday to play around with my Z-Wave devices and OpenHAB.Deleting thing and XML and restart the binding worked fine for the wall plugs.I received a Fibaro Motion Sensor (FGMS-001) and had really trouble including it, even with the delete trick. After several times (includingt waiting something happens after some time and restarting the whole server) it finally worked. Maybe the trick dosn’t work as well for battery devices. Anyway, I can see all my devices now.
Many times, after a server restart, the whole Z-Wave stack doesn’t seem to work (everything is uninitialized, no debug messages), but after 1 to 5 restarts, it finally works.
So, now I will finally have a look at how the rest of OpenHAB2 works.