Skip to content

Commit

Permalink
Add support for Smart Lock 3.0 Pro
Browse files Browse the repository at this point in the history
See #44.
  • Loading branch information
ebaauw committed Nov 23, 2021
1 parent 37f9e85 commit 2ae2d62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/NbAccessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/NbClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 2ae2d62

Please sign in to comment.