Skip to content

Commit

Permalink
Update HueLight.js
Browse files Browse the repository at this point in the history
Use `brightnessAdjustment` config.json parameter, insteaf of bridge/gateway characteristic, see #766.
  • Loading branch information
ebaauw committed Nov 22, 2020
1 parent e0ba55d commit 1366a7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/HueLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1366a7f

Please sign in to comment.