@riddix/hamh 2.1.0-alpha.392 → 2.1.0-alpha.394

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.
@@ -166464,6 +166464,16 @@ function AirPurifierEndpoint(homeAssistantEntity) {
166464
166464
  if (testBit(supportedFeatures, FanDeviceFeature.DIRECTION)) {
166465
166465
  features2.add("AirflowDirection");
166466
166466
  }
166467
+ if (testBit(supportedFeatures, FanDeviceFeature.OSCILLATE)) {
166468
+ features2.add("Rocking");
166469
+ }
166470
+ const presetModes = attributes7.preset_modes ?? [];
166471
+ const hasWindModes = presetModes.some(
166472
+ (m) => m.toLowerCase() === "natural" || m.toLowerCase() === "nature" || m.toLowerCase() === "sleep"
166473
+ );
166474
+ if (hasWindModes) {
166475
+ features2.add("Wind");
166476
+ }
166467
166477
  const baseDevice = AirPurifierDevice.with(
166468
166478
  IdentifyServer2,
166469
166479
  BasicInformationServer2,