@camstack/addon-provider-homeassistant 1.2.602 → 1.2.603

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.
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("./dist-xuu2eG_W.js");
2
+ const require_dist = require("./dist-DVNChk7-.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_zlib = require("node:zlib");
5
5
  //#region src/ha-admin-link.ts
@@ -6321,6 +6321,7 @@ var PARENT_TYPE_PRIORITY = [
6321
6321
  require_dist.DeviceType.Fan,
6322
6322
  require_dist.DeviceType.Vacuum,
6323
6323
  require_dist.DeviceType.LawnMower,
6324
+ require_dist.DeviceType.Dishwasher,
6324
6325
  require_dist.DeviceType.Light,
6325
6326
  require_dist.DeviceType.Switch,
6326
6327
  require_dist.DeviceType.Siren,
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as connectivityCapability, At as boolean, B as floodCapability, Bt as EventCategory, C as buildAddonRouteProvider, Ct as defineEntryKind, D as carbonMonoxideCapability, Dt as settingsBrokersAdoptsFrom, E as calendarSourceCapability, F as deviceAdoptionCapability, Ft as record, G as lawnMowerControlCapability, H as humidifierCapability, It as string, J as motionCapability, K as lockControlCapability, L as enumSensorCapability, Lt as union, M as controlCapability, Mt as literal, N as coverCapability, Nt as number, O as climateControlCapability, Ot as _enum, P as deviceAdminLinkCapability, Pt as object, Q as numericSensorCapability, R as eventEmitterCapability, Rt as unknown, S as brokerCapability, St as createEvent, T as buttonCapability, Tt as entryBody, U as humiditySensorCapability, V as gasCapability, W as imageCapability, X as notificationOutputCapability, Y as normalizeUnit, Z as notifierCapability, _ as automationControlCapability, _t as DeviceRole, at as scriptRunnerCapability, b as binaryCapability, ct as tamperCapability, d as TargetSchema, dt as vacuumControlCapability, et as parseAdminBase, f as accessoriesCapability, ft as valveCapability, g as ambientLightSensorCapability, gt as DeviceFeature, h as alarmPanelCapability, ht as weatherCapability, it as pressureSensorCapability, j as contactCapability, jt as discriminatedUnion, k as colorCapability, kt as array, lt as temperatureSensorCapability, m as airQualitySensorCapability, mt as waterHeaterCapability, n as BaseDevice, nt as prepareNotification, ot as smokeCapability, p as addonRoutesCapability, pt as vibrationCapability, q as mediaPlayerCapability, r as BaseDeviceProvider, rt as presenceCapability, s as EnumSensorDateTimeFormatSchema, st as switchCapability, tt as powerMeterCapability, ut as updateCapability, v as batteryCapability, vt as DeviceType, w as buildDeviceAdminUrl, wt as defineRecordKinds, x as brightnessCapability, xt as RecordSecretUnavailableError, y as bestLocationMatch, yt as errMsg, z as fanControlCapability, zt as url } from "./dist-Dcum8auE.mjs";
1
+ import { A as connectivityCapability, At as boolean, B as floodCapability, Bt as EventCategory, C as buildAddonRouteProvider, Ct as defineEntryKind, D as carbonMonoxideCapability, Dt as settingsBrokersAdoptsFrom, E as calendarSourceCapability, F as deviceAdoptionCapability, Ft as record, G as lawnMowerControlCapability, H as humidifierCapability, It as string, J as motionCapability, K as lockControlCapability, L as enumSensorCapability, Lt as union, M as controlCapability, Mt as literal, N as coverCapability, Nt as number, O as climateControlCapability, Ot as _enum, P as deviceAdminLinkCapability, Pt as object, Q as numericSensorCapability, R as eventEmitterCapability, Rt as unknown, S as brokerCapability, St as createEvent, T as buttonCapability, Tt as entryBody, U as humiditySensorCapability, V as gasCapability, W as imageCapability, X as notificationOutputCapability, Y as normalizeUnit, Z as notifierCapability, _ as automationControlCapability, _t as DeviceRole, at as scriptRunnerCapability, b as binaryCapability, ct as tamperCapability, d as TargetSchema, dt as vacuumControlCapability, et as parseAdminBase, f as accessoriesCapability, ft as valveCapability, g as ambientLightSensorCapability, gt as DeviceFeature, h as alarmPanelCapability, ht as weatherCapability, it as pressureSensorCapability, j as contactCapability, jt as discriminatedUnion, k as colorCapability, kt as array, lt as temperatureSensorCapability, m as airQualitySensorCapability, mt as waterHeaterCapability, n as BaseDevice, nt as prepareNotification, ot as smokeCapability, p as addonRoutesCapability, pt as vibrationCapability, q as mediaPlayerCapability, r as BaseDeviceProvider, rt as presenceCapability, s as EnumSensorDateTimeFormatSchema, st as switchCapability, tt as powerMeterCapability, ut as updateCapability, v as batteryCapability, vt as DeviceType, w as buildDeviceAdminUrl, wt as defineRecordKinds, x as brightnessCapability, xt as RecordSecretUnavailableError, y as bestLocationMatch, yt as errMsg, z as fanControlCapability, zt as url } from "./dist-CM5Z-Rdj.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
4
4
  //#region src/ha-admin-link.ts
@@ -6320,6 +6320,7 @@ var PARENT_TYPE_PRIORITY = [
6320
6320
  DeviceType.Fan,
6321
6321
  DeviceType.Vacuum,
6322
6322
  DeviceType.LawnMower,
6323
+ DeviceType.Dishwasher,
6323
6324
  DeviceType.Light,
6324
6325
  DeviceType.Switch,
6325
6326
  DeviceType.Siren,
@@ -5537,7 +5537,7 @@ var ZodIssueCode = {
5537
5537
  var ZodFirstPartyTypeKind;
5538
5538
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5539
5539
  //#endregion
5540
- //#region ../types/dist/sleep-BOjuyoPC.mjs
5540
+ //#region ../types/dist/sleep-BegKjwUu.mjs
5541
5541
  /**
5542
5542
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5543
5543
  * window to float samples (D455).
@@ -18344,7 +18344,11 @@ var deviceDiscoveryCapability = {
18344
18344
  };
18345
18345
  /**
18346
18346
  * `device-adoption` — generic discovery + adoption surface,
18347
- * system-scoped singleton. The de-HA-ified successor to `ha-discovery`:
18347
+ * system-scoped collection (one provider per integration addon), routed
18348
+ * by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
18349
+ * pin model as `connection-test`. The admin UI keeps using
18350
+ * `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
18351
+ * successor to `ha-discovery`:
18348
18352
  * keyed by `integrationId` (the addon resolves integrationId → broker
18349
18353
  * internally) rather than a connection-specific `brokerId`, and it
18350
18354
  * REUSES the shared `DiscoveredChildDevice` candidate type from
@@ -18509,7 +18513,7 @@ var ResyncResultSchema = object({
18509
18513
  var deviceAdoptionCapability = {
18510
18514
  name: "device-adoption",
18511
18515
  scope: "system",
18512
- mode: "singleton",
18516
+ mode: "collection",
18513
18517
  status: {
18514
18518
  schema: AdoptionStatusSchema,
18515
18519
  kind: "poll"
@@ -56220,6 +56224,14 @@ var DishwasherStatusSchema = object({
56220
56224
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
56221
56225
  halfLoad: boolean(),
56222
56226
  hygienePlus: boolean(),
56227
+ /** Extra dry option when the appliance exposes it. */
56228
+ extraDry: boolean(),
56229
+ /** Intensive zone (lower basket) when the appliance exposes it. */
56230
+ intensiveZone: boolean(),
56231
+ /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
56232
+ varioSpeedPlus: boolean(),
56233
+ /** Child lock (controls disabled on the appliance). */
56234
+ childLock: boolean(),
56223
56235
  errorCode: number().nullable(),
56224
56236
  errorLabel: string().nullable(),
56225
56237
  lastFetchedAt: number()
@@ -56271,6 +56283,34 @@ var dishwasherCapability = {
56271
56283
  kind: "mutation",
56272
56284
  auth: "protected"
56273
56285
  }),
56286
+ setExtraDry: method(object({
56287
+ deviceId: number().int().nonnegative(),
56288
+ on: boolean()
56289
+ }), _void(), {
56290
+ kind: "mutation",
56291
+ auth: "protected"
56292
+ }),
56293
+ setIntensiveZone: method(object({
56294
+ deviceId: number().int().nonnegative(),
56295
+ on: boolean()
56296
+ }), _void(), {
56297
+ kind: "mutation",
56298
+ auth: "protected"
56299
+ }),
56300
+ setVarioSpeedPlus: method(object({
56301
+ deviceId: number().int().nonnegative(),
56302
+ on: boolean()
56303
+ }), _void(), {
56304
+ kind: "mutation",
56305
+ auth: "protected"
56306
+ }),
56307
+ setChildLock: method(object({
56308
+ deviceId: number().int().nonnegative(),
56309
+ on: boolean()
56310
+ }), _void(), {
56311
+ kind: "mutation",
56312
+ auth: "protected"
56313
+ }),
56274
56314
  setOption: method(object({
56275
56315
  deviceId: number().int().nonnegative(),
56276
56316
  key: string().min(1),
@@ -70243,6 +70283,18 @@ Object.freeze({
70243
70283
  addonId: null,
70244
70284
  access: "create"
70245
70285
  },
70286
+ "dishwasher.setChildLock": {
70287
+ capName: "dishwasher",
70288
+ capScope: "device",
70289
+ addonId: null,
70290
+ access: "create"
70291
+ },
70292
+ "dishwasher.setExtraDry": {
70293
+ capName: "dishwasher",
70294
+ capScope: "device",
70295
+ addonId: null,
70296
+ access: "create"
70297
+ },
70246
70298
  "dishwasher.setHalfLoad": {
70247
70299
  capName: "dishwasher",
70248
70300
  capScope: "device",
@@ -70255,6 +70307,12 @@ Object.freeze({
70255
70307
  addonId: null,
70256
70308
  access: "create"
70257
70309
  },
70310
+ "dishwasher.setIntensiveZone": {
70311
+ capName: "dishwasher",
70312
+ capScope: "device",
70313
+ addonId: null,
70314
+ access: "create"
70315
+ },
70258
70316
  "dishwasher.setOption": {
70259
70317
  capName: "dishwasher",
70260
70318
  capScope: "device",
@@ -70273,6 +70331,12 @@ Object.freeze({
70273
70331
  addonId: null,
70274
70332
  access: "create"
70275
70333
  },
70334
+ "dishwasher.setVarioSpeedPlus": {
70335
+ capName: "dishwasher",
70336
+ capScope: "device",
70337
+ addonId: null,
70338
+ access: "create"
70339
+ },
70276
70340
  "dishwasher.start": {
70277
70341
  capName: "dishwasher",
70278
70342
  capScope: "device",
@@ -76922,6 +76986,16 @@ Object.freeze({
76922
76986
  form: "single",
76923
76987
  optional: false
76924
76988
  }],
76989
+ "dishwasher.setChildLock": [{
76990
+ name: "deviceId",
76991
+ form: "single",
76992
+ optional: false
76993
+ }],
76994
+ "dishwasher.setExtraDry": [{
76995
+ name: "deviceId",
76996
+ form: "single",
76997
+ optional: false
76998
+ }],
76925
76999
  "dishwasher.setHalfLoad": [{
76926
77000
  name: "deviceId",
76927
77001
  form: "single",
@@ -76932,6 +77006,11 @@ Object.freeze({
76932
77006
  form: "single",
76933
77007
  optional: false
76934
77008
  }],
77009
+ "dishwasher.setIntensiveZone": [{
77010
+ name: "deviceId",
77011
+ form: "single",
77012
+ optional: false
77013
+ }],
76935
77014
  "dishwasher.setOption": [{
76936
77015
  name: "deviceId",
76937
77016
  form: "single",
@@ -76947,6 +77026,11 @@ Object.freeze({
76947
77026
  form: "single",
76948
77027
  optional: false
76949
77028
  }],
77029
+ "dishwasher.setVarioSpeedPlus": [{
77030
+ name: "deviceId",
77031
+ form: "single",
77032
+ optional: false
77033
+ }],
76950
77034
  "dishwasher.start": [{
76951
77035
  name: "deviceId",
76952
77036
  form: "single",
@@ -5538,7 +5538,7 @@ var ZodIssueCode = {
5538
5538
  var ZodFirstPartyTypeKind;
5539
5539
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5540
5540
  //#endregion
5541
- //#region ../types/dist/sleep-BOjuyoPC.mjs
5541
+ //#region ../types/dist/sleep-BegKjwUu.mjs
5542
5542
  /**
5543
5543
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5544
5544
  * window to float samples (D455).
@@ -18345,7 +18345,11 @@ var deviceDiscoveryCapability = {
18345
18345
  };
18346
18346
  /**
18347
18347
  * `device-adoption` — generic discovery + adoption surface,
18348
- * system-scoped singleton. The de-HA-ified successor to `ha-discovery`:
18348
+ * system-scoped collection (one provider per integration addon), routed
18349
+ * by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
18350
+ * pin model as `connection-test`. The admin UI keeps using
18351
+ * `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
18352
+ * successor to `ha-discovery`:
18349
18353
  * keyed by `integrationId` (the addon resolves integrationId → broker
18350
18354
  * internally) rather than a connection-specific `brokerId`, and it
18351
18355
  * REUSES the shared `DiscoveredChildDevice` candidate type from
@@ -18510,7 +18514,7 @@ var ResyncResultSchema = object({
18510
18514
  var deviceAdoptionCapability = {
18511
18515
  name: "device-adoption",
18512
18516
  scope: "system",
18513
- mode: "singleton",
18517
+ mode: "collection",
18514
18518
  status: {
18515
18519
  schema: AdoptionStatusSchema,
18516
18520
  kind: "poll"
@@ -56221,6 +56225,14 @@ var DishwasherStatusSchema = object({
56221
56225
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
56222
56226
  halfLoad: boolean(),
56223
56227
  hygienePlus: boolean(),
56228
+ /** Extra dry option when the appliance exposes it. */
56229
+ extraDry: boolean(),
56230
+ /** Intensive zone (lower basket) when the appliance exposes it. */
56231
+ intensiveZone: boolean(),
56232
+ /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
56233
+ varioSpeedPlus: boolean(),
56234
+ /** Child lock (controls disabled on the appliance). */
56235
+ childLock: boolean(),
56224
56236
  errorCode: number().nullable(),
56225
56237
  errorLabel: string().nullable(),
56226
56238
  lastFetchedAt: number()
@@ -56272,6 +56284,34 @@ var dishwasherCapability = {
56272
56284
  kind: "mutation",
56273
56285
  auth: "protected"
56274
56286
  }),
56287
+ setExtraDry: method(object({
56288
+ deviceId: number().int().nonnegative(),
56289
+ on: boolean()
56290
+ }), _void(), {
56291
+ kind: "mutation",
56292
+ auth: "protected"
56293
+ }),
56294
+ setIntensiveZone: method(object({
56295
+ deviceId: number().int().nonnegative(),
56296
+ on: boolean()
56297
+ }), _void(), {
56298
+ kind: "mutation",
56299
+ auth: "protected"
56300
+ }),
56301
+ setVarioSpeedPlus: method(object({
56302
+ deviceId: number().int().nonnegative(),
56303
+ on: boolean()
56304
+ }), _void(), {
56305
+ kind: "mutation",
56306
+ auth: "protected"
56307
+ }),
56308
+ setChildLock: method(object({
56309
+ deviceId: number().int().nonnegative(),
56310
+ on: boolean()
56311
+ }), _void(), {
56312
+ kind: "mutation",
56313
+ auth: "protected"
56314
+ }),
56275
56315
  setOption: method(object({
56276
56316
  deviceId: number().int().nonnegative(),
56277
56317
  key: string().min(1),
@@ -70244,6 +70284,18 @@ Object.freeze({
70244
70284
  addonId: null,
70245
70285
  access: "create"
70246
70286
  },
70287
+ "dishwasher.setChildLock": {
70288
+ capName: "dishwasher",
70289
+ capScope: "device",
70290
+ addonId: null,
70291
+ access: "create"
70292
+ },
70293
+ "dishwasher.setExtraDry": {
70294
+ capName: "dishwasher",
70295
+ capScope: "device",
70296
+ addonId: null,
70297
+ access: "create"
70298
+ },
70247
70299
  "dishwasher.setHalfLoad": {
70248
70300
  capName: "dishwasher",
70249
70301
  capScope: "device",
@@ -70256,6 +70308,12 @@ Object.freeze({
70256
70308
  addonId: null,
70257
70309
  access: "create"
70258
70310
  },
70311
+ "dishwasher.setIntensiveZone": {
70312
+ capName: "dishwasher",
70313
+ capScope: "device",
70314
+ addonId: null,
70315
+ access: "create"
70316
+ },
70259
70317
  "dishwasher.setOption": {
70260
70318
  capName: "dishwasher",
70261
70319
  capScope: "device",
@@ -70274,6 +70332,12 @@ Object.freeze({
70274
70332
  addonId: null,
70275
70333
  access: "create"
70276
70334
  },
70335
+ "dishwasher.setVarioSpeedPlus": {
70336
+ capName: "dishwasher",
70337
+ capScope: "device",
70338
+ addonId: null,
70339
+ access: "create"
70340
+ },
70277
70341
  "dishwasher.start": {
70278
70342
  capName: "dishwasher",
70279
70343
  capScope: "device",
@@ -76923,6 +76987,16 @@ Object.freeze({
76923
76987
  form: "single",
76924
76988
  optional: false
76925
76989
  }],
76990
+ "dishwasher.setChildLock": [{
76991
+ name: "deviceId",
76992
+ form: "single",
76993
+ optional: false
76994
+ }],
76995
+ "dishwasher.setExtraDry": [{
76996
+ name: "deviceId",
76997
+ form: "single",
76998
+ optional: false
76999
+ }],
76926
77000
  "dishwasher.setHalfLoad": [{
76927
77001
  name: "deviceId",
76928
77002
  form: "single",
@@ -76933,6 +77007,11 @@ Object.freeze({
76933
77007
  form: "single",
76934
77008
  optional: false
76935
77009
  }],
77010
+ "dishwasher.setIntensiveZone": [{
77011
+ name: "deviceId",
77012
+ form: "single",
77013
+ optional: false
77014
+ }],
76936
77015
  "dishwasher.setOption": [{
76937
77016
  name: "deviceId",
76938
77017
  form: "single",
@@ -76948,6 +77027,11 @@ Object.freeze({
76948
77027
  form: "single",
76949
77028
  optional: false
76950
77029
  }],
77030
+ "dishwasher.setVarioSpeedPlus": [{
77031
+ name: "deviceId",
77032
+ form: "single",
77033
+ optional: false
77034
+ }],
76951
77035
  "dishwasher.start": [{
76952
77036
  name: "deviceId",
76953
77037
  form: "single",