@riddix/hamh 2.1.0-alpha.553 → 2.1.0-alpha.555

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.
@@ -146521,6 +146521,7 @@ var init_home_assistant_domain = __esm({
146521
146521
  HomeAssistantDomain2["select"] = "select";
146522
146522
  HomeAssistantDomain2["script"] = "script";
146523
146523
  HomeAssistantDomain2["sensor"] = "sensor";
146524
+ HomeAssistantDomain2["siren"] = "siren";
146524
146525
  HomeAssistantDomain2["switch"] = "switch";
146525
146526
  HomeAssistantDomain2["vacuum"] = "vacuum";
146526
146527
  HomeAssistantDomain2["valve"] = "valve";
@@ -152309,39 +152310,44 @@ var HomeAssistantClient = class extends Service {
152309
152310
  this.connection?.close();
152310
152311
  }
152311
152312
  async createConnection(props) {
152312
- try {
152313
- const connection = await createConnection({
152314
- auth: createLongLivedTokenAuth(
152315
- props.url.replace(/\/$/, ""),
152316
- props.accessToken
152317
- )
152318
- });
152319
- await this.waitForHomeAssistantToBeUpAndRunning(connection);
152320
- return connection;
152321
- } catch (reason) {
152322
- return this.handleInitializationError(reason, props);
152323
- }
152324
- }
152325
- async handleInitializationError(reason, props) {
152326
- if (reason === ERR_CANNOT_CONNECT) {
152327
- this.log.warnCtx("Unable to connect to Home Assistant, retrying...", {
152328
- url: props.url,
152329
- retryDelayMs: 5e3
152330
- });
152331
- await new Promise((resolve6) => setTimeout(resolve6, 5e3));
152332
- return this.createConnection(props);
152333
- }
152334
- if (reason === ERR_INVALID_AUTH) {
152335
- this.log.errorCtx(
152336
- "Authentication failed",
152337
- new Error("Invalid authentication credentials"),
152338
- { url: props.url }
152339
- );
152340
- throw new Error(
152341
- "Authentication failed while connecting to home assistant"
152342
- );
152313
+ const maxConnectAttempts = 60;
152314
+ for (let attempt = 1; attempt <= maxConnectAttempts; attempt++) {
152315
+ try {
152316
+ const connection = await createConnection({
152317
+ auth: createLongLivedTokenAuth(
152318
+ props.url.replace(/\/$/, ""),
152319
+ props.accessToken
152320
+ )
152321
+ });
152322
+ await this.waitForHomeAssistantToBeUpAndRunning(connection);
152323
+ return connection;
152324
+ } catch (reason) {
152325
+ if (reason === ERR_CANNOT_CONNECT) {
152326
+ this.log.warnCtx("Unable to connect to Home Assistant, retrying...", {
152327
+ url: props.url,
152328
+ attempt,
152329
+ maxAttempts: maxConnectAttempts,
152330
+ retryDelayMs: 5e3
152331
+ });
152332
+ await new Promise((resolve6) => setTimeout(resolve6, 5e3));
152333
+ continue;
152334
+ }
152335
+ if (reason === ERR_INVALID_AUTH) {
152336
+ this.log.errorCtx(
152337
+ "Authentication failed",
152338
+ new Error("Invalid authentication credentials"),
152339
+ { url: props.url }
152340
+ );
152341
+ throw new Error(
152342
+ "Authentication failed while connecting to home assistant"
152343
+ );
152344
+ }
152345
+ throw new Error(`Unable to connect to home assistant: ${reason}`);
152346
+ }
152343
152347
  }
152344
- throw new Error(`Unable to connect to home assistant: ${reason}`);
152348
+ throw new Error(
152349
+ `Failed to connect to Home Assistant at ${props.url} after ${maxConnectAttempts} attempts (5 minutes)`
152350
+ );
152345
152351
  }
152346
152352
  async waitForHomeAssistantToBeUpAndRunning(connection) {
152347
152353
  this.log.infoCtx("Waiting for Home Assistant to be up and running", {
@@ -152364,8 +152370,15 @@ var HomeAssistantClient = class extends Service {
152364
152370
  this.log.debugCtx("Home Assistant state update", { state: state2 });
152365
152371
  return state2;
152366
152372
  };
152373
+ const maxWaitAttempts = 120;
152367
152374
  let state;
152375
+ let waitAttempt = 0;
152368
152376
  while (state !== "RUNNING") {
152377
+ if (++waitAttempt > maxWaitAttempts) {
152378
+ throw new Error(
152379
+ `Home Assistant did not reach RUNNING state within 10 minutes (last state: ${state ?? "unknown"})`
152380
+ );
152381
+ }
152369
152382
  await new Promise((resolve6) => setTimeout(resolve6, 5e3));
152370
152383
  state = await getState();
152371
152384
  }
@@ -152869,6 +152882,8 @@ var EntityMappingStorage = class extends Service {
152869
152882
  entityId: request.entityId,
152870
152883
  matterDeviceType: request.matterDeviceType,
152871
152884
  customName: request.customName?.trim() || void 0,
152885
+ customProductName: request.customProductName?.trim() || void 0,
152886
+ customVendorName: request.customVendorName?.trim() || void 0,
152872
152887
  disabled: request.disabled,
152873
152888
  filterLifeEntity: request.filterLifeEntity?.trim() || void 0,
152874
152889
  cleaningModeEntity: request.cleaningModeEntity?.trim() || void 0,
@@ -152891,7 +152906,7 @@ var EntityMappingStorage = class extends Service {
152891
152906
  coverSwapOpenClose: request.coverSwapOpenClose || void 0,
152892
152907
  composedEntities: request.composedEntities?.filter((e) => e.entityId?.trim()) ?? void 0
152893
152908
  };
152894
- if (!config10.matterDeviceType && !config10.customName && config10.disabled !== true && !config10.filterLifeEntity && !config10.cleaningModeEntity && !config10.temperatureEntity && !config10.humidityEntity && !config10.batteryEntity && !config10.roomEntities && !config10.disableLockPin && !config10.powerEntity && !config10.energyEntity && !config10.pressureEntity && !config10.suctionLevelEntity && !config10.mopIntensityEntity && (!config10.customServiceAreas || config10.customServiceAreas.length === 0) && (!config10.customFanSpeedTags || Object.keys(config10.customFanSpeedTags).length === 0) && !config10.currentRoomEntity && !config10.valetudoIdentifier && !config10.coverSwapOpenClose && (!config10.composedEntities || config10.composedEntities.length === 0)) {
152909
+ if (!config10.matterDeviceType && !config10.customName && !config10.customProductName && !config10.customVendorName && config10.disabled !== true && !config10.filterLifeEntity && !config10.cleaningModeEntity && !config10.temperatureEntity && !config10.humidityEntity && !config10.batteryEntity && !config10.roomEntities && !config10.disableLockPin && !config10.powerEntity && !config10.energyEntity && !config10.pressureEntity && !config10.suctionLevelEntity && !config10.mopIntensityEntity && (!config10.customServiceAreas || config10.customServiceAreas.length === 0) && (!config10.customFanSpeedTags || Object.keys(config10.customFanSpeedTags).length === 0) && !config10.currentRoomEntity && !config10.valetudoIdentifier && !config10.coverSwapOpenClose && (!config10.composedEntities || config10.composedEntities.length === 0)) {
152895
152910
  bridgeMap.delete(request.entityId);
152896
152911
  } else {
152897
152912
  bridgeMap.set(request.entityId, config10);
@@ -159873,6 +159888,7 @@ var DishwasherDeviceDefinition = MutableEndpoint({
159873
159888
  behaviors: SupportedBehaviors(DishwasherRequirements.server.mandatory.OperationalState)
159874
159889
  });
159875
159890
  Object.freeze(DishwasherDeviceDefinition);
159891
+ var DishwasherDevice = DishwasherDeviceDefinition;
159876
159892
 
159877
159893
  // ../../node_modules/.pnpm/@matter+node@0.16.10/node_modules/@matter/node/dist/esm/devices/door-lock-controller.js
159878
159894
  init_TimeSynchronizationServer();
@@ -167787,10 +167803,11 @@ var BasicInformationServer2 = class extends BridgedDeviceBasicInformationServer
167787
167803
  const { basicInformation } = this.env.get(BridgeDataProvider);
167788
167804
  const homeAssistant = this.agent.get(HomeAssistantEntityBehavior);
167789
167805
  const device = entity.deviceRegistry;
167806
+ const mapping = homeAssistant.state.mapping;
167790
167807
  applyPatchState(this.state, {
167791
167808
  vendorId: VendorId(basicInformation.vendorId),
167792
- vendorName: ellipse(32, device?.manufacturer) ?? hash(32, basicInformation.vendorName),
167793
- productName: ellipse(32, device?.model_id) ?? ellipse(32, device?.model) ?? hash(32, basicInformation.productName),
167809
+ vendorName: ellipse(32, mapping?.customVendorName) ?? ellipse(32, device?.manufacturer) ?? hash(32, basicInformation.vendorName),
167810
+ productName: ellipse(32, mapping?.customProductName) ?? ellipse(32, device?.model_id) ?? ellipse(32, device?.model) ?? hash(32, basicInformation.productName),
167794
167811
  productLabel: ellipse(64, device?.model) ?? hash(64, basicInformation.productLabel),
167795
167812
  hardwareVersion: basicInformation.hardwareVersion,
167796
167813
  softwareVersion: basicInformation.softwareVersion,
@@ -171373,6 +171390,19 @@ var WindowCoveringServerBase = class _WindowCoveringServerBase extends FeaturedB
171373
171390
  static DEBOUNCE_INITIAL_MS = 400;
171374
171391
  static DEBOUNCE_SUBSEQUENT_MS = 150;
171375
171392
  static COMMAND_SEQUENCE_THRESHOLD_MS = 600;
171393
+ async [Symbol.asyncDispose]() {
171394
+ if (this.liftDebounceTimer) {
171395
+ clearTimeout(this.liftDebounceTimer);
171396
+ this.liftDebounceTimer = null;
171397
+ }
171398
+ if (this.tiltDebounceTimer) {
171399
+ clearTimeout(this.tiltDebounceTimer);
171400
+ this.tiltDebounceTimer = null;
171401
+ }
171402
+ this.pendingLiftAction = null;
171403
+ this.pendingTiltAction = null;
171404
+ await super[Symbol.asyncDispose]();
171405
+ }
171376
171406
  async initialize() {
171377
171407
  if (this.features.lift) {
171378
171408
  if (this.state.installedOpenLimitLift == null) {
@@ -171885,6 +171915,106 @@ function CoverDevice(homeAssistantEntity) {
171885
171915
  });
171886
171916
  }
171887
171917
 
171918
+ // ../../node_modules/.pnpm/@matter+main@0.16.10/node_modules/@matter/main/dist/esm/forwards/behaviors/operational-state.js
171919
+ init_nodejs();
171920
+
171921
+ // ../../node_modules/.pnpm/@matter+main@0.16.10/node_modules/@matter/main/dist/esm/forwards/clusters/operational-state.js
171922
+ init_nodejs();
171923
+ init_operational_state();
171924
+
171925
+ // src/matter/endpoints/legacy/dishwasher/index.ts
171926
+ init_home_assistant_entity_behavior();
171927
+ var haStateToDishwasherState = {
171928
+ off: OperationalState3.OperationalStateEnum.Stopped,
171929
+ idle: OperationalState3.OperationalStateEnum.Stopped,
171930
+ standby: OperationalState3.OperationalStateEnum.Stopped,
171931
+ on: OperationalState3.OperationalStateEnum.Running,
171932
+ running: OperationalState3.OperationalStateEnum.Running,
171933
+ active: OperationalState3.OperationalStateEnum.Running,
171934
+ drying: OperationalState3.OperationalStateEnum.Running,
171935
+ washing: OperationalState3.OperationalStateEnum.Running,
171936
+ paused: OperationalState3.OperationalStateEnum.Paused,
171937
+ complete: OperationalState3.OperationalStateEnum.Stopped,
171938
+ finished: OperationalState3.OperationalStateEnum.Stopped
171939
+ };
171940
+ var DishwasherOperationalStateServer = class extends OperationalStateServer {
171941
+ async initialize() {
171942
+ this.state.operationalStateList = [
171943
+ { operationalStateId: OperationalState3.OperationalStateEnum.Stopped },
171944
+ { operationalStateId: OperationalState3.OperationalStateEnum.Running },
171945
+ { operationalStateId: OperationalState3.OperationalStateEnum.Paused },
171946
+ { operationalStateId: OperationalState3.OperationalStateEnum.Error }
171947
+ ];
171948
+ this.state.operationalState = OperationalState3.OperationalStateEnum.Stopped;
171949
+ this.state.operationalError = {
171950
+ errorStateId: OperationalState3.ErrorState.NoError
171951
+ };
171952
+ await super.initialize();
171953
+ const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
171954
+ this.update(homeAssistant.entity);
171955
+ this.reactTo(homeAssistant.onChange, this.update);
171956
+ }
171957
+ update(entity) {
171958
+ if (!entity.state) {
171959
+ return;
171960
+ }
171961
+ const haState = entity.state.state?.toLowerCase() ?? "off";
171962
+ const newState = haStateToDishwasherState[haState] ?? OperationalState3.OperationalStateEnum.Stopped;
171963
+ applyPatchState(this.state, {
171964
+ operationalState: newState,
171965
+ operationalError: {
171966
+ errorStateId: OperationalState3.ErrorState.NoError
171967
+ }
171968
+ });
171969
+ }
171970
+ pause() {
171971
+ return {
171972
+ commandResponseState: {
171973
+ errorStateId: OperationalState3.ErrorState.CommandInvalidInState
171974
+ }
171975
+ };
171976
+ }
171977
+ stop() {
171978
+ const homeAssistant = this.agent.get(HomeAssistantEntityBehavior);
171979
+ homeAssistant.callAction({ action: "homeassistant.turn_off" });
171980
+ return {
171981
+ commandResponseState: {
171982
+ errorStateId: OperationalState3.ErrorState.NoError
171983
+ }
171984
+ };
171985
+ }
171986
+ start() {
171987
+ const homeAssistant = this.agent.get(HomeAssistantEntityBehavior);
171988
+ homeAssistant.callAction({ action: "homeassistant.turn_on" });
171989
+ return {
171990
+ commandResponseState: {
171991
+ errorStateId: OperationalState3.ErrorState.NoError
171992
+ }
171993
+ };
171994
+ }
171995
+ resume() {
171996
+ return this.start();
171997
+ }
171998
+ };
171999
+ var DishwasherOnOffServer = OnOffServer2({
172000
+ turnOn: () => ({
172001
+ action: "homeassistant.turn_on"
172002
+ }),
172003
+ turnOff: () => ({
172004
+ action: "homeassistant.turn_off"
172005
+ })
172006
+ });
172007
+ var DishwasherDeviceType = DishwasherDevice.with(
172008
+ BasicInformationServer2,
172009
+ IdentifyServer2,
172010
+ HomeAssistantEntityBehavior,
172011
+ DishwasherOperationalStateServer,
172012
+ DishwasherOnOffServer
172013
+ );
172014
+ function DishwasherEndpoint(homeAssistantEntity) {
172015
+ return DishwasherDeviceType.set({ homeAssistantEntity });
172016
+ }
172017
+
171888
172018
  // src/matter/behaviors/generic-switch-server.ts
171889
172019
  init_esm();
171890
172020
  init_home_assistant_entity_behavior();
@@ -172218,6 +172348,12 @@ function consumePendingColorStaging(entityId) {
172218
172348
  var FeaturedBase8 = ColorControlServer.with("ColorTemperature", "HueSaturation");
172219
172349
  var ColorControlServerBase = class extends FeaturedBase8 {
172220
172350
  pendingTransitionTime;
172351
+ async [Symbol.asyncDispose]() {
172352
+ const entityId = this.agent.get(HomeAssistantEntityBehavior).entityId;
172353
+ optimisticColorState.delete(entityId);
172354
+ pendingColorStaging.delete(entityId);
172355
+ await super[Symbol.asyncDispose]();
172356
+ }
172221
172357
  async initialize() {
172222
172358
  if (this.features.colorTemperature) {
172223
172359
  const defaultMinMireds = 147;
@@ -175592,6 +175728,26 @@ function SensorDevice(homeAssistantEntity) {
175592
175728
  return void 0;
175593
175729
  }
175594
175730
 
175731
+ // src/matter/endpoints/legacy/siren/index.ts
175732
+ init_home_assistant_entity_behavior();
175733
+ var SirenOnOffServer = OnOffServer2({
175734
+ turnOn: () => ({
175735
+ action: "siren.turn_on"
175736
+ }),
175737
+ turnOff: () => ({
175738
+ action: "siren.turn_off"
175739
+ })
175740
+ });
175741
+ var SirenDeviceType = OnOffPlugInUnitDevice.with(
175742
+ BasicInformationServer2,
175743
+ IdentifyServer2,
175744
+ HomeAssistantEntityBehavior,
175745
+ SirenOnOffServer
175746
+ );
175747
+ function SirenDevice(homeAssistantEntity) {
175748
+ return SirenDeviceType.set({ homeAssistantEntity });
175749
+ }
175750
+
175595
175751
  // src/matter/endpoints/legacy/switch/dimmable-plugin-unit.ts
175596
175752
  init_home_assistant_entity_behavior();
175597
175753
  var DimmablePlugInUnitType = DimmablePlugInUnitDevice.with(
@@ -178187,6 +178343,7 @@ var deviceCtrs = {
178187
178343
  select: SelectDevice,
178188
178344
  input_select: InputSelectDevice,
178189
178345
  scene: SceneDevice,
178346
+ siren: SirenDevice,
178190
178347
  media_player: MediaPlayerDevice,
178191
178348
  humidifier: HumidifierDevice,
178192
178349
  vacuum: VacuumDevice,
@@ -178197,18 +178354,10 @@ var deviceCtrs = {
178197
178354
  event: EventDevice
178198
178355
  };
178199
178356
  var matterDeviceTypeFactories = {
178200
- on_off_light: (ha) => OnOffLightType.set({
178201
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178202
- }),
178203
- dimmable_light: (ha) => DimmableLightType.set({
178204
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178205
- }),
178206
- color_temperature_light: (ha) => ColorTemperatureLightType.set({
178207
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178208
- }),
178209
- extended_color_light: (ha) => ExtendedColorLightType(true, true).set({
178210
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178211
- }),
178357
+ on_off_light: (ha) => OnOffLightType.set({ homeAssistantEntity: ha }),
178358
+ dimmable_light: (ha) => DimmableLightType.set({ homeAssistantEntity: ha }),
178359
+ color_temperature_light: (ha) => ColorTemperatureLightType.set({ homeAssistantEntity: ha }),
178360
+ extended_color_light: (ha) => ExtendedColorLightType(true, true).set({ homeAssistantEntity: ha }),
178212
178361
  on_off_plugin_unit: (ha) => {
178213
178362
  const domain = ha.entity.entity_id.split(".")[0];
178214
178363
  if (domain === "alarm_control_panel") {
@@ -178216,9 +178365,8 @@ var matterDeviceTypeFactories = {
178216
178365
  }
178217
178366
  return SwitchDevice(ha);
178218
178367
  },
178219
- dimmable_plugin_unit: (ha) => DimmablePlugInUnitType.set({
178220
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178221
- }),
178368
+ dishwasher: DishwasherEndpoint,
178369
+ dimmable_plugin_unit: (ha) => DimmablePlugInUnitType.set({ homeAssistantEntity: ha }),
178222
178370
  on_off_switch: SwitchDevice,
178223
178371
  door_lock: LockDevice,
178224
178372
  window_covering: CoverDevice,
@@ -178229,77 +178377,33 @@ var matterDeviceTypeFactories = {
178229
178377
  humidifier_dehumidifier: HumidifierDevice,
178230
178378
  speaker: MediaPlayerDevice,
178231
178379
  basic_video_player: VideoPlayerDevice,
178232
- humidity_sensor: (ha) => HumiditySensorType.set({
178233
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178234
- }),
178235
- temperature_sensor: (ha) => TemperatureSensorType.set({
178236
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178237
- }),
178238
- pressure_sensor: (ha) => PressureSensorType.set({
178239
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178240
- }),
178241
- light_sensor: (ha) => IlluminanceSensorType.set({
178242
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178243
- }),
178244
- flow_sensor: (ha) => FlowSensorType.set({
178245
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178246
- }),
178247
- air_quality_sensor: (ha) => AirQualitySensorType.set({
178248
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178249
- }),
178250
- battery_storage: (ha) => BatterySensorType.set({
178251
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178252
- }),
178253
- tvoc_sensor: (ha) => TvocSensorType.set({
178254
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178255
- }),
178256
- carbon_monoxide_sensor: (ha) => CarbonMonoxideSensorType.set({
178257
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178258
- }),
178259
- nitrogen_dioxide_sensor: (ha) => NitrogenDioxideSensorType.set({
178260
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178261
- }),
178262
- ozone_sensor: (ha) => OzoneSensorType.set({
178263
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178264
- }),
178265
- formaldehyde_sensor: (ha) => FormaldehydeSensorType.set({
178266
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178267
- }),
178268
- radon_sensor: (ha) => RadonSensorType.set({
178269
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178270
- }),
178271
- pm1_sensor: (ha) => Pm1SensorType.set({
178272
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178273
- }),
178274
- electrical_sensor: (ha) => ElectricalSensorType.set({
178275
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178276
- }),
178277
- contact_sensor: (ha) => ContactSensorType.set({
178278
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178279
- }),
178280
- motion_sensor: (ha) => MotionSensorType.set({
178281
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178282
- }),
178283
- occupancy_sensor: (ha) => OccupancySensorType.set({
178284
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178285
- }),
178380
+ humidity_sensor: (ha) => HumiditySensorType.set({ homeAssistantEntity: ha }),
178381
+ temperature_sensor: (ha) => TemperatureSensorType.set({ homeAssistantEntity: ha }),
178382
+ pressure_sensor: (ha) => PressureSensorType.set({ homeAssistantEntity: ha }),
178383
+ light_sensor: (ha) => IlluminanceSensorType.set({ homeAssistantEntity: ha }),
178384
+ flow_sensor: (ha) => FlowSensorType.set({ homeAssistantEntity: ha }),
178385
+ air_quality_sensor: (ha) => AirQualitySensorType.set({ homeAssistantEntity: ha }),
178386
+ battery_storage: (ha) => BatterySensorType.set({ homeAssistantEntity: ha }),
178387
+ tvoc_sensor: (ha) => TvocSensorType.set({ homeAssistantEntity: ha }),
178388
+ carbon_monoxide_sensor: (ha) => CarbonMonoxideSensorType.set({ homeAssistantEntity: ha }),
178389
+ nitrogen_dioxide_sensor: (ha) => NitrogenDioxideSensorType.set({ homeAssistantEntity: ha }),
178390
+ ozone_sensor: (ha) => OzoneSensorType.set({ homeAssistantEntity: ha }),
178391
+ formaldehyde_sensor: (ha) => FormaldehydeSensorType.set({ homeAssistantEntity: ha }),
178392
+ radon_sensor: (ha) => RadonSensorType.set({ homeAssistantEntity: ha }),
178393
+ pm1_sensor: (ha) => Pm1SensorType.set({ homeAssistantEntity: ha }),
178394
+ electrical_sensor: (ha) => ElectricalSensorType.set({ homeAssistantEntity: ha }),
178395
+ contact_sensor: (ha) => ContactSensorType.set({ homeAssistantEntity: ha }),
178396
+ motion_sensor: (ha) => MotionSensorType.set({ homeAssistantEntity: ha }),
178397
+ occupancy_sensor: (ha) => OccupancySensorType.set({ homeAssistantEntity: ha }),
178286
178398
  mode_select: SelectDevice,
178287
178399
  water_valve: ValveDevice,
178288
178400
  pump: PumpEndpoint,
178289
- rain_sensor: (ha) => RainSensorType.set({
178290
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178291
- }),
178401
+ rain_sensor: (ha) => RainSensorType.set({ homeAssistantEntity: ha }),
178292
178402
  water_heater: WaterHeaterDevice,
178293
178403
  generic_switch: EventDevice,
178294
- smoke_co_alarm: (ha) => SmokeAlarmType.set({
178295
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178296
- }),
178297
- water_freeze_detector: (ha) => WaterFreezeDetectorType.set({
178298
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178299
- }),
178300
- water_leak_detector: (ha) => WaterLeakDetectorType.set({
178301
- homeAssistantEntity: { entity: ha.entity, customName: ha.customName }
178302
- })
178404
+ smoke_co_alarm: (ha) => SmokeAlarmType.set({ homeAssistantEntity: ha }),
178405
+ water_freeze_detector: (ha) => WaterFreezeDetectorType.set({ homeAssistantEntity: ha }),
178406
+ water_leak_detector: (ha) => WaterLeakDetectorType.set({ homeAssistantEntity: ha })
178303
178407
  };
178304
178408
 
178305
178409
  // src/matter/endpoints/composed/user-composed-endpoint.ts
@@ -183613,6 +183717,8 @@ export {
183613
183717
  @matter/main/dist/esm/clusters.js:
183614
183718
  @matter/main/dist/esm/forwards/behaviors/boolean-state.js:
183615
183719
  @matter/main/dist/esm/forwards/behaviors/smoke-co-alarm.js:
183720
+ @matter/main/dist/esm/forwards/behaviors/operational-state.js:
183721
+ @matter/main/dist/esm/forwards/clusters/operational-state.js:
183616
183722
  @matter/main/dist/esm/forwards/behaviors/color-control.js:
183617
183723
  @matter/main/dist/esm/forwards/behaviors/pump-configuration-and-control.js:
183618
183724
  @matter/main/dist/esm/forwards/clusters/mode-base.js: