@riddix/hamh 2.1.0-alpha.606 → 2.1.0-alpha.607

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.
@@ -146794,6 +146794,12 @@ var init_bridge_config_schema = __esm({
146794
146794
  type: "boolean",
146795
146795
  default: false
146796
146796
  },
146797
+ preferEntityRegistryName: {
146798
+ title: "Prefer Entity Registry Name (HA 2026.4 workaround)",
146799
+ description: "Use the entity registry name (or original_name) as nodeLabel instead of the composed friendly_name. Since Home Assistant 2026.4, friendly_name is prefixed with the device name, which breaks voice commands that relied on the short entity name. Resolution order: customName \u2192 registry name \u2192 registry original_name \u2192 friendly_name \u2192 entity_id. Matter has no alias concept \u2014 this only changes which single name is reported.",
146800
+ type: "boolean",
146801
+ default: false
146802
+ },
146797
146803
  vacuumOnOff: {
146798
146804
  title: "Vacuum: Include OnOff Cluster (Alexa)",
146799
146805
  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.",
@@ -168120,7 +168126,8 @@ var BasicInformationServer2 = class extends BridgedDeviceBasicInformationServer
168120
168126
  const homeAssistant = this.agent.get(HomeAssistantEntityBehavior);
168121
168127
  const device = entity.deviceRegistry;
168122
168128
  const mapping = homeAssistant.state.mapping;
168123
- const nodeLabel = ellipse(32, homeAssistant.state.customName) ?? ellipse(32, entity.state?.attributes?.friendly_name) ?? ellipse(32, entity.entity_id);
168129
+ const registryName = featureFlags?.preferEntityRegistryName ? entity.registry?.name ?? entity.registry?.original_name : void 0;
168130
+ const nodeLabel = ellipse(32, homeAssistant.state.customName) ?? ellipse(32, registryName) ?? ellipse(32, entity.state?.attributes?.friendly_name) ?? ellipse(32, entity.entity_id);
168124
168131
  const productNameFromNodeLabel = featureFlags?.productNameFromNodeLabel === true ? ellipse(32, sanitizeMatterString(nodeLabel ?? "")) ?? void 0 : void 0;
168125
168132
  const serialNumberSuffix = this.env.get(BridgeDataProvider).serialNumberSuffix;
168126
168133
  const rawSerial = ellipse(32, mapping?.customSerialNumber) ?? hash(32, entity.entity_id);