homebridge-deconz 1.0.10 → 1.0.11

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.
@@ -1151,6 +1151,8 @@ class Resource {
1151
1151
  if (this.manufacturer === 'LUMI' && this.model === 'lumi.curtain.acn002') {
1152
1152
  this.capabilities.maxSpeed = 2
1153
1153
  this.capabilities.positionChange = true
1154
+ } else if (this.manufacturer === 'ubisys') {
1155
+ this.capabilities.useOpen = true
1154
1156
  }
1155
1157
  }
1156
1158
  }
@@ -19,10 +19,6 @@ class WarningDevice extends DeconzService.LightsResource {
19
19
  value: false
20
20
  }).on('didSet', async (value, fromHomeKit) => {
21
21
  if (fromHomeKit) {
22
- if (this.timer != null) {
23
- clearTimeout(this.timer)
24
- delete this.timer
25
- }
26
22
  const onTime = this.values.duration > 0 ? this.values.duration : 1
27
23
  let body = { alert: 'none' }
28
24
  if (value) {
@@ -120,7 +120,10 @@ 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) {
123
+ if (
124
+ this.resource.capabilities.useOpen &&
125
+ (this.lift === 0 || lift === 100)
126
+ ) {
124
127
  return this.put(this.statePath, { open: lift === 0 })
125
128
  }
126
129
  return this.put(this.statePath, { lift })
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.10",
7
+ "version": "1.0.11",
8
8
  "keywords": [
9
9
  "homebridge-plugin",
10
10
  "homekit",