homebridge-verisure 2.0.1 → 2.0.2
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/CHANGELOG.md
CHANGED
package/lib/accessories/alarm.js
CHANGED
|
@@ -15,7 +15,7 @@ class Alarm extends VerisureAccessory {
|
|
|
15
15
|
const { alarmCode } = this.platformConfig;
|
|
16
16
|
this.alarmCode = alarmCode.toString();
|
|
17
17
|
this.model = 'ALARM';
|
|
18
|
-
this.name = VerisureAccessory.getUniqueAccessoryName(`Alarm
|
|
18
|
+
this.name = VerisureAccessory.getUniqueAccessoryName(`Alarm - ${this.installation.config.alias}`);
|
|
19
19
|
|
|
20
20
|
const { SecuritySystemCurrentState } = this.homebridge.hap.Characteristic;
|
|
21
21
|
this.armStateMap = {
|
|
@@ -22,7 +22,7 @@ class ClimateSensor extends VerisureAccessory {
|
|
|
22
22
|
const name = _(deviceNames[label]) || label;
|
|
23
23
|
|
|
24
24
|
this.model = label;
|
|
25
|
-
this.name = VerisureAccessory.getUniqueAccessoryName(`${name}
|
|
25
|
+
this.name = VerisureAccessory.getUniqueAccessoryName(`${name} - ${area}`);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
getCurrentPropertyValue(property, callback) {
|
|
@@ -13,11 +13,11 @@ class DoorLock extends VerisureAccessory {
|
|
|
13
13
|
super(...args);
|
|
14
14
|
|
|
15
15
|
const { area } = this.config.device;
|
|
16
|
-
this.name = VerisureAccessory.getUniqueAccessoryName(`SmartLock
|
|
16
|
+
this.name = VerisureAccessory.getUniqueAccessoryName(`SmartLock - ${area}`);
|
|
17
17
|
|
|
18
18
|
this.doorCode = this.platformConfig.doorCode;
|
|
19
|
-
this.switchName = VerisureAccessory.getUniqueAccessoryName(`Auto-lock
|
|
20
|
-
this.audioName = VerisureAccessory.getUniqueAccessoryName(`Audio
|
|
19
|
+
this.switchName = VerisureAccessory.getUniqueAccessoryName(`Auto-lock - ${area}`);
|
|
20
|
+
this.audioName = VerisureAccessory.getUniqueAccessoryName(`Audio - ${area}`);
|
|
21
21
|
|
|
22
22
|
// TODO: Could set currentLockState here.
|
|
23
23
|
}
|
|
@@ -6,7 +6,7 @@ class SmartPlug extends VerisureAccessory {
|
|
|
6
6
|
super(...args);
|
|
7
7
|
|
|
8
8
|
this.model = 'SMARTPLUG';
|
|
9
|
-
this.name = VerisureAccessory.getUniqueAccessoryName(`SmartPlug
|
|
9
|
+
this.name = VerisureAccessory.getUniqueAccessoryName(`SmartPlug - ${this.config.device.area}`);
|
|
10
10
|
this.value = SmartPlug.resolveSwitchState(this.config.currentState);
|
|
11
11
|
}
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-verisure",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Verisure plugin for homebridge: https://github.com/nfarina/homebridge",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"enquirer": "^2.3.6",
|
|
31
|
-
"verisure": "^5.1.
|
|
31
|
+
"verisure": "^5.1.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"eslint": "^6.7.2",
|
|
35
35
|
"eslint-config-airbnb-base": "^14.0.0",
|
|
36
36
|
"eslint-plugin-import": "^2.8.0",
|
|
37
37
|
"eslint-plugin-jest": "^23.1.0",
|
|
38
|
-
"hap-nodejs": "^0.
|
|
39
|
-
"homebridge": "^1.
|
|
38
|
+
"hap-nodejs": "^0.11.1",
|
|
39
|
+
"homebridge": "^1.7.0",
|
|
40
40
|
"jest": "^25.0.0"
|
|
41
41
|
},
|
|
42
42
|
"jest": {
|