[SOLVED] Locks control in openhab2 using zwave

Hi,
Has anyone has any luck controlling a lock using openhab2 and zwave binding. Please share what lock and binding did you use.

Thanks
Nidhi

You must use the binding in the following thread -:

Personally, I use the Yale Keyfree and it works very well.

1 Like

Chris,
Using the July 19th build, I see the following error in log

2017-07-20 09:43:40.404 [DEBUG] [nal.protocol.ZWaveTransactionManager] - STOP transaction timer
2017-07-20 09:45:40.225 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 2: Command received zwave:device:027df97e:node2:lock_door --> OFF
2017-07-20 09:45:40.226 [WARN ] [nal.converter.ZWaveDoorLockConverter] - NODE 2: Command class COMMAND_CLASS_DOOR_LOCK not found
2017-07-20 09:45:40.227 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 2: No messages returned from converter
2017-07-20 09:45:41.803 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 2: Command received zwave:device:027df97e:node2:lock_door --> ON
2017-07-20 09:45:41.803 [WARN ] [nal.converter.ZWaveDoorLockConverter] - NODE 2: Command class COMMAND_CLASS_DOOR_LOCK not found
2017-07-20 09:45:41.804 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 2: No messages returned from converter
2017-07-20 09:45:46.955 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 2: Command received zwave:device:027df97e:node2:lock_door --> REFRESH
2017-07-20 09:45:46.956 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 2: Polling intialised at 1800 seconds - start in 50 milliseconds.
2017-07-20 09:45:46.956 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 2: Command received zwave:device:027df97e:node2:alarm_general --> REFRESH
2017-07-20 09:45:46.956 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 2: Polling intialised at 1800 seconds - start in 50 milliseconds.
2017-07-20 09:45:46.956 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate command 'REFRESH' for item 'ZWaveNode2YRD210PushButtonDeadbolt_BatteryLevel' to handler for channel 'zwave:device:6af68e25:node2:battery-level', because no thing with the UID 'zwave:device:6af68e25:node2' could be found.
2017-07-20 09:45:46.9

I guess you’ve not securely included the device so these channels are not available.

Chris,
I installed everything again. But I still see
NODE 2: SECURITY_INC State=FAILED

in log.
How do I include the device securely. I used the paper UI to add the things and used the Habmin to create the items.

Really it’s hard to say what’s happening from one line - sorry. Inclusion should be done in the normal way - read the manual of your device and I would strongly recommend to use HABmin to do the inclusion. The device must be fully reset before starting the inclusion process - again - check the manual for secure inclusion.

Chris,
Here is the procedure I followed using the device manual.
Unplug the USB Z-stick controller from PC.
Put it in inclusion mode. Asked the Yale lock to join the network using the key sequence.
Plugged the USB Z-stick back to PC.
Using Paper UI added the Z-stick device. After the thing was added, the OpenHab automatically discovered the lock and I added it using paper UI.
Then I added the items and channels using HABMin UI.

Should I be not using the inclusion mode as specified by Z-stick. Should I be using HABMin. Int he HabMin menu, “Z-wave Network Viewer” is showing me three nodes (I also have a zwave plug in my network). But in the network, the node for lock has a pink outline in the circle, whereas for the zwave plug and zstick have blue outline circle.

What does this tell?
I can provide the whole log if that will be helpful.

What you are doing will certainly not work! You MUST use HABmin or at least PaperUI - the device MUST be included with the binding running since secure inclusion must happen within 15 seconds of the device being included and this is simply not possible with what you are doing.

Chris,
Thanks a lot for your help. I got it working using HabMin inclusion.