homebridge-deconz 0.0.21 → 0.0.22

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.
@@ -101,6 +101,7 @@
101
101
  "title": "Advanced Settings",
102
102
  "description": "Don't change these, unless you understand what you're doing.",
103
103
  "items": [
104
+ "brightnessAdjustment",
104
105
  "forceHttp",
105
106
  "parallelRequests",
106
107
  "stealth",
@@ -190,6 +190,7 @@ class Light extends DeconzService.LightsResource {
190
190
  this.addCharacteristicDelegates()
191
191
 
192
192
  if (this.capabilities.bri && this.capabilities.ct && !this.capabilities.hs) {
193
+ this.adaptiveLightingNotInitialised = true
193
194
  this.addCharacteristicDelegate({
194
195
  key: 'supportedTransitionConfiguration',
195
196
  Characteristic: this.Characteristics.hap
@@ -428,7 +429,8 @@ class Light extends DeconzService.LightsResource {
428
429
  }
429
430
 
430
431
  initAdaptiveLighting () {
431
- if (this.adaptiveLighting == null) {
432
+ if (this.adaptiveLightingNotInitialised) {
433
+ delete this.adaptiveLightingNotInitialised
432
434
  this.adaptiveLighting = new homebridgeLib.AdaptiveLighting(
433
435
  this.brightnessDelegate, this.colorTemperatureDelegate
434
436
  )
@@ -458,7 +460,7 @@ class Light extends DeconzService.LightsResource {
458
460
  this.values.brightness * this.platform.config.brightnessAdjustment
459
461
  )
460
462
  if (ct == null) {
461
- this.warn('assertion failed')
463
+ this.warn('adaptive lighting: cannot compute Color Temperature')
462
464
  return
463
465
  }
464
466
  if (this.values.colormode === 'ct' && ct === this.values.colorTemperature) {
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": "0.0.21",
7
+ "version": "0.0.22",
8
8
  "keywords": [
9
9
  "homebridge-plugin",
10
10
  "homekit",