Zwave - Yale smart Living Keyless Connected Smart Lock

Hi there,

Having successfully overcome the hurdle of transitioning from openHAB 1 to openHAB 2 I thought I would try and add my door locks to the system as openHAB 2 has the potential to support secure inclusion.

I have configured the zwave controller in the thing configuration to add the network inclusion key and have it set to secure include on entry control devices only. The key is of the format XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX.

Upon system startup there are no errors (other than communications to battery operated devices, etc.) in the logs that would suggest something is wrong so believe the system is nice and healthy.

To include the lock I put the controller in inclusion mode from Habmin and, following the manual, trigger an inclusion from the lock - the control stick is about 1m from the lock on a raspberry pi 3. The logs throw out lots of messages but I believe the key one is probably;

SECURITY_INITIALIZE Initialising=true, Inclusion=false, Paired=false, lastRxMsg=1476011335248ms, lastTxMsg=
8ms
SECURITY_ERROR Invalid state! Secure inclusion has not completed and we are not in inclusion mode. Aborting

That being said the device does appear both in the PaperUI and Habmin with the following information.

zwave_class_basic ROUTING_SLAVE
zwave_class_generic ENTRY_CONTROL
zwave_frequent true
zwave_neighbours
zwave_version 11.32
zwave_listening false
zwave_deviceid 0
zwave_nodeid 23
zwave_routing true
zwave_beaming true
zwave_class_specific SECURE_KEYPAD_DOOR_LOCK
zwave_manufacturer 297
zwave_devicetype 7

So really two questions,
What is the error in the secure inclusion and why does it occur?
Is this device in the database? if not I am happy to get the relevant information sorted and added.

Currently the security class is not supported in OH2, so unfortunately this doesn’t work. I’m working on updating parts of the binding to allow this to be implemented.

1 Like

Ah OK, that makes sense then!
Let me know when it is added and I will do some testing for you.

Thanks - I also have the same lock here ;).

Hi Chris,

I just stumbled upon this message and I just registered so I could offer my thanks. Honestly, you have no idea how much I admire you and everyone else who are making these amazing developments day in and day out. This work that you are doing is of particular interest to me because, after pouring my heart and soul into OpenHAB, I am thinking about taking the plunge into getting one of these Yale Keefrees. Honestly, it wouldn’t be possible without you. Please link me to your donate button!

I look forward to the future :slight_smile:

Hi All,
I am trying to upgrade from OH1 to OH2.1. I’m stuck trying to include a Yale Real Living Touch Screen Deadbolt to the ZWave network. Is the Security Class available in OH2.1? Anyway this is the log segment that is reporting the problem:

2017-07-04 19:05:51.542 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port 'COM5’
2017-07-04 19:05:52.890 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Serial port is initialized
2017-07-04 19:05:52.921 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - Update networkKey
2017-07-04 19:05:52.968 [INFO ] [ve.internal.protocol.ZWaveController] - Starting ZWave controller
2017-07-04 19:05:52.969 [INFO ] [ve.internal.protocol.ZWaveController] - ZWave timeout is set to 5000ms. Soft reset is false.
2017-07-04 19:05:56.159 [INFO ] [age.SerialApiGetInitDataMessageClass] - NODE 1: Node found
2017-07-04 19:05:56.159 [INFO ] [age.SerialApiGetInitDataMessageClass] - ZWave Controller using Controller API
2017-07-04 19:05:56.160 [INFO ] [age.SerialApiGetInitDataMessageClass] - ZWave Controller is Primary Controller
2017-07-04 19:05:56.160 [INFO ] [age.SerialApiGetInitDataMessageClass] - ------------Number of Nodes Found Registered to ZWave Controller------------
2017-07-04 19:05:56.160 [INFO ] [age.SerialApiGetInitDataMessageClass] - # Nodes = 1
2017-07-04 19:05:56.160 [INFO ] [age.SerialApiGetInitDataMessageClass] - ----------------------------------------------------------------------------
2017-07-04 19:09:57.446 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - NODE 2: setupNetworkKey useSchemeZero=false
2017-07-04 19:09:57.594 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ‘zwave:device:8e50c17b:node2’ to inbox.
2017-07-04 19:09:57.633 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - NODE 2: setupNetworkKey useSchemeZero=false
2017-07-04 19:10:02.727 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - NODE 2: setupNetworkKey useSchemeZero=true
2017-07-04 19:10:02.728 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - NODE 2: Using Scheme0 Network Key for Key Exchange since we are in inclusion mode.
2017-07-04 19:10:13.528 [ERROR] [curityCommandClassWithInitialization] - NODE 2: SECURITY_INCLUSION_FAILED Failed at step SECURITY_SCHEME_GET: 10000ms passed since last request was sent, secure inclusion failed.
2017-07-04 19:10:14.262 [INFO ] [ommandclass.ZWaveVersionCommandClass] - NODE 2: Command Class LOCK has version 0!

The controller as the following configuration:

Inclusion Mode Timeout: 30
Inclusion Mode: Network Wide Inclusion
Secure Inclusion Mode: Entry Control Devices
Network Security Key : (Set to 16 hex digits)

Thanks for having a look,

Jon

No - not in the main branch. You can use the following development branch -:

Is it still true that zwave security is only implemented in your private snapshots and not the mainline openhab 2.2 / 2.3 bindings?

Correct

It’s not in the master - that’s correct. It’s available in the marketplace if you wish to use that installation method.

I typically download the binding and dump it in addons/; I did try the marketplace but I only see binding-zwave-2.2.0 and binding-zwave-1.11.0.

Are there some current hints or best practices for including locks? So far I haven’t had any success with a Kwikset 914 lock. It seems to have included okay, in that I don’t get any messages about secure inclusion failing, but if I try to use it via the binding, I get

2018-02-18 20:20:34.610 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 152: Command received zwave:device:69d7d64d:node152:lock_door --> OFF
2018-02-18 20:20:34.611 [WARN ] [nal.converter.ZWaveDoorLockConverter] - NODE 152: Command class COMMAND_CLASS_DOOR_LOCK not found
2018-02-18 20:20:34.611 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 152: No messages returned from converter

I do believe I have a recent snapshot installed:

openhab> bundle:list | grep Wave
 15 │ Active   │  80 │ 2.3.0.201802082157     │ ZWave Binding
openhab> 

I’m in the market for a smart lock, I like the august and the yale, any time frame on the zwave security stuff? I’m super new to openhab2 but love it so far…