@riddix/hamh 2.1.0-alpha.400 → 2.1.0-alpha.402

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.
@@ -167057,7 +167057,7 @@ var ComposedAirPurifierEndpoint = class _ComposedAirPurifierEndpoint extends End
167057
167057
  if (hasWindModes) {
167058
167058
  features2.add("Wind");
167059
167059
  }
167060
- let parentType = AirPurifierDevice.with(
167060
+ let parentType = BridgedNodeEndpoint.with(
167061
167061
  BasicInformationServer2,
167062
167062
  IdentifyServer2,
167063
167063
  HomeAssistantEntityBehavior,
@@ -167136,6 +167136,12 @@ var ComposedAirPurifierEndpoint = class _ComposedAirPurifierEndpoint extends End
167136
167136
  }
167137
167137
  }
167138
167138
  const parentTypeWithState = parentType.set({
167139
+ descriptor: {
167140
+ deviceTypeList: [
167141
+ { deviceType: DeviceTypeId(19), revision: 3 },
167142
+ { deviceType: DeviceTypeId(45), revision: 2 }
167143
+ ]
167144
+ },
167139
167145
  homeAssistantEntity: {
167140
167146
  entity: primaryPayload,
167141
167147
  customName: config10.customName,
@@ -173021,14 +173027,14 @@ function RvcCleanModeServer2(config10, initialState) {
173021
173027
  const defaultModes = [
173022
173028
  {
173023
173029
  label: "Vacuum",
173024
- mode: 1,
173030
+ mode: 0,
173025
173031
  modeTags: [{ value: RvcCleanMode3.ModeTag.Vacuum }]
173026
173032
  }
173027
173033
  ];
173028
173034
  return RvcCleanModeServerBase.set({
173029
173035
  config: config10,
173030
173036
  supportedModes: initialState?.supportedModes ?? defaultModes,
173031
- currentMode: initialState?.currentMode ?? 1
173037
+ currentMode: initialState?.currentMode ?? 0
173032
173038
  });
173033
173039
  }
173034
173040
 
@@ -173624,7 +173630,16 @@ function createDefaultRvcCleanModeServer() {
173624
173630
  ],
173625
173631
  setCleanMode: () => void 0
173626
173632
  };
173627
- return RvcCleanModeServer2(defaultConfig2);
173633
+ return RvcCleanModeServer2(defaultConfig2, {
173634
+ supportedModes: [
173635
+ {
173636
+ label: "Vacuum",
173637
+ mode: MODE_VACUUM,
173638
+ modeTags: [{ value: RvcCleanMode3.ModeTag.Vacuum }]
173639
+ }
173640
+ ],
173641
+ currentMode: MODE_VACUUM
173642
+ });
173628
173643
  }
173629
173644
  function supportsCleaningModes(attributes7) {
173630
173645
  return isDreameVacuum(attributes7) || isEcovacsVacuum(attributes7);