From 1366a7f4e3ab5233c5263da1235076473e62089d Mon Sep 17 00:00:00 2001 From: ebaauw Date: Sun, 22 Nov 2020 21:52:37 +0100 Subject: [PATCH] Update HueLight.js Use `brightnessAdjustment` config.json parameter, insteaf of bridge/gateway characteristic, see #766. --- lib/HueLight.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/HueLight.js b/lib/HueLight.js index 855df26d..98caf334 100644 --- a/lib/HueLight.js +++ b/lib/HueLight.js @@ -1823,7 +1823,9 @@ HueLight.prototype.checkAdaptiveLighting = function () { if (this.al == null || !this.hk.on) { return } - const hkState = this.al.getCt(this.hk.bri * this.bridge.state.bri) + const hkState = this.al.getCt( + this.hk.bri * this.bridge.platform.config.brightnessAdjustment + ) if (hkState == null) { return }