@riddix/hamh 2.1.0-alpha.421 → 2.1.0-alpha.423

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.
@@ -166220,6 +166220,7 @@ var LevelControlServerBase = class extends FeaturedBase4 {
166220
166220
  transition: transitionTimeTenths / 10
166221
166221
  };
166222
166222
  }
166223
+ this.state.currentLevel = level;
166223
166224
  homeAssistant.callAction(action);
166224
166225
  }
166225
166226
  };
@@ -169438,6 +169439,10 @@ var ColorControlServerBase = class extends FeaturedBase7 {
169438
169439
  }
169439
169440
  const action = this.state.config.setTemperature(targetKelvin, this.agent);
169440
169441
  this.applyTransition(action);
169442
+ applyPatchState(this.state, {
169443
+ colorTemperatureMireds: targetMireds,
169444
+ colorMode: ColorControl3.ColorMode.ColorTemperatureMireds
169445
+ });
169441
169446
  homeAssistant.callAction(action);
169442
169447
  }
169443
169448
  moveToHueLogic(targetHue) {
@@ -169463,6 +169468,11 @@ var ColorControlServerBase = class extends FeaturedBase7 {
169463
169468
  const color = ColorConverter.fromMatterHS(targetHue, targetSaturation);
169464
169469
  const action = this.state.config.setColor(color, this.agent);
169465
169470
  this.applyTransition(action);
169471
+ applyPatchState(this.state, {
169472
+ currentHue: targetHue,
169473
+ currentSaturation: targetSaturation,
169474
+ colorMode: ColorControl3.ColorMode.CurrentHueAndCurrentSaturation
169475
+ });
169466
169476
  homeAssistant.callAction(action);
169467
169477
  }
169468
169478
  applyTransition(action) {
@@ -170846,6 +170856,7 @@ var SpeakerLevelControlServerBase = class extends FeaturedBase9 {
170846
170856
  if (levelPercent === current) {
170847
170857
  return;
170848
170858
  }
170859
+ this.state.currentLevel = level;
170849
170860
  homeAssistant.callAction(
170850
170861
  config10.moveToLevelPercent(levelPercent, this.agent)
170851
170862
  );