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=
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.
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.