Controlling the lock

< Previous                                                                                            Next >

Locking and Unlocking

Locking the door is straightforward and easy.

From the main 'Overview' page, select the 'Door'


This will bring up a window with a link to 'unlock' and 'lock' the door.

When you click these links the lock will either lock or unlock.  Note:  The computer and dongle must be relatively close to control the lock.  It may also take several seconds for the lock to react to a 'command' - like 'lock'.

Setting a Code

Setting a code is not as simple as locking and unlocking.  In fact, it is pretty esoteric.

But - we got this.

To set a user code, go to Developer Tools


Select your lock from the 'Entity' drop down (this is where renaming it is helpful).

This will show you some information about the lock.

The main thing we need is the 'node_id'.  In the above, the node_id is 2. 

Now select 'Services'.

In the 'Service' drop down, select 'lock.set_usercode'

This will make the page show some info on how to do this.
Select the "FILL EXAMPLE DATA" link.  This will populate the 'Service Data' with some info.

Now we need to change the 'Service Data' to be what we need for our lock.  
  1. node_id: what we got above - for me it is 2.
  2. code_slot: the Kwikset 912 lock can hold up to 30 different codes.  This number is the code you are setting; code1 is 1, code 2 is 2, etc.
  3. usercode: the Kwikset 912 lock accepts numeric codes that are at least 4 digits, and up to 8.  So this is 0000 - 99999999.
I am using 
  1. node_id: 2.
  2. code_slot: 4
  3. usercode: '0112'

Then select "Call Service"
You will not see much happen on the web page.  But if you watch the Z-Wave dongle, it will light up for a moment with a blue light.  Now you can try the code on the lock to see if it worked properly.

Next, I made this a little more user friendly.  Doing the above is a pain, and easy to screw up.


< Previous                                                                                            Next >

Comments

Popular posts from this blog

Home Automation

Getting your house to ask you for help: Setting up Email Notification using GMail

Adding a way to set door codes - Part 2: Create helpers