File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1311,10 +1311,13 @@ HomeSeerAccessory.prototype = {
13111311
13121312 this . statusCharacteristic = lightbulbService . getCharacteristic ( Characteristic . On ) ;
13131313
1314- lightbulbService
1315- . addCharacteristic ( new Characteristic . Brightness ( ) )
1316- . on ( 'set' , this . setBrightness . bind ( this ) )
1317- . on ( 'get' , this . getValue . bind ( this ) ) ;
1314+ //Allow for dimmable lights
1315+ if ( this . config . can_dim == null || this . config . can_dim == true ) {
1316+ lightbulbService
1317+ . addCharacteristic ( new Characteristic . Brightness ( ) )
1318+ . on ( 'set' , this . setBrightness . bind ( this ) )
1319+ . on ( 'get' , this . getValue . bind ( this ) ) ;
1320+ }
13181321
13191322 services . push ( lightbulbService ) ;
13201323 break ;
Original file line number Diff line number Diff line change 11{
22 "name" : " homebridge-homeseer-plugin" ,
3- "version" : " 1.0.15 " ,
3+ "version" : " 1.0.16 " ,
44 "description" : " Homeseer Plugin for homebridge: https://github.com/nfarina/homebridge" ,
55 "license" : " ISC" ,
66 "keywords" : [
You can’t perform that action at this time.
0 commit comments