From 2ae2d628eb12aabb1bb0111f03e7eeb17ec8d83e Mon Sep 17 00:00:00 2001 From: ebaauw Date: Tue, 23 Nov 2021 23:13:19 +0100 Subject: [PATCH] Add support for Smart Lock 3.0 Pro See #44. --- lib/NbAccessory.js | 1 + lib/NbClient.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/NbAccessory.js b/lib/NbAccessory.js index 1113b28..390b623 100644 --- a/lib/NbAccessory.js +++ b/lib/NbAccessory.js @@ -224,6 +224,7 @@ class Bridge extends homebridgeLib.AccessoryDelegate { const id = device.nukiId.toString(16).toUpperCase() switch (device.deviceType) { case NbClient.DeviceTypes.SMARTLOCK: + case NbClient.DeviceTypes.SMARTLOCK_PRO: if (this.smartLocks[id] == null) { this.addSmartLock(id, { id: id, diff --git a/lib/NbClient.js b/lib/NbClient.js index a99ccda..d754959 100644 --- a/lib/NbClient.js +++ b/lib/NbClient.js @@ -10,7 +10,7 @@ const homebridgeLib = require('homebridge-lib') class NbClient extends homebridgeLib.HttpClient { static get DeviceTypes () { - return { SMARTLOCK: 0, OPENER: 2 } + return { SMARTLOCK: 0, OPENER: 2, SMARTLOCK_PRO: 4 } } static get LockStates () {