homebridge-deconz 1.0.6 → 1.0.8
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/Deconz/Resource.js
CHANGED
@@ -735,6 +735,13 @@ class Resource {
|
|
735
735
|
buttons.push([2, 'Down', SINGLE | LONG])
|
736
736
|
buttons.push([3, 'Middle', SINGLE | LONG])
|
737
737
|
break
|
738
|
+
case 'Switch 4x EU-LIGHTIFY':
|
739
|
+
case 'Switch 4x-LIGHTIFY':
|
740
|
+
buttons.push([1, 'Top Left', SINGLE | LONG])
|
741
|
+
buttons.push([2, 'Top Right', SINGLE | LONG])
|
742
|
+
buttons.push([3, 'Bottom Left', SINGLE | LONG])
|
743
|
+
buttons.push([4, 'Bottom Right', SINGLE | LONG])
|
744
|
+
break
|
738
745
|
default:
|
739
746
|
break
|
740
747
|
}
|
@@ -816,6 +823,14 @@ class Resource {
|
|
816
823
|
buttons.push([6, 'Bottom Both', SINGLE | LONG])
|
817
824
|
}
|
818
825
|
break
|
826
|
+
case 'Schneider Electric':
|
827
|
+
if (this.model === 'FLS/AIRLINK/4' || this.model === 'FLS/SYSTEM-M/4') {
|
828
|
+
buttons.push([1, 'Top Right', SINGLE | LONG])
|
829
|
+
buttons.push([2, 'Bottom Right', SINGLE | LONG])
|
830
|
+
buttons.push([3, 'Top Left', SINGLE | LONG])
|
831
|
+
buttons.push([4, 'Bottom Left', SINGLE | LONG])
|
832
|
+
}
|
833
|
+
break
|
819
834
|
case 'Samjin':
|
820
835
|
switch (this.model) {
|
821
836
|
case 'button':
|
@@ -1123,7 +1123,9 @@ class Gateway extends AccessoryDelegate {
|
|
1123
1123
|
const mac = resource.body.uniqueid.split('-')[0]
|
1124
1124
|
try {
|
1125
1125
|
const ddf = await this.client.get('/devices/' + mac + '/ddf')
|
1126
|
-
if (ddf.status
|
1126
|
+
if (ddf.status === 'Draft') {
|
1127
|
+
this.warn('%s: exposed by legacy code', name)
|
1128
|
+
} else if (ddf.status !== 'Gold') {
|
1127
1129
|
this.warn('%s: exposed by %s ddf', name, ddf.status.toLowerCase())
|
1128
1130
|
} else {
|
1129
1131
|
this.debug('%s: exposed by %s ddf', name, ddf.status.toLowerCase())
|
@@ -120,6 +120,9 @@ class WindowCovering extends DeconzService.LightsResource {
|
|
120
120
|
? this.Characteristics.hap.PositionState.INCREASING
|
121
121
|
: this.Characteristics.hap.PositionState.DECREASING
|
122
122
|
this.moving = new Date()
|
123
|
+
if (lift === 0 || lift === 100) {
|
124
|
+
return this.put(this.statePath, { open: lift === 0 })
|
125
|
+
}
|
123
126
|
return this.put(this.statePath, { lift })
|
124
127
|
}
|
125
128
|
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"displayName": "Homebridge deCONZ",
|
5
5
|
"author": "Erik Baauw",
|
6
6
|
"license": "Apache-2.0",
|
7
|
-
"version": "1.0.
|
7
|
+
"version": "1.0.8",
|
8
8
|
"keywords": [
|
9
9
|
"homebridge-plugin",
|
10
10
|
"homekit",
|
@@ -22,13 +22,13 @@
|
|
22
22
|
"ui": "cli/ui.js"
|
23
23
|
},
|
24
24
|
"engines": {
|
25
|
-
"deCONZ": "2.
|
26
|
-
"homebridge": "^1.
|
27
|
-
"node": "20.
|
25
|
+
"deCONZ": "2.24.2",
|
26
|
+
"homebridge": "^1.7.0",
|
27
|
+
"node": "20.10.0||^20||^18"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"hb-deconz-tools": "~1.0.
|
31
|
-
"homebridge-lib": "~6.
|
30
|
+
"hb-deconz-tools": "~1.0.12",
|
31
|
+
"homebridge-lib": "~6.7.1"
|
32
32
|
},
|
33
33
|
"scripts": {
|
34
34
|
"prepare": "standard && rm -rf out && jsdoc -c jsdoc.json",
|