@riddix/hamh 2.1.0-alpha.480 → 2.1.0-alpha.481

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.
@@ -146701,12 +146701,6 @@ var init_bridge_config_schema = __esm({
146701
146701
  type: "boolean",
146702
146702
  default: false
146703
146703
  },
146704
- alexaPreserveBrightnessOnTurnOn: {
146705
- title: "Alexa: Preserve Brightness on Turn-On (Deprecated)",
146706
- description: "This workaround is now always active and this setting has no effect. The bridge automatically ignores brightness commands that set lights to 100% immediately after a turn-on command.",
146707
- type: "boolean",
146708
- default: true
146709
- },
146710
146704
  serverMode: {
146711
146705
  title: "Server Mode (for Robot Vacuums)",
146712
146706
  description: "Expose the device as a standalone Matter device instead of a bridged device. This is required for Apple Home to properly support Siri voice commands for Robot Vacuums. IMPORTANT: Only ONE device should be in this bridge when server mode is enabled.",
@@ -146747,12 +146741,6 @@ var init_bridge_config_schema = __esm({
146747
146741
  title: "Vacuum: Include OnOff Cluster (Alexa)",
146748
146742
  description: "Add an OnOff cluster to robot vacuum endpoints. Alexa REQUIRES this (PowerController) to show robotic vacuums in the app. Without it, Alexa commissions the device but never displays it. In Server Mode this is enabled automatically \u2014 only check this for bridge mode. WARNING: OnOff is NOT part of the Matter RVC device type specification. Enabling this may break Apple Home (shows 'Updating') and Google Home.",
146749
146743
  type: "boolean"
146750
- },
146751
- vacuumMinimalClusters: {
146752
- title: "Vacuum: Minimal Clusters (Alexa troubleshooting)",
146753
- description: "Strip the vacuum endpoint to only the clusters required by the Matter RVC spec. Removes PowerSource (battery) and the default ServiceArea placeholder. Enable this if Alexa commissions the vacuum but the device never appears in the app. Trade-off: battery percentage will not be reported to Matter controllers.",
146754
- type: "boolean",
146755
- default: false
146756
146744
  }
146757
146745
  },
146758
146746
  additionalProperties: false
@@ -176609,7 +176597,7 @@ var VacuumEndpointType = RoboticVacuumCleanerDevice.with(
176609
176597
  HomeAssistantEntityBehavior,
176610
176598
  VacuumRvcOperationalStateServer
176611
176599
  );
176612
- function VacuumDevice(homeAssistantEntity, includeOnOff = false, minimalClusters = false, cleaningModeOptions) {
176600
+ function VacuumDevice(homeAssistantEntity, includeOnOff = false, cleaningModeOptions) {
176613
176601
  if (homeAssistantEntity.entity.state === void 0) {
176614
176602
  return void 0;
176615
176603
  }
@@ -176630,9 +176618,7 @@ function VacuumDevice(homeAssistantEntity, includeOnOff = false, minimalClusters
176630
176618
  logger196.info(`${entityId}: Adding OnOff cluster (vacuumOnOff flag enabled)`);
176631
176619
  device = device.with(VacuumOnOffServer);
176632
176620
  }
176633
- if (!minimalClusters) {
176634
- device = device.with(VacuumPowerSourceServer);
176635
- }
176621
+ device = device.with(VacuumPowerSourceServer);
176636
176622
  const roomEntities = homeAssistantEntity.mapping?.roomEntities;
176637
176623
  const rooms = parseVacuumRooms(attributes7);
176638
176624
  logger196.info(
@@ -176648,11 +176634,9 @@ function VacuumDevice(homeAssistantEntity, includeOnOff = false, minimalClusters
176648
176634
  device = device.with(
176649
176635
  createVacuumServiceAreaServer(attributes7, roomEntities)
176650
176636
  );
176651
- } else if (!minimalClusters) {
176637
+ } else {
176652
176638
  logger196.info(`${entityId}: Adding ServiceArea (default single-area)`);
176653
176639
  device = device.with(createDefaultServiceAreaServer());
176654
- } else {
176655
- logger196.info(`${entityId}: Skipping ServiceArea (minimal clusters mode)`);
176656
176640
  }
176657
176641
  const fanSpeedList = resolveFanSpeedList(
176658
176642
  attributes7,
@@ -176882,7 +176866,6 @@ function createLegacyEndpointType(entity, mapping, areaName, options) {
176882
176866
  type = VacuumDevice(
176883
176867
  { entity, customName, mapping },
176884
176868
  options?.vacuumOnOff,
176885
- options?.vacuumMinimalClusters,
176886
176869
  options?.cleaningModeOptions
176887
176870
  );
176888
176871
  } else {
@@ -177305,7 +177288,6 @@ var LegacyEndpoint = class _LegacyEndpoint extends EntityEndpoint {
177305
177288
  const areaName = registry2.getAreaName(entityId);
177306
177289
  const type = createLegacyEndpointType(payload, effectiveMapping, areaName, {
177307
177290
  vacuumOnOff: registry2.isVacuumOnOffEnabled(),
177308
- vacuumMinimalClusters: registry2.isVacuumMinimalClustersEnabled(),
177309
177291
  cleaningModeOptions
177310
177292
  });
177311
177293
  if (!type) {
@@ -178255,9 +178237,6 @@ var BridgeRegistry = class _BridgeRegistry {
178255
178237
  isServerModeVacuumOnOffEnabled() {
178256
178238
  return this.dataProvider.featureFlags?.vacuumOnOff === true;
178257
178239
  }
178258
- isVacuumMinimalClustersEnabled() {
178259
- return this.dataProvider.featureFlags?.vacuumMinimalClusters === true;
178260
- }
178261
178240
  /**
178262
178241
  * Auto-detect vacuum-related select entities on the same HA device.
178263
178242
  * HA integrations (Dreame, Roborock, Ecovacs, Valetudo, etc.) expose vacuum
@@ -178973,7 +178952,7 @@ var ServerModeVacuumEndpointType = RoboticVacuumCleanerDevice.with(
178973
178952
  HomeAssistantEntityBehavior,
178974
178953
  VacuumRvcOperationalStateServer
178975
178954
  );
178976
- function ServerModeVacuumDevice(homeAssistantEntity, includeOnOff = false, minimalClusters = false, cleaningModeOptions) {
178955
+ function ServerModeVacuumDevice(homeAssistantEntity, includeOnOff = false, cleaningModeOptions) {
178977
178956
  if (homeAssistantEntity.entity.state === void 0) {
178978
178957
  return void 0;
178979
178958
  }
@@ -178984,9 +178963,7 @@ function ServerModeVacuumDevice(homeAssistantEntity, includeOnOff = false, minim
178984
178963
  if (includeOnOff) {
178985
178964
  device = device.with(VacuumOnOffServer);
178986
178965
  }
178987
- if (!minimalClusters) {
178988
- device = device.with(VacuumPowerSourceServer);
178989
- }
178966
+ device = device.with(VacuumPowerSourceServer);
178990
178967
  const customAreas = homeAssistantEntity.mapping?.customServiceAreas;
178991
178968
  const roomEntities = homeAssistantEntity.mapping?.roomEntities;
178992
178969
  const rooms = parseVacuumRooms(attributes7);
@@ -178996,7 +178973,7 @@ function ServerModeVacuumDevice(homeAssistantEntity, includeOnOff = false, minim
178996
178973
  device = device.with(
178997
178974
  createVacuumServiceAreaServer(attributes7, roomEntities)
178998
178975
  );
178999
- } else if (!minimalClusters) {
178976
+ } else {
179000
178977
  device = device.with(createDefaultServiceAreaServer());
179001
178978
  }
179002
178979
  const fanSpeedList = resolveFanSpeedList(
@@ -179161,7 +179138,6 @@ var ServerModeVacuumEndpoint = class _ServerModeVacuumEndpoint extends EntityEnd
179161
179138
  mapping: effectiveMapping
179162
179139
  },
179163
179140
  registry2.isServerModeVacuumOnOffEnabled(),
179164
- registry2.isVacuumMinimalClustersEnabled(),
179165
179141
  cleaningModeOptions
179166
179142
  );
179167
179143
  if (!endpointType) {