homebridge-deconz 1.0.7 → 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.
@@ -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 !== 'Gold') {
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())
@@ -481,6 +481,9 @@ class Light extends DeconzService.LightsResource {
481
481
  }
482
482
 
483
483
  updateScenes (scenes) {
484
+ if (!this.values.exposeScenes) {
485
+ return
486
+ }
484
487
  const sceneById = {}
485
488
  for (const scene of scenes) {
486
489
  sceneById[scene.id] = scene
@@ -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",
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.23.2",
25
+ "deCONZ": "2.24.2",
26
26
  "homebridge": "^1.7.0",
27
- "node": "20.9.0||^20||^18"
27
+ "node": "20.10.0||^20||^18"
28
28
  },
29
29
  "dependencies": {
30
- "hb-deconz-tools": "~1.0.11",
31
- "homebridge-lib": "~6.7.0"
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",