Skip to content

Commit 974edba

Browse files
committed
fixed dimmed light off state
1 parent 3c43f71 commit 974edba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

plugins/HuePlugin/HueDimmableDevice.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ var HueDimmableDevice = function(plugin, hueApi ,light,serialprefix) {
281281
if (di_channel!=undefined) {
282282
if (state==true) {
283283
di_channel.updateValue("LEVEL",(bri/254),true);
284+
} else {
285+
di_channel.updateValue("LEVEL",0,true);
284286
}
285287
}
286288

plugins/HuePlugin/HuePlatform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ HuePlatform.prototype.refreshAll = function() {
419419
var refreshrate = this.configuration.getValueForPluginWithDefault(this.plugin.name,"refresh",60)*1000;
420420

421421
this.hue_api.lights(function(err, lights) {
422-
that.log.debug("Number of Lamps in update %s error %s -> %s",lights,err);
422+
that.log.debug("Number of Lamps in update %s error %s",lights["lights"].length,err);
423423
if (err) {
424424
that.log.debug(err.stack);
425425
}

0 commit comments

Comments
 (0)