hoffmation-base 2.22.0 → 2.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,7 +124,8 @@ class ZigbeeDimmer extends index_1.ZigbeeDevice {
124
124
  }, 1000, this);
125
125
  });
126
126
  }
127
- else {
127
+ else if (this._brightness !== brightness) {
128
+ // Only set brightness if it is different from the current one
128
129
  this.setState(this._stateIdBrightness, brightness);
129
130
  }
130
131
  }
@@ -77,7 +77,7 @@ class ZigbeeLedRGBCCT extends zigbeeDimmer_1.ZigbeeDimmer {
77
77
  if (pValue && brightness === -1 && this.brightness < 10) {
78
78
  brightness = 10;
79
79
  }
80
- this.log(models_1.LogLevel.Debug, `LED Schalten An: ${pValue}\tHelligkeit: ${brightness}%\tFarbe: "${color}"\tColorTemperatur: ${colorTemp}`);
80
+ this.log(models_1.LogLevel.Debug, `LED Schalten An: ${pValue}\tHelligkeit: ${brightness}%\tFarbe: "${color}"\tColorTemperatur: ${colorTemp}\tTransition Time: ${transitionTime}`);
81
81
  const formattedColor = services_1.Utils.formatHex(color);
82
82
  if (formattedColor !== null) {
83
83
  this.ioConn.setState(this._stateIdColor, color, (err) => {