homebridge-nb 1.2.12 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/NbAccessory.js +5 -6
- package/package.json +3 -3
package/lib/NbAccessory.js
CHANGED
|
@@ -342,12 +342,11 @@ class DoorSensor extends NbAccessory {
|
|
|
342
342
|
params.model = 'Door Sensor'
|
|
343
343
|
super(bridge, params)
|
|
344
344
|
this.service = new NbService.DoorSensor(this)
|
|
345
|
-
this.historyService = new homebridgeLib.ServiceDelegate.History.Contact(
|
|
346
|
-
|
|
347
|
-
this.service.characteristicDelegate('
|
|
348
|
-
this.service.characteristicDelegate('
|
|
349
|
-
|
|
350
|
-
)
|
|
345
|
+
this.historyService = new homebridgeLib.ServiceDelegate.History.Contact(this, {
|
|
346
|
+
contactDelegate: this.service.characteristicDelegate('contact'),
|
|
347
|
+
timesOpenedDelegate: this.service.characteristicDelegate('timesOpened'),
|
|
348
|
+
lastActivationDelegate: this.service.characteristicDelegate('lastActivation')
|
|
349
|
+
})
|
|
351
350
|
}
|
|
352
351
|
|
|
353
352
|
update (state) {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName": "Homebridge NB",
|
|
5
5
|
"author": "Erik Baauw",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
|
-
"version": "1.2.
|
|
7
|
+
"version": "1.2.13",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"homebridge-plugin",
|
|
10
10
|
"homekit",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
21
|
"homebridge": "^1.5.1",
|
|
22
|
-
"node": "^18.12.
|
|
22
|
+
"node": "^18.12.1"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"homebridge-lib": "~
|
|
25
|
+
"homebridge-lib": "~6.0.1"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"prepare": "standard",
|