Skip to content

Commit

Permalink
Update HuePlatform.js
Browse files Browse the repository at this point in the history
Add `birghtnessAdjustment` config.json parameter, see #766.
  • Loading branch information
ebaauw committed Nov 22, 2020
1 parent 35fb150 commit e0ba55d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/HuePlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ function HuePlatform (log, configJson, homebridge) {
case 'anyon':
this.config.anyOn = !!value
break
case 'brightnessadjustment':
this.config.brightnessAdjustment = toIntBetween(
value, 10, 100, 100
)
break
case 'excludesensortypes':
if (Array.isArray(value)) {
for (const type of value) {
Expand Down

0 comments on commit e0ba55d

Please sign in to comment.