Hello, I have been using Nuki Smart Locks for over two years now, across seven locations. I am very pleased with the API, but I occasionally encounter an issue (it has occurred with two devices, both Nuki Smart Lock 3.0 Pro).
Through the WEB/HTTP API, I generate time-limited access codes for the keypad, typically with a 75-minute window. For instance, today, when the error occurred, the access looked like this:
{
"id": "xxx",
"smartlockId": xxx,
"authId": 807,
"code": 155936,
"type": 13,
"name": "TMP_50916-12655_Mich",
"enabled": true,
"remoteAllowed": false,
"lockCount": 26,
"allowedFromDate": "2024-01-15T06:45:00.000Z",
"allowedUntilDate": "2024-01-15T07:59:59.000Z",
"allowedWeekDays": 0,
"allowedFromTime": 0,
"allowedUntilTime": 0,
"lastActiveDate": "2024-01-15T06:47:07.000Z",
"creationDate": "2024-01-14T14:05:57.000Z",
"updateDate": "2024-01-15T07:23:09.469Z"
},
So, the access should be valid from 7:45 AM to 9:00 AM (I am in the Czech Republic, which is in the +1 time zone) – and it works correctly 99% of the time. However, occasionally, when someone enters the code into the keypad, the log reports ‘Not authorized’, as it did today. It appears that the Smart Lock thinks it’s 30 minutes earlier than it actually is. Therefore, it allowed entry at 8:15 AM but recorded it as if it were 7:45 AM.
This issue has occurred with two devices, and I need to resolve it as it causes me significant inconvenience and additional communication.
Here is today’s log:
[
{
"id": "65a50ba3183abc1831fcfe77",
"smartlockId": xxx,
"deviceType": 4,
"name": "",
"action": 2,
"trigger": 6,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T10:40:35.000Z",
"source": 0
},
{
"id": "65a50b9c183abc1831fced38",
"smartlockId": xxx,
"deviceType": 4,
"name": "",
"action": 241,
"trigger": 0,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T10:40:28.000Z",
"source": 0
},
{
"id": "65a50b8d183abc1831fccdc4",
"smartlockId": xxx,
"deviceType": 4,
"authId": "65a3b7ebbb7705297fa57816",
"name": "TMP_50919-12278_Para (Keypad)",
"action": 3,
"trigger": 255,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T10:40:13.000Z",
"source": 1
},
{
"id": "65a50b8c183abc1831fccdb7",
"smartlockId": xxx,
"deviceType": 4,
"name": "",
"action": 240,
"trigger": 0,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T10:40:12.000Z",
"source": 0
},
{
"id": "65a50182183abc1831fccaf8",
"smartlockId": xxx,
"deviceType": 4,
"authId": "65a3b7ebbb7705297fa57816",
"name": "TMP_50919-12278_Para (Keypad)",
"action": 3,
"trigger": 255,
"state": 9,
"autoUnlock": false,
"date": "2024-01-15T09:57:22.000Z",
"source": 1
},
{
"id": "65a5016b183abc1831fccae2",
"smartlockId": xxx,
"deviceType": 4,
"authId": "65a3b7ebbb7705297fa57816",
"name": "TMP_50919-12278_Para (Keypad)",
"action": 3,
"trigger": 255,
"state": 9,
"autoUnlock": false,
"date": "2024-01-15T09:56:59.000Z",
"source": 1
},
{
"id": "65a50158183abc1831fccae1",
"smartlockId": xxx,
"deviceType": 4,
"authId": "65a3b7ebbb7705297fa57816",
"name": "TMP_50919-12278_Para (Keypad)",
"action": 3,
"trigger": 255,
"state": 9,
"autoUnlock": false,
"date": "2024-01-15T09:56:40.000Z",
"source": 1
},
{
"id": "65a4f1f3183abc1831d05b81",
"smartlockId": xxx,
"deviceType": 4,
"name": "",
"action": 2,
"trigger": 6,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T08:50:59.000Z",
"source": 0
},
{
"id": "65a4f1ec183abc1831d04f5f",
"smartlockId": xxx,
"deviceType": 4,
"name": "",
"action": 241,
"trigger": 0,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T08:50:52.000Z",
"source": 0
},
{
"id": "65a4f1e6183abc1831d046ac",
"smartlockId": xxx,
"deviceType": 4,
"name": "",
"action": 240,
"trigger": 0,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T08:50:46.000Z",
"source": 0
},
{
"id": "65a4f1e5183abc1831d046aa",
"smartlockId": xxx,
"deviceType": 4,
"name": "",
"action": 1,
"trigger": 2,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T08:50:45.000Z",
"source": 0
},
{
"id": "65a4d4fc183abc1831a8ddd5",
"smartlockId": xxx,
"deviceType": 4,
"name": "",
"action": 2,
"trigger": 6,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T06:47:24.000Z",
"source": 0
},
{
"id": "65a4d4f5183abc1831a8dd94",
"smartlockId": xxx,
"deviceType": 4,
"name": "",
"action": 241,
"trigger": 0,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T06:47:17.000Z",
"source": 0
},
{
"id": "65a4d4f0183abc1831a8dd6b",
"smartlockId": xxx,
"deviceType": 4,
"authId": "65a3ea4903fbea381ec6fd4b",
"name": "TMP_50916-12655_Mich (Keypad)",
"action": 3,
"trigger": 255,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T06:47:12.000Z",
"source": 1
},
{
"id": "65a4d4ef183abc1831a8dd0f",
"smartlockId": xxx,
"deviceType": 4,
"name": "",
"action": 240,
"trigger": 0,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T06:47:11.000Z",
"source": 0
},
{
"id": "65a4d4d9183abc1831a8dd09",
"smartlockId": xxx,
"deviceType": 4,
"authId": "65a3ea4903fbea381ec6fd4b",
"name": "TMP_50916-12655_Mich (Keypad)",
"action": 3,
"trigger": 255,
"state": 0,
"autoUnlock": false,
"date": "2024-01-15T06:46:49.000Z",
"source": 1
},
{
"id": "65a4d4d9183abc1831a8dcfa",
"smartlockId": xxx,
"deviceType": 4,
"authId": "65a3ea4903fbea381ec6fd4b",
"name": "TMP_50916-12655_Mich (Keypad)",
"action": 3,
"trigger": 255,
"state": 4,
"autoUnlock": false,
"date": "2024-01-15T06:46:49.000Z",
"source": 1
},
{
"id": "65a4d43b183abc1831a8dcec",
"smartlockId": xxx,
"deviceType": 4,
"authId": "65a3ea4903fbea381ec6fd4b",
"name": "TMP_50916-12655_Mich (Keypad)",
"action": 3,
"trigger": 255,
"state": 9,
"autoUnlock": false,
"date": "2024-01-15T06:44:11.000Z",
"source": 1
},
{
"id": "65a4d3fb183abc1831a8dccc",
"smartlockId": xxx,
"deviceType": 4,
"authId": "65a3ea4903fbea381ec6fd4b",
"name": "TMP_50916-12655_Mich (Keypad)",
"action": 3,
"trigger": 255,
"state": 9,
"autoUnlock": false,
"date": "2024-01-15T06:43:07.000Z",
"source": 1
},
{
"id": "65a4d3de183abc1831a8dcc3",
"smartlockId": xxx,
"deviceType": 4,
"authId": "65a3ea4903fbea381ec6fd4b",
"name": "TMP_50916-12655_Mich (Keypad)",
"action": 3,
"trigger": 255,
"state": 9,
"autoUnlock": false,
"date": "2024-01-15T06:42:38.000Z",
"source": 1
}
]
Thank you for any help….