@camstack/addon-provider-homeassistant 1.2.618 → 1.2.619

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-BNSbY2dZ.js");
2
+ const require_dist = require("./dist-DwxJnRNc.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
@@ -2037,10 +2037,6 @@ var COLD_START$12 = {
2037
2037
  batteryLevel: null,
2038
2038
  fanSpeed: null,
2039
2039
  availableFanSpeeds: [],
2040
- cleanWater: null,
2041
- dirtyWater: null,
2042
- detergent: null,
2043
- dustBin: null,
2044
2040
  progressPercent: null,
2045
2041
  errorCode: null,
2046
2042
  errorLabel: null,
@@ -2076,10 +2072,6 @@ var HaVacuumDevice = class extends HaBaseChildDevice {
2076
2072
  batteryLevel,
2077
2073
  fanSpeed,
2078
2074
  availableFanSpeeds,
2079
- cleanWater: null,
2080
- dirtyWater: null,
2081
- detergent: null,
2082
- dustBin: null,
2083
2075
  progressPercent: null,
2084
2076
  errorCode: null,
2085
2077
  errorLabel: lifecycleState === "error" ? readStringAttr$3(state.attributes, "error") : null,
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as connectivityCapability, At as discriminatedUnion, B as floodCapability, C as buildAddonRouteProvider, Ct as defineEntryKind, D as carbonMonoxideCapability, Dt as _enum, E as calendarSourceCapability, F as deviceAdoptionCapability, Ft as string, G as lawnMowerControlCapability, H as humidifierCapability, It as union, J as motionCapability, K as lockControlCapability, L as enumSensorCapability, Lt as unknown, M as controlCapability, Mt as number, N as coverCapability, Nt as object, O as climateControlCapability, Ot as array, P as deviceAdminLinkCapability, Pt as record, Q as numericSensorCapability, R as eventEmitterCapability, Rt as url, 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 literal, k as colorCapability, kt as boolean, 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 EventCategory } from "./dist-BRSVYxR3.mjs";
1
+ import { $ as motionCapability, A as carbonMonoxideCapability, At as entryBody, B as deviceAdoptionCapability, Bt as string, C as binaryCapability, Ct as DeviceType, D as buildDeviceAdminUrl, Dt as createEvent, E as buildAddonRouteProvider, Et as RecordSecretUnavailableError, Ft as discriminatedUnion, G as floodCapability, H as enumSensorCapability, Ht as unknown, I as contactCapability, It as literal, J as humiditySensorCapability, K as gasCapability, L as controlCapability, Lt as number, M as colorCapability, Mt as _enum, N as connectivityCapability, Nt as array, O as buttonCapability, Ot as defineEntryKind, Pt as boolean, Q as mediaPlayerCapability, R as coverCapability, Rt as object, S as bestLocationMatch, St as DeviceRole, T as brokerCapability, U as eventEmitterCapability, Ut as url, Vt as union, W as fanControlCapability, Wt as EventCategory, X as lawnMowerControlCapability, Y as imageCapability, Z as lockControlCapability, _ as airQualitySensorCapability, _t as valveCapability, at as parseAdminBase, b as automationControlCapability, bt as weatherCapability, ct as presenceCapability, dt as smokeCapability, et as normalizeUnit, ft as switchCapability, g as addonRoutesCapability, gt as vacuumControlCapability, h as accessoriesCapability, ht as updateCapability, j as climateControlCapability, k as calendarSourceCapability, kt as defineRecordKinds, lt as pressureSensorCapability, m as TargetSchema, mt as temperatureSensorCapability, n as BaseDevice, nt as notifierCapability, ot as powerMeterCapability, pt as tamperCapability, q as humidifierCapability, r as BaseDeviceProvider, rt as numericSensorCapability, st as prepareNotification, tt as notificationOutputCapability, u as EnumSensorDateTimeFormatSchema, ut as scriptRunnerCapability, v as alarmPanelCapability, vt as vibrationCapability, w as brightnessCapability, wt as errMsg, x as batteryCapability, xt as DeviceFeature, y as ambientLightSensorCapability, yt as waterHeaterCapability, z as deviceAdminLinkCapability, zt as record } from "./dist-fqJMr4fu.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
@@ -2036,10 +2036,6 @@ var COLD_START$12 = {
2036
2036
  batteryLevel: null,
2037
2037
  fanSpeed: null,
2038
2038
  availableFanSpeeds: [],
2039
- cleanWater: null,
2040
- dirtyWater: null,
2041
- detergent: null,
2042
- dustBin: null,
2043
2039
  progressPercent: null,
2044
2040
  errorCode: null,
2045
2041
  errorLabel: null,
@@ -2075,10 +2071,6 @@ var HaVacuumDevice = class extends HaBaseChildDevice {
2075
2071
  batteryLevel,
2076
2072
  fanSpeed,
2077
2073
  availableFanSpeeds,
2078
- cleanWater: null,
2079
- dirtyWater: null,
2080
- detergent: null,
2081
- dustBin: null,
2082
2074
  progressPercent: null,
2083
2075
  errorCode: null,
2084
2076
  errorLabel: lifecycleState === "error" ? readStringAttr$3(state.attributes, "error") : null,
@@ -5564,7 +5564,7 @@ var ZodIssueCode = {
5564
5564
  var ZodFirstPartyTypeKind;
5565
5565
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5566
5566
  //#endregion
5567
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5567
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5568
5568
  /**
5569
5569
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5570
5570
  * window to float samples (D455).
@@ -8703,7 +8703,11 @@ var ContributionSectionSchema = object({
8703
8703
  literal(4)
8704
8704
  ]).optional(),
8705
8705
  tab: string().optional(),
8706
- location: _enum(["settings", "top-tab"]).optional(),
8706
+ location: _enum([
8707
+ "settings",
8708
+ "top-tab",
8709
+ "hero"
8710
+ ]).optional(),
8707
8711
  order: number().optional(),
8708
8712
  fields: array(any())
8709
8713
  });
@@ -13799,7 +13803,11 @@ var ConfigSectionWithValuesSchema = object({
13799
13803
  literal(4)
13800
13804
  ]).optional(),
13801
13805
  tab: string().optional(),
13802
- location: _enum(["settings", "top-tab"]).optional(),
13806
+ location: _enum([
13807
+ "settings",
13808
+ "top-tab",
13809
+ "hero"
13810
+ ]).optional(),
13803
13811
  order: number().optional(),
13804
13812
  fields: array(any())
13805
13813
  });
@@ -17728,6 +17736,52 @@ var TierStatusSchema = object({
17728
17736
  countedAt: number().nullable()
17729
17737
  });
17730
17738
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17739
+ /**
17740
+ * Why a series is orphan. `device-gone`: its device is absent from the
17741
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17742
+ * key is declared by no capability any more (a field a cap removed).
17743
+ */
17744
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17745
+ /** Rows held per stored tier. */
17746
+ var TierRowsSchema = object({
17747
+ raw: number().int(),
17748
+ "5m": number().int(),
17749
+ "1h": number().int(),
17750
+ "1d": number().int()
17751
+ });
17752
+ var OrphanSeriesSchema = object({
17753
+ seriesId: number().int(),
17754
+ deviceId: number().int(),
17755
+ key: string(),
17756
+ scope: string(),
17757
+ /** The metric's display name; `null` when its metric row is gone too. */
17758
+ displayName: string().nullable(),
17759
+ reason: DeviceHistoryOrphanReasonSchema,
17760
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17761
+ missingSince: number().nullable(),
17762
+ firstTs: number(),
17763
+ lastTs: number(),
17764
+ rows: TierRowsSchema
17765
+ });
17766
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17767
+ "not-found",
17768
+ "not-orphan",
17769
+ "failed"
17770
+ ]);
17771
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17772
+ seriesId: number().int(),
17773
+ ok: literal(true),
17774
+ deleted: TierRowsSchema
17775
+ }), object({
17776
+ seriesId: number().int(),
17777
+ ok: literal(false),
17778
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17779
+ })]);
17780
+ var OrphanListSchema = object({
17781
+ series: array(OrphanSeriesSchema).readonly(),
17782
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17783
+ truncated: boolean()
17784
+ });
17731
17785
  var DeviceHistoryStatusSchema = object({
17732
17786
  startedAt: number(),
17733
17787
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17825,7 +17879,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17825
17879
  }), object({ enabled: boolean() }), {
17826
17880
  kind: "mutation",
17827
17881
  auth: "admin"
17828
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17882
+ }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" }), method(object({}), OrphanListSchema, { auth: "admin" }), method(object({ seriesIds: array(number().int()).min(1).max(50) }), object({ results: array(OrphanDeleteEntrySchema).readonly() }), {
17883
+ kind: "mutation",
17884
+ auth: "admin"
17885
+ });
17829
17886
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17830
17887
  object({ state: literal("absent") }),
