@camstack/addon-provider-rademacher 0.2.142 → 0.2.144
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 +193 -123
- package/dist/addon.mjs +193 -123
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -6416,7 +6416,7 @@ var ZodIssueCode = {
|
|
|
6416
6416
|
var ZodFirstPartyTypeKind;
|
|
6417
6417
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6418
6418
|
//#endregion
|
|
6419
|
-
//#region ../types/dist/sleep-
|
|
6419
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
6420
6420
|
/**
|
|
6421
6421
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6422
6422
|
* window to float samples (D455).
|
|
@@ -9308,7 +9308,11 @@ var ContributionSectionSchema = object({
|
|
|
9308
9308
|
literal(4)
|
|
9309
9309
|
]).optional(),
|
|
9310
9310
|
tab: string().optional(),
|
|
9311
|
-
location: _enum([
|
|
9311
|
+
location: _enum([
|
|
9312
|
+
"settings",
|
|
9313
|
+
"top-tab",
|
|
9314
|
+
"hero"
|
|
9315
|
+
]).optional(),
|
|
9312
9316
|
order: number().optional(),
|
|
9313
9317
|
fields: array(any())
|
|
9314
9318
|
});
|
|
@@ -14241,7 +14245,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
14241
14245
|
literal(4)
|
|
14242
14246
|
]).optional(),
|
|
14243
14247
|
tab: string().optional(),
|
|
14244
|
-
location: _enum([
|
|
14248
|
+
location: _enum([
|
|
14249
|
+
"settings",
|
|
14250
|
+
"top-tab",
|
|
14251
|
+
"hero"
|
|
14252
|
+
]).optional(),
|
|
14245
14253
|
order: number().optional(),
|
|
14246
14254
|
fields: array(any())
|
|
14247
14255
|
});
|
|
@@ -18121,6 +18129,52 @@ var TierStatusSchema = object({
|
|
|
18121
18129
|
countedAt: number().nullable()
|
|
18122
18130
|
});
|
|
18123
18131
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
18132
|
+
/**
|
|
18133
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
18134
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
18135
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
18136
|
+
*/
|
|
18137
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
18138
|
+
/** Rows held per stored tier. */
|
|
18139
|
+
var TierRowsSchema = object({
|
|
18140
|
+
raw: number().int(),
|
|
18141
|
+
"5m": number().int(),
|
|
18142
|
+
"1h": number().int(),
|
|
18143
|
+
"1d": number().int()
|
|
18144
|
+
});
|
|
18145
|
+
var OrphanSeriesSchema = object({
|
|
18146
|
+
seriesId: number().int(),
|
|
18147
|
+
deviceId: number().int(),
|
|
18148
|
+
key: string(),
|
|
18149
|
+
scope: string(),
|
|
18150
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
18151
|
+
displayName: string().nullable(),
|
|
18152
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
18153
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
18154
|
+
missingSince: number().nullable(),
|
|
18155
|
+
firstTs: number(),
|
|
18156
|
+
lastTs: number(),
|
|
18157
|
+
rows: TierRowsSchema
|
|
18158
|
+
});
|
|
18159
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
18160
|
+
"not-found",
|
|
18161
|
+
"not-orphan",
|
|
18162
|
+
"failed"
|
|
18163
|
+
]);
|
|
18164
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
18165
|
+
seriesId: number().int(),
|
|
18166
|
+
ok: literal(true),
|
|
18167
|
+
deleted: TierRowsSchema
|
|
18168
|
+
}), object({
|
|
18169
|
+
seriesId: number().int(),
|
|
18170
|
+
ok: literal(false),
|
|
18171
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
18172
|
+
})]);
|
|
18173
|
+
var OrphanListSchema = object({
|
|
18174
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
18175
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
18176
|
+
truncated: boolean()
|
|
18177
|
+
});
|
|
18124
18178
|
var DeviceHistoryStatusSchema = object({
|
|
18125
18179
|
startedAt: number(),
|
|
18126
18180
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -18218,7 +18272,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
18218
18272
|
}), object({ enabled: boolean() }), {
|
|
18219
18273
|
kind: "mutation",
|
|
18220
18274
|
auth: "admin"
|
|
18221
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
18275
|
+
}), 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() }), {
|
|
18276
|
+
kind: "mutation",
|
|
18277
|
+
auth: "admin"
|
|
18278
|
+
});
|
|
18222
18279
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
18223
18280
|
object({ state: literal("absent") }),
|
|
18224
18281
|
object({
|
|
@@ -49042,7 +49099,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
49042
49099
|
modelId: string()
|
|
49043
49100
|
}),
|
|
49044
49101
|
object({ kind: literal("cpu-device") }),
|
|
49045
|
-
object({ kind: literal("coral-untouched") }),
|
|
49046
49102
|
object({ kind: literal("device-disabled") }),
|
|
49047
49103
|
object({ kind: literal("device-unavailable") }),
|
|
49048
49104
|
object({ kind: literal("node-offline") }),
|
|
@@ -49140,11 +49196,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
49140
49196
|
kind: literal("detector-store-unreadable"),
|
|
49141
49197
|
error: string()
|
|
49142
49198
|
}),
|
|
49143
|
-
object({
|
|
49144
|
-
kind: literal("coral-enabled"),
|
|
49145
|
-
nodeId: string(),
|
|
49146
|
-
deviceKey: string()
|
|
49147
|
-
}),
|
|
49148
49199
|
object({
|
|
49149
49200
|
kind: literal("custom-pin-kept"),
|
|
49150
49201
|
nodeId: string(),
|
|
@@ -56180,17 +56231,69 @@ var connectivityCapability = {
|
|
|
56180
56231
|
volatileStateFields: ["lastChangedAt"]
|
|
56181
56232
|
};
|
|
56182
56233
|
/**
|
|
56183
|
-
* Generic device-consumables capability —
|
|
56184
|
-
*
|
|
56185
|
-
* descaling cycles,
|
|
56186
|
-
*
|
|
56187
|
-
*
|
|
56188
|
-
*
|
|
56234
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
56235
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
56236
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
56237
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
56238
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
56239
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
56240
|
+
* its device tracks consumables registers it; the provider names each item
|
|
56241
|
+
* verbatim and says which `kind` it is.
|
|
56242
|
+
*
|
|
56243
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
56244
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
56245
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
56189
56246
|
*
|
|
56190
56247
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
56191
56248
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
56192
56249
|
* "No consumables reported" placeholder when `items` is empty.
|
|
56193
56250
|
*/
|
|
56251
|
+
/**
|
|
56252
|
+
* What an item IS, which decides which direction is bad:
|
|
56253
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
56254
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
56255
|
+
* salt, rinse aid); low or empty is bad.
|
|
56256
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
56257
|
+
* bad.
|
|
56258
|
+
* Absent = `wear`.
|
|
56259
|
+
*/
|
|
56260
|
+
var ConsumableKindSchema = _enum([
|
|
56261
|
+
"wear",
|
|
56262
|
+
"supply",
|
|
56263
|
+
"waste"
|
|
56264
|
+
]);
|
|
56265
|
+
/**
|
|
56266
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
56267
|
+
* of `kind`, which decides which direction is bad:
|
|
56268
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
56269
|
+
* remaining time and a reset.
|
|
56270
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
56271
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
56272
|
+
* a stepped level and "refill".
|
|
56273
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
56274
|
+
* that warns when full.
|
|
56275
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
56276
|
+
*/
|
|
56277
|
+
var ConsumableFormSchema = _enum([
|
|
56278
|
+
"part",
|
|
56279
|
+
"tank",
|
|
56280
|
+
"product",
|
|
56281
|
+
"bin"
|
|
56282
|
+
]);
|
|
56283
|
+
/** The provider's own discrete verdict on an item. */
|
|
56284
|
+
var ConsumableStatusSchema = _enum([
|
|
56285
|
+
"ok",
|
|
56286
|
+
"low",
|
|
56287
|
+
"empty",
|
|
56288
|
+
"full",
|
|
56289
|
+
"replace"
|
|
56290
|
+
]);
|
|
56291
|
+
_enum([
|
|
56292
|
+
"ok",
|
|
56293
|
+
"low",
|
|
56294
|
+
"empty",
|
|
56295
|
+
"full"
|
|
56296
|
+
]);
|
|
56194
56297
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
56195
56298
|
* each. */
|
|
56196
56299
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -56205,18 +56308,23 @@ var ConsumableRemainingSchema = object({
|
|
|
56205
56308
|
unit: ConsumableRemainingUnitSchema
|
|
56206
56309
|
});
|
|
56207
56310
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
56208
|
-
* life
|
|
56209
|
-
*
|
|
56210
|
-
* mutually exclusive; a provider may
|
|
56311
|
+
* life %, or fill % for a `supply` / `waste` item) or a discrete `status`
|
|
56312
|
+
* may be known — both may be null when a provider only knows the item
|
|
56313
|
+
* exists. `level` and `status` are not mutually exclusive; a provider may
|
|
56314
|
+
* report both. */
|
|
56211
56315
|
var ConsumableItemSchema = object({
|
|
56212
56316
|
/** Stable id, e.g. 'main-brush'. */
|
|
56213
56317
|
key: string().min(1),
|
|
56214
56318
|
/** Display name. */
|
|
56215
56319
|
label: string().min(1),
|
|
56216
|
-
/** Remaining life % when known (0..100). */
|
|
56320
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
56217
56321
|
level: number().min(0).max(100).nullable(),
|
|
56218
|
-
/**
|
|
56219
|
-
status:
|
|
56322
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
56323
|
+
status: ConsumableStatusSchema.nullable(),
|
|
56324
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
56325
|
+
kind: ConsumableKindSchema.optional(),
|
|
56326
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
56327
|
+
form: ConsumableFormSchema.optional(),
|
|
56220
56328
|
/** Ms epoch of the last replace, when known. */
|
|
56221
56329
|
lastResetAt: number().nullable(),
|
|
56222
56330
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -56239,7 +56347,7 @@ var consumablesCapability = {
|
|
|
56239
56347
|
kind: "widget",
|
|
56240
56348
|
widgetId: "host/consumables-panel",
|
|
56241
56349
|
tab: "consumables",
|
|
56242
|
-
|
|
56350
|
+
placement: "hero",
|
|
56243
56351
|
label: "Consumables",
|
|
56244
56352
|
order: 5
|
|
56245
56353
|
} },
|
|
@@ -56300,9 +56408,37 @@ reset: method(object({
|
|
|
56300
56408
|
*/
|
|
56301
56409
|
durability: "restored",
|
|
56302
56410
|
/**
|
|
56303
|
-
* History (D850):
|
|
56411
|
+
* History (D850, D917): one series per (item field, item `key`) — the item key
|
|
56412
|
+
* is the series scope, the item `label` names it. A vacuum tank's fill, a
|
|
56413
|
+
* brush's remaining life and a dishwasher's salt are each recorded the moment
|
|
56414
|
+
* their provider reports them; an item that appears later gets its series.
|
|
56304
56415
|
*/
|
|
56305
|
-
history:
|
|
56416
|
+
history: {
|
|
56417
|
+
fields: {},
|
|
56418
|
+
items: {
|
|
56419
|
+
path: "items",
|
|
56420
|
+
key: "key",
|
|
56421
|
+
label: "label",
|
|
56422
|
+
fields: {
|
|
56423
|
+
level: {
|
|
56424
|
+
kind: "gauge",
|
|
56425
|
+
unit: "%",
|
|
56426
|
+
deadband: 2,
|
|
56427
|
+
displayName: "Level"
|
|
56428
|
+
},
|
|
56429
|
+
status: {
|
|
56430
|
+
kind: "enum",
|
|
56431
|
+
displayName: "Status"
|
|
56432
|
+
},
|
|
56433
|
+
"remaining.value": {
|
|
56434
|
+
kind: "gauge",
|
|
56435
|
+
unitFrom: "remaining.unit",
|
|
56436
|
+
deadband: 1,
|
|
56437
|
+
displayName: "Remaining"
|
|
56438
|
+
}
|
|
56439
|
+
}
|
|
56440
|
+
}
|
|
56441
|
+
},
|
|
56306
56442
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
56307
56443
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
56308
56444
|
};
|
|
@@ -56717,8 +56853,9 @@ onStatusChanged: { data: object({
|
|
|
56717
56853
|
volatileStateFields: ["lastChangedAt"]
|
|
56718
56854
|
};
|
|
56719
56855
|
/**
|
|
56720
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56721
|
-
*
|
|
56856
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
56857
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
56858
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
56722
56859
|
*
|
|
56723
56860
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56724
56861
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56766,11 +56903,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56766
56903
|
"offline",
|
|
56767
56904
|
"description-missing"
|
|
56768
56905
|
]);
|
|
56769
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56770
|
-
"ok",
|
|
56771
|
-
"low",
|
|
56772
|
-
"empty"
|
|
56773
|
-
]);
|
|
56774
56906
|
var DishwasherStatusSchema = object({
|
|
56775
56907
|
availability: DishwasherAvailabilitySchema,
|
|
56776
56908
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56803,8 +56935,6 @@ var DishwasherStatusSchema = object({
|
|
|
56803
56935
|
powerOn: boolean().nullable(),
|
|
56804
56936
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56805
56937
|
powerState: string().nullable(),
|
|
56806
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56807
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56808
56938
|
/**
|
|
56809
56939
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56810
56940
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -65620,60 +65750,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65620
65750
|
auth: "admin",
|
|
65621
65751
|
access: "delete"
|
|
65622
65752
|
});
|
|
65623
|
-
/**
|
|
65624
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
65625
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
65626
|
-
* optional fan-speed selector.
|
|
65627
|
-
*
|
|
65628
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
65629
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
65630
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
65631
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
65632
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
65633
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
65634
|
-
*
|
|
65635
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
65636
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
65637
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
65638
|
-
*
|
|
65639
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
65640
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
65641
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
65642
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
65643
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
65644
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
65645
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
65646
|
-
* so the HA provider leaves all four `null`.
|
|
65647
|
-
*/
|
|
65648
|
-
var VacuumStateSchema = _enum([
|
|
65649
|
-
"idle",
|
|
65650
|
-
"cleaning",
|
|
65651
|
-
"paused",
|
|
65652
|
-
"returning",
|
|
65653
|
-
"docked",
|
|
65654
|
-
"drying",
|
|
65655
|
-
"error"
|
|
65656
|
-
]);
|
|
65657
|
-
/**
|
|
65658
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
65659
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
65660
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
65661
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
65662
|
-
* hardware has no such tank at all.
|
|
65663
|
-
*/
|
|
65664
|
-
var TankStatusSchema = object({
|
|
65665
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
65666
|
-
level: number().min(0).max(100).nullable(),
|
|
65667
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
65668
|
-
status: _enum([
|
|
65669
|
-
"ok",
|
|
65670
|
-
"low",
|
|
65671
|
-
"full"
|
|
65672
|
-
]).nullable()
|
|
65673
|
-
});
|
|
65674
65753
|
var VacuumControlStatusSchema = object({
|
|
65675
65754
|
/** Lifecycle state of the vacuum. */
|
|
65676
|
-
state:
|
|
65755
|
+
state: _enum([
|
|
65756
|
+
"idle",
|
|
65757
|
+
"cleaning",
|
|
65758
|
+
"paused",
|
|
65759
|
+
"returning",
|
|
65760
|
+
"docked",
|
|
65761
|
+
"drying",
|
|
65762
|
+
"error"
|
|
65763
|
+
]),
|
|
65677
65764
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
65678
65765
|
* reading. */
|
|
65679
65766
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -65682,14 +65769,6 @@ var VacuumControlStatusSchema = object({
|
|
|
65682
65769
|
fanSpeed: string().nullable(),
|
|
65683
65770
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
65684
65771
|
availableFanSpeeds: array(string()),
|
|
65685
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
65686
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
65687
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
65688
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
65689
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
65690
|
-
detergent: TankStatusSchema.nullable(),
|
|
65691
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
65692
|
-
dustBin: TankStatusSchema.nullable(),
|
|
65693
65772
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
65694
65773
|
progressPercent: number().min(0).max(100).nullable(),
|
|
65695
65774
|
/** Current error code (0 / null = no error). */
|
|
@@ -65751,35 +65830,14 @@ var vacuumControlCapability = {
|
|
|
65751
65830
|
*/
|
|
65752
65831
|
durability: "session",
|
|
65753
65832
|
/**
|
|
65754
|
-
* History (D850): recorded series.
|
|
65833
|
+
* History (D850): recorded series. The tanks moved to `consumables` (D915), whose
|
|
65834
|
+
* items are keyed by runtime ids and record no history.
|
|
65755
65835
|
*/
|
|
65756
|
-
history: { fields: {
|
|
65757
|
-
|
|
65758
|
-
|
|
65759
|
-
|
|
65760
|
-
|
|
65761
|
-
},
|
|
65762
|
-
"cleanWater.level": {
|
|
65763
|
-
kind: "gauge",
|
|
65764
|
-
unit: "%",
|
|
65765
|
-
deadband: 2
|
|
65766
|
-
},
|
|
65767
|
-
"dirtyWater.level": {
|
|
65768
|
-
kind: "gauge",
|
|
65769
|
-
unit: "%",
|
|
65770
|
-
deadband: 2
|
|
65771
|
-
},
|
|
65772
|
-
"detergent.level": {
|
|
65773
|
-
kind: "gauge",
|
|
65774
|
-
unit: "%",
|
|
65775
|
-
deadband: 2
|
|
65776
|
-
},
|
|
65777
|
-
"dustBin.level": {
|
|
65778
|
-
kind: "gauge",
|
|
65779
|
-
unit: "%",
|
|
65780
|
-
deadband: 2
|
|
65781
|
-
}
|
|
65782
|
-
} }
|
|
65836
|
+
history: { fields: { batteryLevel: {
|
|
65837
|
+
kind: "gauge",
|
|
65838
|
+
unit: "%",
|
|
65839
|
+
deadband: 2
|
|
65840
|
+
} } }
|
|
65783
65841
|
};
|
|
65784
65842
|
var ValveStatusSchema = object({
|
|
65785
65843
|
/** Lifecycle state of the valve. */
|
|
@@ -70173,6 +70231,12 @@ Object.freeze({
|
|
|
70173
70231
|
addonId: null,
|
|
70174
70232
|
access: "create"
|
|
70175
70233
|
},
|
|
70234
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
70235
|
+
capName: "device-history",
|
|
70236
|
+
capScope: "system",
|
|
70237
|
+
addonId: null,
|
|
70238
|
+
access: "delete"
|
|
70239
|
+
},
|
|
70176
70240
|
"deviceHistory.getDeviceEnabled": {
|
|
70177
70241
|
capName: "device-history",
|
|
70178
70242
|
capScope: "system",
|
|
@@ -70191,6 +70255,12 @@ Object.freeze({
|
|
|
70191
70255
|
addonId: null,
|
|
70192
70256
|
access: "view"
|
|
70193
70257
|
},
|
|
70258
|
+
"deviceHistory.listOrphanSeries": {
|
|
70259
|
+
capName: "device-history",
|
|
70260
|
+
capScope: "system",
|
|
70261
|
+
addonId: null,
|
|
70262
|
+
access: "view"
|
|
70263
|
+
},
|
|
70194
70264
|
"deviceHistory.listSeries": {
|
|
70195
70265
|
capName: "device-history",
|
|
70196
70266
|
capScope: "system",
|
|
@@ -80196,7 +80266,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
80196
80266
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
80197
80267
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
80198
80268
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
80199
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
80269
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
80200
80270
|
([...RULE_TEXT], [...TANK]),
|
|
80201
80271
|
[...RULE_TEXT],
|
|
80202
80272
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
package/dist/addon.mjs
CHANGED
|
@@ -6415,7 +6415,7 @@ var ZodIssueCode = {
|
|
|
6415
6415
|
var ZodFirstPartyTypeKind;
|
|
6416
6416
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6417
6417
|
//#endregion
|
|
6418
|
-
//#region ../types/dist/sleep-
|
|
6418
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
6419
6419
|
/**
|
|
6420
6420
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6421
6421
|
* window to float samples (D455).
|
|
@@ -9307,7 +9307,11 @@ var ContributionSectionSchema = object({
|
|
|
9307
9307
|
literal(4)
|
|
9308
9308
|
]).optional(),
|
|
9309
9309
|
tab: string().optional(),
|
|
9310
|
-
location: _enum([
|
|
9310
|
+
location: _enum([
|
|
9311
|
+
"settings",
|
|
9312
|
+
"top-tab",
|
|
9313
|
+
"hero"
|
|
9314
|
+
]).optional(),
|
|
9311
9315
|
order: number().optional(),
|
|
9312
9316
|
fields: array(any())
|
|
9313
9317
|
});
|
|
@@ -14240,7 +14244,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
14240
14244
|
literal(4)
|
|
14241
14245
|
]).optional(),
|
|
14242
14246
|
tab: string().optional(),
|
|
14243
|
-
location: _enum([
|
|
14247
|
+
location: _enum([
|
|
14248
|
+
"settings",
|
|
14249
|
+
"top-tab",
|
|
14250
|
+
"hero"
|
|
14251
|
+
]).optional(),
|
|
14244
14252
|
order: number().optional(),
|
|
14245
14253
|
fields: array(any())
|
|
14246
14254
|
});
|
|
@@ -18120,6 +18128,52 @@ var TierStatusSchema = object({
|
|
|
18120
18128
|
countedAt: number().nullable()
|
|
18121
18129
|
});
|
|
18122
18130
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
18131
|
+
/**
|
|
18132
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
18133
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
18134
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
18135
|
+
*/
|
|
18136
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
18137
|
+
/** Rows held per stored tier. */
|
|
18138
|
+
var TierRowsSchema = object({
|
|
18139
|
+
raw: number().int(),
|
|
18140
|
+
"5m": number().int(),
|
|
18141
|
+
"1h": number().int(),
|
|
18142
|
+
"1d": number().int()
|
|
18143
|
+
});
|
|
18144
|
+
var OrphanSeriesSchema = object({
|
|
18145
|
+
seriesId: number().int(),
|
|
18146
|
+
deviceId: number().int(),
|
|
18147
|
+
key: string(),
|
|
18148
|
+
scope: string(),
|
|
18149
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
18150
|
+
displayName: string().nullable(),
|
|
18151
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
18152
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
18153
|
+
missingSince: number().nullable(),
|
|
18154
|
+
firstTs: number(),
|
|
18155
|
+
lastTs: number(),
|
|
18156
|
+
rows: TierRowsSchema
|
|
18157
|
+
});
|
|
18158
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
18159
|
+
"not-found",
|
|
18160
|
+
"not-orphan",
|
|
18161
|
+
"failed"
|
|
18162
|
+
]);
|
|
18163
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
18164
|
+
seriesId: number().int(),
|
|
18165
|
+
ok: literal(true),
|
|
18166
|
+
deleted: TierRowsSchema
|
|
18167
|
+
}), object({
|
|
18168
|
+
seriesId: number().int(),
|
|
18169
|
+
ok: literal(false),
|
|
18170
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
18171
|
+
})]);
|
|
18172
|
+
var OrphanListSchema = object({
|
|
18173
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
18174
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
18175
|
+
truncated: boolean()
|
|
18176
|
+
});
|
|
18123
18177
|
var DeviceHistoryStatusSchema = object({
|
|
18124
18178
|
startedAt: number(),
|
|
18125
18179
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -18217,7 +18271,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
18217
18271
|
}), object({ enabled: boolean() }), {
|
|
18218
18272
|
kind: "mutation",
|
|
18219
18273
|
auth: "admin"
|
|
18220
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
18274
|
+
}), 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() }), {
|
|
18275
|
+
kind: "mutation",
|
|
18276
|
+
auth: "admin"
|
|
18277
|
+
});
|
|
18221
18278
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
18222
18279
|
object({ state: literal("absent") }),
|
|
18223
18280
|
object({
|
|
@@ -49041,7 +49098,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
49041
49098
|
modelId: string()
|
|
49042
49099
|
}),
|
|
49043
49100
|
object({ kind: literal("cpu-device") }),
|
|
49044
|
-
object({ kind: literal("coral-untouched") }),
|
|
49045
49101
|
object({ kind: literal("device-disabled") }),
|
|
49046
49102
|
object({ kind: literal("device-unavailable") }),
|
|
49047
49103
|
object({ kind: literal("node-offline") }),
|
|
@@ -49139,11 +49195,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
49139
49195
|
kind: literal("detector-store-unreadable"),
|
|
49140
49196
|
error: string()
|
|
49141
49197
|
}),
|
|
49142
|
-
object({
|
|
49143
|
-
kind: literal("coral-enabled"),
|
|
49144
|
-
nodeId: string(),
|
|
49145
|
-
deviceKey: string()
|
|
49146
|
-
}),
|
|
49147
49198
|
object({
|
|
49148
49199
|
kind: literal("custom-pin-kept"),
|
|
49149
49200
|
nodeId: string(),
|
|
@@ -56179,17 +56230,69 @@ var connectivityCapability = {
|
|
|
56179
56230
|
volatileStateFields: ["lastChangedAt"]
|
|
56180
56231
|
};
|
|
56181
56232
|
/**
|
|
56182
|
-
* Generic device-consumables capability —
|
|
56183
|
-
*
|
|
56184
|
-
* descaling cycles,
|
|
56185
|
-
*
|
|
56186
|
-
*
|
|
56187
|
-
*
|
|
56233
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
56234
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
56235
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
56236
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
56237
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
56238
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
56239
|
+
* its device tracks consumables registers it; the provider names each item
|
|
56240
|
+
* verbatim and says which `kind` it is.
|
|
56241
|
+
*
|
|
56242
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
56243
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
56244
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
56188
56245
|
*
|
|
56189
56246
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
56190
56247
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
56191
56248
|
* "No consumables reported" placeholder when `items` is empty.
|
|
56192
56249
|
*/
|
|
56250
|
+
/**
|
|
56251
|
+
* What an item IS, which decides which direction is bad:
|
|
56252
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
56253
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
56254
|
+
* salt, rinse aid); low or empty is bad.
|
|
56255
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
56256
|
+
* bad.
|
|
56257
|
+
* Absent = `wear`.
|
|
56258
|
+
*/
|
|
56259
|
+
var ConsumableKindSchema = _enum([
|
|
56260
|
+
"wear",
|
|
56261
|
+
"supply",
|
|
56262
|
+
"waste"
|
|
56263
|
+
]);
|
|
56264
|
+
/**
|
|
56265
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
56266
|
+
* of `kind`, which decides which direction is bad:
|
|
56267
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
56268
|
+
* remaining time and a reset.
|
|
56269
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
56270
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
56271
|
+
* a stepped level and "refill".
|
|
56272
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
56273
|
+
* that warns when full.
|
|
56274
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
56275
|
+
*/
|
|
56276
|
+
var ConsumableFormSchema = _enum([
|
|
56277
|
+
"part",
|
|
56278
|
+
"tank",
|
|
56279
|
+
"product",
|
|
56280
|
+
"bin"
|
|
56281
|
+
]);
|
|
56282
|
+
/** The provider's own discrete verdict on an item. */
|
|
56283
|
+
var ConsumableStatusSchema = _enum([
|
|
56284
|
+
"ok",
|
|
56285
|
+
"low",
|
|
56286
|
+
"empty",
|
|
56287
|
+
"full",
|
|
56288
|
+
"replace"
|
|
56289
|
+
]);
|
|
56290
|
+
_enum([
|
|
56291
|
+
"ok",
|
|
56292
|
+
"low",
|
|
56293
|
+
"empty",
|
|
56294
|
+
"full"
|
|
56295
|
+
]);
|
|
56193
56296
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
56194
56297
|
* each. */
|
|
56195
56298
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -56204,18 +56307,23 @@ var ConsumableRemainingSchema = object({
|
|
|
56204
56307
|
unit: ConsumableRemainingUnitSchema
|
|
56205
56308
|
});
|
|
56206
56309
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
56207
|
-
* life
|
|
56208
|
-
*
|
|
56209
|
-
* mutually exclusive; a provider may
|
|
56310
|
+
* life %, or fill % for a `supply` / `waste` item) or a discrete `status`
|
|
56311
|
+
* may be known — both may be null when a provider only knows the item
|
|
56312
|
+
* exists. `level` and `status` are not mutually exclusive; a provider may
|
|
56313
|
+
* report both. */
|
|
56210
56314
|
var ConsumableItemSchema = object({
|
|
56211
56315
|
/** Stable id, e.g. 'main-brush'. */
|
|
56212
56316
|
key: string().min(1),
|
|
56213
56317
|
/** Display name. */
|
|
56214
56318
|
label: string().min(1),
|
|
56215
|
-
/** Remaining life % when known (0..100). */
|
|
56319
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
56216
56320
|
level: number().min(0).max(100).nullable(),
|
|
56217
|
-
/**
|
|
56218
|
-
status:
|
|
56321
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
56322
|
+
status: ConsumableStatusSchema.nullable(),
|
|
56323
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
56324
|
+
kind: ConsumableKindSchema.optional(),
|
|
56325
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
56326
|
+
form: ConsumableFormSchema.optional(),
|
|
56219
56327
|
/** Ms epoch of the last replace, when known. */
|
|
56220
56328
|
lastResetAt: number().nullable(),
|
|
56221
56329
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -56238,7 +56346,7 @@ var consumablesCapability = {
|
|
|
56238
56346
|
kind: "widget",
|
|
56239
56347
|
widgetId: "host/consumables-panel",
|
|
56240
56348
|
tab: "consumables",
|
|
56241
|
-
|
|
56349
|
+
placement: "hero",
|
|
56242
56350
|
label: "Consumables",
|
|
56243
56351
|
order: 5
|
|
56244
56352
|
} },
|
|
@@ -56299,9 +56407,37 @@ reset: method(object({
|
|
|
56299
56407
|
*/
|
|
56300
56408
|
durability: "restored",
|
|
56301
56409
|
/**
|
|
56302
|
-
* History (D850):
|
|
56410
|
+
* History (D850, D917): one series per (item field, item `key`) — the item key
|
|
56411
|
+
* is the series scope, the item `label` names it. A vacuum tank's fill, a
|
|
56412
|
+
* brush's remaining life and a dishwasher's salt are each recorded the moment
|
|
56413
|
+
* their provider reports them; an item that appears later gets its series.
|
|
56303
56414
|
*/
|
|
56304
|
-
history:
|
|
56415
|
+
history: {
|
|
56416
|
+
fields: {},
|
|
56417
|
+
items: {
|
|
56418
|
+
path: "items",
|
|
56419
|
+
key: "key",
|
|
56420
|
+
label: "label",
|
|
56421
|
+
fields: {
|
|
56422
|
+
level: {
|
|
56423
|
+
kind: "gauge",
|
|
56424
|
+
unit: "%",
|
|
56425
|
+
deadband: 2,
|
|
56426
|
+
displayName: "Level"
|
|
56427
|
+
},
|
|
56428
|
+
status: {
|
|
56429
|
+
kind: "enum",
|
|
56430
|
+
displayName: "Status"
|
|
56431
|
+
},
|
|
56432
|
+
"remaining.value": {
|
|
56433
|
+
kind: "gauge",
|
|
56434
|
+
unitFrom: "remaining.unit",
|
|
56435
|
+
deadband: 1,
|
|
56436
|
+
displayName: "Remaining"
|
|
56437
|
+
}
|
|
56438
|
+
}
|
|
56439
|
+
}
|
|
56440
|
+
},
|
|
56305
56441
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
56306
56442
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
56307
56443
|
};
|
|
@@ -56716,8 +56852,9 @@ onStatusChanged: { data: object({
|
|
|
56716
56852
|
volatileStateFields: ["lastChangedAt"]
|
|
56717
56853
|
};
|
|
56718
56854
|
/**
|
|
56719
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56720
|
-
*
|
|
56855
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
56856
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
56857
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
56721
56858
|
*
|
|
56722
56859
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56723
56860
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56765,11 +56902,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56765
56902
|
"offline",
|
|
56766
56903
|
"description-missing"
|
|
56767
56904
|
]);
|
|
56768
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56769
|
-
"ok",
|
|
56770
|
-
"low",
|
|
56771
|
-
"empty"
|
|
56772
|
-
]);
|
|
56773
56905
|
var DishwasherStatusSchema = object({
|
|
56774
56906
|
availability: DishwasherAvailabilitySchema,
|
|
56775
56907
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56802,8 +56934,6 @@ var DishwasherStatusSchema = object({
|
|
|
56802
56934
|
powerOn: boolean().nullable(),
|
|
56803
56935
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56804
56936
|
powerState: string().nullable(),
|
|
56805
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56806
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56807
56937
|
/**
|
|
56808
56938
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56809
56939
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -65619,60 +65749,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65619
65749
|
auth: "admin",
|
|
65620
65750
|
access: "delete"
|
|
65621
65751
|
});
|
|
65622
|
-
/**
|
|
65623
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
65624
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
65625
|
-
* optional fan-speed selector.
|
|
65626
|
-
*
|
|
65627
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
65628
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
65629
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
65630
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
65631
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
65632
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
65633
|
-
*
|
|
65634
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
65635
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
65636
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
65637
|
-
*
|
|
65638
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
65639
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
65640
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
65641
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
65642
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
65643
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
65644
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
65645
|
-
* so the HA provider leaves all four `null`.
|
|
65646
|
-
*/
|
|
65647
|
-
var VacuumStateSchema = _enum([
|
|
65648
|
-
"idle",
|
|
65649
|
-
"cleaning",
|
|
65650
|
-
"paused",
|
|
65651
|
-
"returning",
|
|
65652
|
-
"docked",
|
|
65653
|
-
"drying",
|
|
65654
|
-
"error"
|
|
65655
|
-
]);
|
|
65656
|
-
/**
|
|
65657
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
65658
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
65659
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
65660
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
65661
|
-
* hardware has no such tank at all.
|
|
65662
|
-
*/
|
|
65663
|
-
var TankStatusSchema = object({
|
|
65664
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
65665
|
-
level: number().min(0).max(100).nullable(),
|
|
65666
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
65667
|
-
status: _enum([
|
|
65668
|
-
"ok",
|
|
65669
|
-
"low",
|
|
65670
|
-
"full"
|
|
65671
|
-
]).nullable()
|
|
65672
|
-
});
|
|
65673
65752
|
var VacuumControlStatusSchema = object({
|
|
65674
65753
|
/** Lifecycle state of the vacuum. */
|
|
65675
|
-
state:
|
|
65754
|
+
state: _enum([
|
|
65755
|
+
"idle",
|
|
65756
|
+
"cleaning",
|
|
65757
|
+
"paused",
|
|
65758
|
+
"returning",
|
|
65759
|
+
"docked",
|
|
65760
|
+
"drying",
|
|
65761
|
+
"error"
|
|
65762
|
+
]),
|
|
65676
65763
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
65677
65764
|
* reading. */
|
|
65678
65765
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -65681,14 +65768,6 @@ var VacuumControlStatusSchema = object({
|
|
|
65681
65768
|
fanSpeed: string().nullable(),
|
|
65682
65769
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
65683
65770
|
availableFanSpeeds: array(string()),
|
|
65684
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
65685
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
65686
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
65687
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
65688
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
65689
|
-
detergent: TankStatusSchema.nullable(),
|
|
65690
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
65691
|
-
dustBin: TankStatusSchema.nullable(),
|
|
65692
65771
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
65693
65772
|
progressPercent: number().min(0).max(100).nullable(),
|
|
65694
65773
|
/** Current error code (0 / null = no error). */
|
|
@@ -65750,35 +65829,14 @@ var vacuumControlCapability = {
|
|
|
65750
65829
|
*/
|
|
65751
65830
|
durability: "session",
|
|
65752
65831
|
/**
|
|
65753
|
-
* History (D850): recorded series.
|
|
65832
|
+
* History (D850): recorded series. The tanks moved to `consumables` (D915), whose
|
|
65833
|
+
* items are keyed by runtime ids and record no history.
|
|
65754
65834
|
*/
|
|
65755
|
-
history: { fields: {
|
|
65756
|
-
|
|
65757
|
-
|
|
65758
|
-
|
|
65759
|
-
|
|
65760
|
-
},
|
|
65761
|
-
"cleanWater.level": {
|
|
65762
|
-
kind: "gauge",
|
|
65763
|
-
unit: "%",
|
|
65764
|
-
deadband: 2
|
|
65765
|
-
},
|
|
65766
|
-
"dirtyWater.level": {
|
|
65767
|
-
kind: "gauge",
|
|
65768
|
-
unit: "%",
|
|
65769
|
-
deadband: 2
|
|
65770
|
-
},
|
|
65771
|
-
"detergent.level": {
|
|
65772
|
-
kind: "gauge",
|
|
65773
|
-
unit: "%",
|
|
65774
|
-
deadband: 2
|
|
65775
|
-
},
|
|
65776
|
-
"dustBin.level": {
|
|
65777
|
-
kind: "gauge",
|
|
65778
|
-
unit: "%",
|
|
65779
|
-
deadband: 2
|
|
65780
|
-
}
|
|
65781
|
-
} }
|
|
65835
|
+
history: { fields: { batteryLevel: {
|
|
65836
|
+
kind: "gauge",
|
|
65837
|
+
unit: "%",
|
|
65838
|
+
deadband: 2
|
|
65839
|
+
} } }
|
|
65782
65840
|
};
|
|
65783
65841
|
var ValveStatusSchema = object({
|
|
65784
65842
|
/** Lifecycle state of the valve. */
|
|
@@ -70172,6 +70230,12 @@ Object.freeze({
|
|
|
70172
70230
|
addonId: null,
|
|
70173
70231
|
access: "create"
|
|
70174
70232
|
},
|
|
70233
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
70234
|
+
capName: "device-history",
|
|
70235
|
+
capScope: "system",
|
|
70236
|
+
addonId: null,
|
|
70237
|
+
access: "delete"
|
|
70238
|
+
},
|
|
70175
70239
|
"deviceHistory.getDeviceEnabled": {
|
|
70176
70240
|
capName: "device-history",
|
|
70177
70241
|
capScope: "system",
|
|
@@ -70190,6 +70254,12 @@ Object.freeze({
|
|
|
70190
70254
|
addonId: null,
|
|
70191
70255
|
access: "view"
|
|
70192
70256
|
},
|
|
70257
|
+
"deviceHistory.listOrphanSeries": {
|
|
70258
|
+
capName: "device-history",
|
|
70259
|
+
capScope: "system",
|
|
70260
|
+
addonId: null,
|
|
70261
|
+
access: "view"
|
|
70262
|
+
},
|
|
70193
70263
|
"deviceHistory.listSeries": {
|
|
70194
70264
|
capName: "device-history",
|
|
70195
70265
|
capScope: "system",
|
|
@@ -80195,7 +80265,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
80195
80265
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
80196
80266
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
80197
80267
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
80198
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
80268
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
80199
80269
|
([...RULE_TEXT], [...TANK]),
|
|
80200
80270
|
[...RULE_TEXT],
|
|
80201
80271
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-rademacher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.144",
|
|
4
4
|
"description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|