hoffmation-base 3.0.0-alpha.72 → 3.0.0-alpha.73

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.
@@ -106,9 +106,12 @@ class OwnGoveeDevice {
106
106
  c.brightness = 10;
107
107
  }
108
108
  this.log(models_1.LogLevel.Debug, c.logMessage, log_service_1.LogDebugType.SetActuator);
109
- const formattedColor = utils_1.Utils.formatHex(c.color);
110
- if (formattedColor !== null) {
111
- this.setColor(c.color);
109
+ if (c.on) {
110
+ // Changing the color turns the device on as well --> Only change color on turn on actions
111
+ const formattedColor = utils_1.Utils.formatHex(c.color);
112
+ if (formattedColor !== null) {
113
+ this.setColor(c.color);
114
+ }
112
115
  }
113
116
  const dontBlock = devices_1.LampUtils.checkUnBlock(this, c);
114
117
  if (devices_1.LampUtils.checkBlockActive(this, c)) {