17831
17888
  object({
@@ -56039,17 +56096,83 @@ var connectivityCapability = {
56039
56096
  volatileStateFields: ["lastChangedAt"]
56040
56097
  };
56041
56098
  /**
56042
- * Generic device-consumables capability — surfaces a device's
56043
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
56044
- * descaling cycles, …) with their remaining life and an optional
56045
- * "Replaced" reset action. Device-agnostic: any provider that knows its
56046
- * device tracks consumables can register it; the cap declares no
56047
- * vocabulary of its own — the provider names each item verbatim.
56099
+ * Generic device-consumables capability — the ONE place a device reports what
56100
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
56101
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
56102
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
56103
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
56104
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
56105
+ * its device tracks consumables registers it; the provider names each item
56106
+ * verbatim and says which `kind` it is.
56107
+ *
56108
+ * The admin UI renders it as ONE collapsible section directly under the
56109
+ * device page's hero card (`placement: 'hero'`), for every device bound to
56110
+ * this cap — never drawn by a device type's hero card itself (D915).
56048
56111
  *
56049
56112
  * Like `childLayout`, the cap is INERT until a provider sets items: no
56050
56113
  * provider populates it by guessing (no HA inference). The UI renders a
56051
56114
  * "No consumables reported" placeholder when `items` is empty.
56052
56115
  */
56116
+ /**
56117
+ * What an item IS, which decides which direction is bad:
56118
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
56119
+ * - `supply` — something the device draws from (clean water, detergent,
56120
+ * salt, rinse aid); low or empty is bad.
56121
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
56122
+ * bad.
56123
+ * Absent = `wear`.
56124
+ */
56125
+ var ConsumableKindSchema = _enum([
56126
+ "wear",
56127
+ "supply",
56128
+ "waste"
56129
+ ]);
56130
+ /**
56131
+ * What an item LOOKS like, which decides how a client draws it — independent
56132
+ * of `kind`, which decides which direction is bad:
56133
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
56134
+ * remaining time and a reset.
56135
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
56136
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
56137
+ * a stepped level and "refill".
56138
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
56139
+ * that warns when full.
56140
+ * Absent = derived from the kind ({@link consumableFormOf}).
56141
+ */
56142
+ var ConsumableFormSchema = _enum([
56143
+ "part",
56144
+ "tank",
56145
+ "product",
56146
+ "bin"
56147
+ ]);
56148
+ /** The provider's own discrete verdict on an item. */
56149
+ var ConsumableStatusSchema = _enum([
56150
+ "ok",
56151
+ "low",
56152
+ "empty",
56153
+ "full",
56154
+ "replace"
56155
+ ]);
56156
+ _enum([
56157
+ "ok",
56158
+ "low",
56159
+ "empty",
56160
+ "full"
56161
+ ]);
56162
+ /** The kind of an item, with the documented default for an absent one. */
56163
+ function consumableKindOf(item) {
56164
+ return item.kind ?? "wear";
56165
+ }
56166
+ /** The kind's default form: wear → part, waste → bin, supply → product. */
56167
+ var FORM_OF_KIND = {
56168
+ wear: "part",
56169
+ waste: "bin",
56170
+ supply: "product"
56171
+ };
56172
+ /** The form of an item: its own when the provider names one, else its kind's default. */
56173
+ function consumableFormOf(item) {
56174
+ return item.form ?? FORM_OF_KIND[consumableKindOf(item)];
56175
+ }
56053
56176
  /** Units a remaining-life counter is reported in. Closed: the panel renders
56054
56177
  * each. */
56055
56178
  var ConsumableRemainingUnitSchema = _enum([
@@ -56064,18 +56187,23 @@ var ConsumableRemainingSchema = object({
56064
56187
  unit: ConsumableRemainingUnitSchema
56065
56188
  });
56066
56189
  /** A single consumable item. Either a continuous `level` (remaining
56067
- * life %) or a discrete `status` may be known — both may be null when a
56068
- * provider only knows the item exists. `level` and `status` are not
56069
- * mutually exclusive; a provider may report both. */
56190
+ * life %, or fill % for a `supply` / `waste` item) or a discrete `status`
56191
+ * may be known — both may be null when a provider only knows the item
56192
+ * exists. `level` and `status` are not mutually exclusive; a provider may
56193
+ * report both. */
56070
56194
  var ConsumableItemSchema = object({
56071
56195
  /** Stable id, e.g. 'main-brush'. */
56072
56196
  key: string().min(1),
56073
56197
  /** Display name. */
56074
56198
  label: string().min(1),
56075
- /** Remaining life % when known (0..100). */
56199
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
56076
56200
  level: number().min(0).max(100).nullable(),
56077
- /** Discrete state when known (binary mode). */
56078
- status: _enum(["ok", "replace"]).nullable(),
56201
+ /** The provider's discrete verdict when known (binary mode). */
56202
+ status: ConsumableStatusSchema.nullable(),
56203
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
56204
+ kind: ConsumableKindSchema.optional(),
56205
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
56206
+ form: ConsumableFormSchema.optional(),
56079
56207
  /** Ms epoch of the last replace, when known. */
56080
56208
  lastResetAt: number().nullable(),
56081
56209
  /** Whether `reset()` is meaningful for this item. */
@@ -56098,7 +56226,7 @@ var consumablesCapability = {
56098
56226
  kind: "widget",
56099
56227
  widgetId: "host/consumables-panel",
56100
56228
  tab: "consumables",
56101
- topTab: true,
56229
+ placement: "hero",
56102
56230
  label: "Consumables",
56103
56231
  order: 5
56104
56232
  } },
@@ -56159,9 +56287,37 @@ reset: method(object({
56159
56287
  */
56160
56288
  durability: "restored",
56161
56289
  /**
56162
- * History (D850): none — `items` is an array keyed by runtime ids; a history path never enters it.
56290
+ * History (D850, D917): one series per (item field, item `key`) — the item key
56291
+ * is the series scope, the item `label` names it. A vacuum tank's fill, a
56292
+ * brush's remaining life and a dishwasher's salt are each recorded the moment
56293
+ * their provider reports them; an item that appears later gets its series.
56163
56294
  */
56164
- history: "none",
56295
+ history: {
56296
+ fields: {},
56297
+ items: {
56298
+ path: "items",
56299
+ key: "key",
56300
+ label: "label",
56301
+ fields: {
56302
+ level: {
56303
+ kind: "gauge",
56304
+ unit: "%",
56305
+ deadband: 2,
56306
+ displayName: "Level"
56307
+ },
56308
+ status: {
56309
+ kind: "enum",
56310
+ displayName: "Status"
56311
+ },
56312
+ "remaining.value": {
56313
+ kind: "gauge",
56314
+ unitFrom: "remaining.unit",
56315
+ deadband: 1,
56316
+ displayName: "Remaining"
56317
+ }
56318
+ }
56319
+ }
56320
+ },
56165
56321
  /** Clocks, not content: a re-read that changed no item costs no commit. */
56166
56322
  volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
56167
56323
  };
@@ -56576,8 +56732,9 @@ onStatusChanged: { data: object({
56576
56732
  volatileStateFields: ["lastChangedAt"]
56577
56733
  };
56578
56734
  /**
56579
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
56580
- * consumable levels (salt, rinse aid) and common program options.
56735
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
56736
+ * common program options. Salt and rinse aid are NOT here: they are items of
56737
+ * the device's `consumables` cap, like every other device's (D915).
56581
56738
  *
56582
56739
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
56583
56740
  * by any integration that exposes the same program / option surface.
@@ -56625,11 +56782,6 @@ var DishwasherAvailabilitySchema = _enum([
56625
56782
  "offline",
56626
56783
  "description-missing"
56627
56784
  ]);
56628
- var DishwasherConsumableLevelSchema = _enum([
56629
- "ok",
56630
- "low",
56631
- "empty"
56632
- ]);
56633
56785
  var DishwasherStatusSchema = object({
56634
56786
  availability: DishwasherAvailabilitySchema,
56635
56787
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -56662,8 +56814,6 @@ var DishwasherStatusSchema = object({
56662
56814
  powerOn: boolean().nullable(),
56663
56815
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
56664
56816
  powerState: string().nullable(),
56665
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
56666
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
56667
56817
  /**
56668
56818
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
56669
56819
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -65479,60 +65629,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
65479
65629
  auth: "admin",
65480
65630
  access: "delete"
65481
65631
  });
65482
- /**
65483
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
65484
- * cleaning lifecycle plus a return-to-base / locate surface and an
65485
- * optional fan-speed selector.
65486
- *
65487
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
65488
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
65489
- * (0..100) is nullable — some vacuums don't report a battery
65490
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
65491
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
65492
- * tokens the hardware accepts so the UI renders only supported choices.
65493
- *
65494
- * The `setFanSpeed` method takes the bare `speed` token — the provider
65495
- * validates it against the vacuum's own list. `locate` triggers the
65496
- * find-me chirp; `returnToBase` sends it home.
65497
- *
65498
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
65499
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
65500
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
65501
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
65502
- * only when the device has no such tank at all, and use a `TankStatus`
65503
- * with both inner fields `null` when the tank exists but its level is
65504
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
65505
- * so the HA provider leaves all four `null`.
65506
- */
65507
- var VacuumStateSchema = _enum([
65508
- "idle",
65509
- "cleaning",
65510
- "paused",
65511
- "returning",
65512
- "docked",
65513
- "drying",
65514
- "error"
65515
- ]);
65516
- /**
65517
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
65518
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
65519
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
65520
- * level is currently unknown; the OWNING field being `null` means the
65521
- * hardware has no such tank at all.
65522
- */
65523
- var TankStatusSchema = object({
65524
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
65525
- level: number().min(0).max(100).nullable(),
65526
- /** Discrete state when the hardware is binary-mode; null otherwise. */
65527
- status: _enum([
65528
- "ok",
65529
- "low",
65530
- "full"
65531
- ]).nullable()
65532
- });
65533
65632
  var VacuumControlStatusSchema = object({
65534
65633
  /** Lifecycle state of the vacuum. */
65535
- state: VacuumStateSchema,
65634
+ state: _enum([
65635
+ "idle",
65636
+ "cleaning",
65637
+ "paused",
65638
+ "returning",
65639
+ "docked",
65640
+ "drying",
65641
+ "error"
65642
+ ]),
65536
65643
  /** 0..100 battery percentage. Null when the device has no battery
65537
65644
  * reading. */
65538
65645
  batteryLevel: number().min(0).max(100).nullable(),
@@ -65541,14 +65648,6 @@ var VacuumControlStatusSchema = object({
65541
65648
  fanSpeed: string().nullable(),
65542
65649
  /** Speed tokens the hardware accepts — drives the UI selector. */
65543
65650
  availableFanSpeeds: array(string()),
65544
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
65545
- cleanWater: TankStatusSchema.nullable(),
65546
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
65547
- dirtyWater: TankStatusSchema.nullable(),
65548
- /** Detergent tank. Null when the hardware has no detergent tank. */
65549
- detergent: TankStatusSchema.nullable(),
65550
- /** Dust bin. Null when the hardware has no dust bin. */
65551
- dustBin: TankStatusSchema.nullable(),
65552
65651
  /** 0..100 cleaning-completion percentage of the current task, or null. */
65553
65652
  progressPercent: number().min(0).max(100).nullable(),
65554
65653
  /** Current error code (0 / null = no error). */
@@ -65610,35 +65709,14 @@ var vacuumControlCapability = {
65610
65709
  */
65611
65710
  durability: "session",
65612
65711
  /**
65613
- * History (D850): recorded series. Tank levels are fixed-object paths (`cleanWater.level`, ...).
65712
+ * History (D850): recorded series. The tanks moved to `consumables` (D915), whose
65713
+ * items are keyed by runtime ids and record no history.
65614
65714
  */
65615
- history: { fields: {
65616
- batteryLevel: {
65617
- kind: "gauge",
65618
- unit: "%",
65619
- deadband: 2
65620
- },
65621
- "cleanWater.level": {
65622
- kind: "gauge",
65623
- unit: "%",
65624
- deadband: 2
65625
- },
65626
- "dirtyWater.level": {
65627
- kind: "gauge",
65628
- unit: "%",
65629
- deadband: 2
65630
- },
65631
- "detergent.level": {
65632
- kind: "gauge",
65633
- unit: "%",
65634
- deadband: 2
65635
- },
65636
- "dustBin.level": {
65637
- kind: "gauge",
65638
- unit: "%",
65639
- deadband: 2
65640
- }
65641
- } }
65715
+ history: { fields: { batteryLevel: {
65716
+ kind: "gauge",
65717
+ unit: "%",
65718
+ deadband: 2
65719
+ } } }
65642
65720
  };
65643
65721
  var ValveStatusSchema = object({
65644
65722
  /** Lifecycle state of the valve. */
@@ -70032,6 +70110,12 @@ Object.freeze({
70032
70110
  addonId: null,
70033
70111
  access: "create"
70034
70112
  },
70113
+ "deviceHistory.deleteOrphanSeries": {
70114
+ capName: "device-history",
70115
+ capScope: "system",
70116
+ addonId: null,
70117
+ access: "delete"
70118
+ },
70035
70119
  "deviceHistory.getDeviceEnabled": {
70036
70120
  capName: "device-history",
70037
70121
  capScope: "system",
@@ -70050,6 +70134,12 @@ Object.freeze({
70050
70134
  addonId: null,
70051
70135
  access: "view"
70052
70136
  },
70137
+ "deviceHistory.listOrphanSeries": {
70138
+ capName: "device-history",
70139
+ capScope: "system",
70140
+ addonId: null,
70141
+ access: "view"
70142
+ },
70053
70143
  "deviceHistory.listSeries": {
70054
70144
  capName: "device-history",
70055
70145
  capScope: "system",
@@ -80262,7 +80352,7 @@ var STATE_SUMMARY_VARS = [
80262
80352
  ([...RULE_TEXT], [...COMBINED_ALARM]),
80263
80353
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
80264
80354
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
80265
- ([...RULE_TEXT], [...CONSUMABLE]),
80355
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
80266
80356
  ([...RULE_TEXT], [...TANK]),
80267
80357
  [...RULE_TEXT],
80268
80358
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -81054,6 +81144,24 @@ Object.defineProperty(exports, "CameraSwitchIdSchema", {
81054
81144
  return CameraSwitchIdSchema;
81055
81145
  }
81056
81146
  });
81147
+ Object.defineProperty(exports, "ConsumableFormSchema", {
81148
+ enumerable: true,
81149
+ get: function() {
81150
+ return ConsumableFormSchema;
81151
+ }
81152
+ });
81153
+ Object.defineProperty(exports, "ConsumableItemSchema", {
81154
+ enumerable: true,
81155
+ get: function() {
81156
+ return ConsumableItemSchema;
81157
+ }
81158
+ });
81159
+ Object.defineProperty(exports, "ConsumableStatusSchema", {
81160
+ enumerable: true,
81161
+ get: function() {
81162
+ return ConsumableStatusSchema;
81163
+ }
81164
+ });
81057
81165
  Object.defineProperty(exports, "DeviceFeature", {
81058
81166
  enumerable: true,
81059
81167
  get: function() {
@@ -81246,6 +81354,18 @@ Object.defineProperty(exports, "connectivityCapability", {
81246
81354
  return connectivityCapability;
81247
81355
  }
81248
81356
  });
81357
+ Object.defineProperty(exports, "consumableFormOf", {
81358
+ enumerable: true,
81359
+ get: function() {
81360
+ return consumableFormOf;
81361
+ }
81362
+ });
81363
+ Object.defineProperty(exports, "consumableKindOf", {
81364
+ enumerable: true,
81365
+ get: function() {
81366
+ return consumableKindOf;
81367
+ }
81368
+ });
81249
81369
  Object.defineProperty(exports, "contactCapability", {
81250
81370
  enumerable: true,
81251
81371
  get: function() {