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.
- package/config.schema.json +1 -0
- package/lib/DeconzService/Light.js +4 -2
- package/package.json +1 -1
package/config.schema.json
CHANGED
@@ -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.
|
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('
|
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) {
|