Replied to the PM but I'm posting here as well. Kwikset locks use the alarm class for quite a bit.
Ok. Here is the code I use and what it does. The following command will get you the last action of the lock. May have been a lock event, unlock event, pin entry, etc...
Code: Select all
http://127.0.0.1:8083/ZWaveAPI/Run/devices[deviceID].Alarm.data.V1event.alarmType.value
The following are the different codes that should be returned.
18, 21, 24 or 27 is a LOCK event.
19, 22 or 25 in an UNLOCK event. 19 is a keypad PIN entry.
17, 23 or 26 is an ERROR condition
33 or 112 is a user code modification (added, deleted, changed)
161 indicates 3 failed attempts at PIN entry
162 indicated an invalid schedule for a user (if you get that far into programming the lock)
167 indicates a LOW BATTERY condition (30%)
168 indicates BATTERY CRITICAL
169 indicates battery too low to operate lock
To get the user ID number that entered a code (or any other reason) you use this command.
Code: Select all
http://127.0.0.1:8083/ZWaveAPI/Run/devices[deviceID].Alarm.data.V1event.level.value
I didn't have to do anything to enable the alarm data. Check your z-way server log and make sure there's a section that looks something like this when you actuate the lock.
Code: Select all
[2014-07-18 11:15:34.518] Adding job: Door Lock Operation Set
[2014-07-18 11:15:34.518] Adding job: Door Lock Operation Get
[2014-07-18 11:15:34.527] Node 2:0 CC Security: sending Nonce Get
[2014-07-18 11:15:34.527] SETDATA devices.2.instances.0.commandClasses.152.data.rNonceAckWait = **********
[2014-07-18 11:15:34.528] Adding job: Nonce get
[2014-07-18 11:15:34.528] SETDATA devices.2.data.lastNonceGet = 89172870 (0x0550ab86)
[2014-07-18 11:15:34.540] SENDING (cb 0xa1): ( 01 09 00 13 02 02 98 40 05 A1 99 )
[2014-07-18 11:15:34.550] RECEIVED ACK
[2014-07-18 11:15:34.561] RECEIVED: ( 01 04 01 13 01 E8 )
[2014-07-18 11:15:34.562] SENT ACK
[2014-07-18 11:15:34.562] Delivered to Z-Wave stack
[2014-07-18 11:15:35.740] RECEIVED: ( 01 05 00 13 A1 00 48 )
[2014-07-18 11:15:35.740] SENT ACK
[2014-07-18 11:15:35.741] Job 0x13 (Nonce get): Delivered
[2014-07-18 11:15:35.741] SETDATA devices.2.data.lastPacketInfo.delivered = True
[2014-07-18 11:15:35.741] SETDATA devices.2.data.lastPacketInfo.packetLength = 5 (0x00000005)
[2014-07-18 11:15:35.741] SETDATA devices.2.data.lastPacketInfo.deliveryTime = 1178 (0x0000049a)
[2014-07-18 11:15:35.742] SETDATA devices.2.data.lastPacketInfo = **********
[2014-07-18 11:15:35.743] SendData Response with callback 0xa1 received: received by recipient
[2014-07-18 11:15:35.744] SETDATA devices.2.data.lastSend = 89172974 (0x0550abee)
[2014-07-18 11:15:35.744] Job 0x13 (Nonce get): success
[2014-07-18 11:15:35.745] SETDATA devices.2.instances.0.commandClasses.152.data.rNonceAckWait = **********
[2014-07-18 11:15:35.745] Removing job: Nonce get
[2014-07-18 11:15:35.790] RECEIVED: ( 01 10 00 04 00 02 0A 98 80 B8 5C 8D 5A 5A 46 39 41 AC )
[2014-07-18 11:15:35.791] SENT ACK
[2014-07-18 11:15:35.792] SETDATA devices.2.data.lastReceived = 0 (0x00000000)
[2014-07-18 11:15:35.792] Node 2:0 CC Security: received Nonce Report
[2014-07-18 11:15:35.794] SETDATA devices.2.instances.0.commandClasses.152.data.rNonce = **********
[2014-07-18 11:15:35.794] Removing job: Door Lock Operation Set
[2014-07-18 11:15:35.795] Node 2:0 CC Security: Sending a secure message
[2014-07-18 11:15:35.796] Node 2:0 CC Security: sending encrypted packet: Door Lock Operation Set
[2014-07-18 11:15:35.796] SETDATA devices.2.instances.0.commandClasses.152.data.toFollow = False
[2014-07-18 11:15:35.797] SETDATA devices.2.data.lastNonceGet = Empty
[2014-07-18 11:15:35.798] Adding job: Security, Door Lock Operation Set
[2014-07-18 11:15:35.810] Node 2:0 CC Security: sending Nonce Get
[2014-07-18 11:15:35.811] SETDATA devices.2.instances.0.commandClasses.152.data.rNonceAckWait = **********
[2014-07-18 11:15:35.812] Adding job: Nonce get
[2014-07-18 11:15:35.812] SETDATA devices.2.data.lastNonceGet = 89172979 (0x0550abf3)
[2014-07-18 11:15:35.825] SENDING (cb 0xa2): ( 01 1E 00 13 02 17 98 81 5A B3 5C 3D 75 27 4B 20 1D D5 A7 8D B8 28 F7 54 F0 39 A3 CA 2E 05 A2 B7 )
[2014-07-18 11:15:35.840] RECEIVED ACK
[2014-07-18 11:15:35.851] RECEIVED: ( 01 04 01 13 01 E8 )
[2014-07-18 11:15:35.852] SENT ACK
[2014-07-18 11:15:35.853] Job 0x13 (Security, Door Lock Operation Set): Response received - transfered to encapsulated jobs
[2014-07-18 11:15:35.853] Delivered to Z-Wave stack
[2014-07-18 11:15:35.854] Delivered to Z-Wave stack
[2014-07-18 11:15:36.845] Executing script: zway.devices[4].SensorBinary.data[1].level.value
[2014-07-18 11:15:37.042] RECEIVED: ( 01 05 00 13 A2 00 4B )
[2014-07-18 11:15:37.043] SENT ACK
[2014-07-18 11:15:37.043] Job 0x13 (Security, Door Lock Operation Set): Callback received - transfered to encapsulated jobs
[2014-07-18 11:15:37.044] Job 0x13 (Door Lock Operation Set): Delivered
[2014-07-18 11:15:37.045] SendData Response with callback 0xa2 received: received by recipient
[2014-07-18 11:15:37.045] Job 0x13 (Security, Door Lock Operation Set): Delivered
[2014-07-18 11:15:37.046] SETDATA devices.2.data.lastPacketInfo.delivered = True
[2014-07-18 11:15:37.046] SETDATA devices.2.data.lastPacketInfo.packetLength = 26 (0x0000001a)
[2014-07-18 11:15:37.047] SETDATA devices.2.data.lastPacketInfo.deliveryTime = 1192 (0x000004a8)
[2014-07-18 11:15:37.047] SETDATA devices.2.data.lastPacketInfo = **********
[2014-07-18 11:15:37.048] SendData Response with callback 0xa2 received: received by recipient
[2014-07-18 11:15:37.049] SETDATA devices.2.data.lastSend = 89173084 (0x0550ac5c)
[2014-07-18 11:15:37.049] Job 0x13 (Security, Door Lock Operation Set): success
[2014-07-18 11:15:37.050] Removing job: Security, Door Lock Operation Set
[2014-07-18 11:15:37.123] SENDING (cb 0xa3): ( 01 09 00 13 02 02 98 40 05 A3 9B )
[2014-07-18 11:15:37.134] RECEIVED ACK
[2014-07-18 11:15:37.145] RECEIVED: ( 01 04 01 13 01 E8 )
[2014-07-18 11:15:37.146] SENT ACK
[2014-07-18 11:15:37.147] Delivered to Z-Wave stack
[2014-07-18 11:15:38.329] RECEIVED: ( 01 05 00 13 A3 00 4A )
[2014-07-18 11:15:38.330] SENT ACK
[2014-07-18 11:15:38.330] Job 0x13 (Nonce get): Delivered
[2014-07-18 11:15:38.330] SETDATA devices.2.data.lastPacketInfo.delivered = True
[2014-07-18 11:15:38.330] SETDATA devices.2.data.lastPacketInfo.packetLength = 5 (0x00000005)
[2014-07-18 11:15:38.331] SETDATA devices.2.data.lastPacketInfo.deliveryTime = 1183 (0x0000049f)
[2014-07-18 11:15:38.337] SETDATA devices.2.data.lastPacketInfo = **********
[2014-07-18 11:15:38.337] SendData Response with callback 0xa3 received: received by recipient
[2014-07-18 11:15:38.342] SETDATA devices.2.data.lastSend = 89173195 (0x0550accb)
[2014-07-18 11:15:38.343] Job 0x13 (Nonce get): success
[2014-07-18 11:15:38.343] SETDATA devices.2.instances.0.commandClasses.152.data.rNonceAckWait = **********
[2014-07-18 11:15:38.343] Removing job: Nonce get
[2014-07-18 11:15:38.377] RECEIVED: ( 01 10 00 04 00 02 0A 98 80 61 96 BC 83 10 34 6F B2 CA )
[2014-07-18 11:15:38.377] SENT ACK
[2014-07-18 11:15:38.378] SETDATA devices.2.data.lastReceived = 0 (0x00000000)
[2014-07-18 11:15:38.378] Node 2:0 CC Security: received Nonce Report
[2014-07-18 11:15:38.379] SETDATA devices.2.instances.0.commandClasses.152.data.rNonce = **********
[2014-07-18 11:15:38.379] Removing job: Door Lock Operation Get
[2014-07-18 11:15:38.379] Node 2:0 CC Security: Sending a secure message
[2014-07-18 11:15:38.380] Node 2:0 CC Security: sending encrypted packet: Door Lock Operation Get
[2014-07-18 11:15:38.380] SETDATA devices.2.instances.0.commandClasses.152.data.toFollow = False
[2014-07-18 11:15:38.380] SETDATA devices.2.data.lastNonceGet = Empty
[2014-07-18 11:15:38.381] Adding job: Security, Door Lock Operation Get
[2014-07-18 11:15:38.417] SENDING (cb 0xa4): ( 01 1D 00 13 02 16 98 81 61 22 2D 96 C4 2B 99 BA 39 79 C9 61 5F C9 23 58 EA 09 19 F6 05 A4 60 )
[2014-07-18 11:15:38.428] RECEIVED ACK
[2014-07-18 11:15:38.439] RECEIVED: ( 01 04 01 13 01 E8 )
[2014-07-18 11:15:38.440] SENT ACK
[2014-07-18 11:15:38.440] Job 0x13 (Security, Door Lock Operation Get): Response received - transfered to encapsulated jobs
[2014-07-18 11:15:38.440] Delivered to Z-Wave stack
[2014-07-18 11:15:38.440] Delivered to Z-Wave stack
[2014-07-18 11:15:39.634] RECEIVED: ( 01 05 00 13 A4 00 4D )
[2014-07-18 11:15:39.635] SENT ACK
[2014-07-18 11:15:39.643] Job 0x13 (Security, Door Lock Operation Get): Callback received - transfered to encapsulated jobs
[2014-07-18 11:15:39.644] Job 0x13 (Door Lock Operation Get): Delivered
[2014-07-18 11:15:39.647] SendData Response with callback 0xa4 received: received by recipient
[2014-07-18 11:15:39.648] Job 0x13 (Security, Door Lock Operation Get): Delivered
[2014-07-18 11:15:39.652] SETDATA devices.2.data.lastPacketInfo.delivered = True
[2014-07-18 11:15:39.653] SETDATA devices.2.data.lastPacketInfo.packetLength = 25 (0x00000019)
[2014-07-18 11:15:39.653] SETDATA devices.2.data.lastPacketInfo.deliveryTime = 1205 (0x000004b5)
[2014-07-18 11:15:39.654] SETDATA devices.2.data.lastPacketInfo = **********
[2014-07-18 11:15:39.655] SendData Response with callback 0xa4 received: received by recipient
[2014-07-18 11:15:39.656] SETDATA devices.2.data.lastSend = 89173305 (0x0550ad39)
[2014-07-18 11:15:39.659] Job 0x13 (Security, Door Lock Operation Get): success
[2014-07-18 11:15:39.660] Removing job: Security, Door Lock Operation Get
[2014-07-18 11:15:39.961] RECEIVED: ( 01 08 00 04 00 02 02 98 40 2B )
[2014-07-18 11:15:39.962] SENT ACK
[2014-07-18 11:15:39.963] SETDATA devices.2.data.lastReceived = 0 (0x00000000)
[2014-07-18 11:15:39.964] Node 2:0 CC Security: sending Nonce Report
[2014-07-18 11:15:39.965] Adding job: Nonce report
[2014-07-18 11:15:39.977] SENDING (cb 0xa5): ( 01 11 00 13 02 0A 98 80 B7 EB EF 79 66 8C 56 6C 05 A5 57 )
[2014-07-18 11:15:39.988] RECEIVED ACK
[2014-07-18 11:15:39.999] RECEIVED: ( 01 04 01 13 01 E8 )
[2014-07-18 11:15:40.000] SENT ACK
[2014-07-18 11:15:40.001] Delivered to Z-Wave stack
[2014-07-18 11:15:41.204] RECEIVED: ( 01 05 00 13 A5 00 4C )
[2014-07-18 11:15:41.205] SENT ACK
[2014-07-18 11:15:41.206] Job 0x13 (Nonce report): Delivered
[2014-07-18 11:15:41.207] SETDATA devices.2.data.lastPacketInfo.delivered = True
[2014-07-18 11:15:41.208] SETDATA devices.2.data.lastPacketInfo.packetLength = 13 (0x0000000d)
[2014-07-18 11:15:41.209] SETDATA devices.2.data.lastPacketInfo.deliveryTime = 1205 (0x000004b5)
[2014-07-18 11:15:41.209] SETDATA devices.2.data.lastPacketInfo = **********
[2014-07-18 11:15:41.210] SendData Response with callback 0xa5 received: received by recipient
[2014-07-18 11:15:41.211] SETDATA devices.2.data.lastSend = 89173436 (0x0550adbc)
[2014-07-18 11:15:41.211] Job 0x13 (Nonce report): success
[2014-07-18 11:15:41.212] Removing job: Nonce report
[2014-07-18 11:15:41.258] RECEIVED: ( 01 21 00 04 00 02 1B 98 81 37 71 22 38 F0 88 B6 07 DA B5 4F EE 6D 1C 48 7B B7 11 86 5F 9B BC AD A3 4E DB )
[2014-07-18 11:15:41.259] SENT ACK
[2014-07-18 11:15:41.260] SETDATA devices.2.data.lastReceived = 0 (0x00000000)
[2014-07-18 11:15:41.260] Node 2:0 CC Security: Received a secure message
[2014-07-18 11:15:41.261] SETDATA devices.2.instances.0.commandClasses.152.data.firstPart = **********
[2014-07-18 11:15:41.262] Node 2:0 CC Security: passing decrypted packet to application level: [ 62 03 ff 00 00 fe fe ]
[2014-07-18 11:15:41.263] SETDATA devices.2.instances.0.commandClasses.98.data.mode = 255 (0x000000ff)
[2014-07-18 11:15:41.264] SETDATA devices.2.instances.0.commandClasses.98.data.outsideMode = 0 (0x00000000)
[2014-07-18 11:15:41.265] SETDATA devices.2.instances.0.commandClasses.98.data.insideMode = 0 (0x00000000)
[2014-07-18 11:15:41.265] SETDATA devices.2.instances.0.commandClasses.98.data.condition = 0 (0x00000000)
[2014-07-18 11:15:41.266] SETDATA devices.2.instances.0.commandClasses.98.data.lockMinutes = 254 (0x000000fe)
[2014-07-18 11:15:41.267] SETDATA devices.2.instances.0.commandClasses.98.data.lockSeconds = 254 (0x000000fe)
[2014-07-18 11:15:41.333] RECEIVED: ( 01 08 00 04 00 02 02 98 40 2B )
[2014-07-18 11:15:41.334] SENT ACK
[2014-07-18 11:15:41.335] SETDATA devices.2.data.lastReceived = 0 (0x00000000)
[2014-07-18 11:15:41.336] Node 2:0 CC Security: sending Nonce Report
[2014-07-18 11:15:41.337] Adding job: Nonce report
[2014-07-18 11:15:41.349] SENDING (cb 0xa6): ( 01 11 00 13 02 0A 98 80 A2 84 97 45 FF 94 58 5C 05 A6 D5 )
[2014-07-18 11:15:41.360] RECEIVED ACK
[2014-07-18 11:15:41.371] RECEIVED: ( 01 04 01 13 01 E8 )
[2014-07-18 11:15:41.372] SENT ACK
[2014-07-18 11:15:41.374] Delivered to Z-Wave stack
[2014-07-18 11:15:42.576] RECEIVED: ( 01 05 00 13 A6 00 4F )
[2014-07-18 11:15:42.576] SENT ACK
[2014-07-18 11:15:42.576] Job 0x13 (Nonce report): Delivered
[2014-07-18 11:15:42.577] SETDATA devices.2.data.lastPacketInfo.delivered = True
[2014-07-18 11:15:42.577] SETDATA devices.2.data.lastPacketInfo.packetLength = 13 (0x0000000d)
[2014-07-18 11:15:42.577] SETDATA devices.2.data.lastPacketInfo.deliveryTime = 1201 (0x000004b1)
[2014-07-18 11:15:42.578] SETDATA devices.2.data.lastPacketInfo = **********
[2014-07-18 11:15:42.578] SendData Response with callback 0xa6 received: received by recipient
[2014-07-18 11:15:42.578] SETDATA devices.2.data.lastSend = 89173552 (0x0550ae30)
[2014-07-18 11:15:42.578] Job 0x13 (Nonce report): success
[2014-07-18 11:15:42.580] Removing job: Nonce report
[2014-07-18 11:15:42.625] RECEIVED: ( 01 1E 00 04 00 02 18 98 81 72 A7 0C 33 E8 16 A1 3E DA D0 BB 6D 2F A2 29 D4 1C 32 14 A5 2F 03 72 )
[2014-07-18 11:15:42.626] SENT ACK
[2014-07-18 11:15:42.626] SETDATA devices.2.data.lastReceived = 0 (0x00000000)
[2014-07-18 11:15:42.627] Node 2:0 CC Security: Received a secure message
[2014-07-18 11:15:42.627] SETDATA devices.2.instances.0.commandClasses.152.data.firstPart = **********
[2014-07-18 11:15:42.628] Node 2:0 CC Security: passing decrypted packet to application level: [ 71 05 18 01 ]
[2014-07-18 11:15:42.628] SETDATA devices.2.instances.0.commandClasses.113.data.V1event.alarmType = 24 (0x00000018)
[2014-07-18 11:15:42.628] SETDATA devices.2.instances.0.commandClasses.113.data.V1event.level = 1 (0x00000001)
[2014-07-18 11:15:42.628] SETDATA devices.2.instances.0.commandClasses.113.data.V1event = Empty
[2014-07-18 11:15:55.606] Job 0x13: deleted from queue
[2014-07-18 11:15:56.849] Job 0x13: deleted from queue
[2014-07-18 11:15:56.861] Job 0x13: deleted from queue
[2014-07-18 11:15:58.092] Job 0x13: deleted from queue
[2014-07-18 11:15:59.330] Job 0x13: deleted from queue
[2014-07-18 11:15:59.342] Job 0x13: deleted from queue
[2014-07-18 11:16:00.782] Job 0x13: deleted from queue
[2014-07-18 11:16:02.063] Job 0x13: deleted from queue
You can see from my log what is being written to. If you'd like, grab the section of your log written when the lock is actuated and I'll have a look. Make sure nothing else is running when you do it though or the log will be very busy... I'd like to think that they haven't changed the command format but I guess it is possible. The two locks I have are both fairly new but one of them has a Z-Wave card in it that is a year or so old...