hoffmation-base 3.0.0-alpha.44 → 3.0.0-alpha.46

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.
@@ -179,7 +179,7 @@ class OwnGoveeDevice {
179
179
  });
180
180
  }
181
181
  setColor(color) {
182
- govee_service_1.GooveeService.sendCommand(this, `color/${color}`).then((result) => {
182
+ govee_service_1.GooveeService.sendCommand(this, `color/${color.replace('#', '')}`).then((result) => {
183
183
  if (!result) {
184
184
  this.log(models_1.LogLevel.Error, 'Govee set color resulted in error');
185
185
  }
@@ -203,10 +203,10 @@ class OwnGoveeDevice {
203
203
  });
204
204
  }
205
205
  turnOff() {
206
- if (this._actuatorOn) {
206
+ if (!this._actuatorOn) {
207
207
  return;
208
208
  }
209
- this.queuedValue = true;
209
+ this.queuedValue = false;
210
210
  govee_service_1.GooveeService.sendCommand(this, `on/false`).then((result) => {
211
211
  if (!result) {
212
212
  this.log(models_1.LogLevel.Error, 'Govee turn off resulted in error');