@camstack/addon-provider-rademacher 0.2.143 → 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 -117
- package/dist/addon.mjs +193 -117
- 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({
|
|
@@ -56174,17 +56231,69 @@ var connectivityCapability = {
|
|
|
56174
56231
|
volatileStateFields: ["lastChangedAt"]
|
|
56175
56232
|
};
|
|
56176
56233
|
/**
|
|
56177
|
-
* Generic device-consumables capability —
|
|
56178
|
-
*
|
|
56179
|
-
* descaling cycles,
|
|
56180
|
-
*
|
|
56181
|
-
*
|
|
56182
|
-
*
|
|
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).
|
|
56183
56246
|
*
|
|
56184
56247
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
56185
56248
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
56186
56249
|
* "No consumables reported" placeholder when `items` is empty.
|
|
56187
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
|
+
]);
|
|
56188
56297
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
56189
56298
|
* each. */
|
|
56190
56299
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -56199,18 +56308,23 @@ var ConsumableRemainingSchema = object({
|
|
|
56199
56308
|
unit: ConsumableRemainingUnitSchema
|
|
56200
56309
|
});
|
|
56201
56310
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
56202
|
-
* life
|
|
56203
|
-
*
|
|
56204
|
-
* 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. */
|
|
56205
56315
|
var ConsumableItemSchema = object({
|
|
56206
56316
|
/** Stable id, e.g. 'main-brush'. */
|
|
56207
56317
|
key: string().min(1),
|
|
56208
56318
|
/** Display name. */
|
|
56209
56319
|
label: string().min(1),
|
|
56210
|
-
/** Remaining life % when known (0..100). */
|
|
56320
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
56211
56321
|
level: number().min(0).max(100).nullable(),
|
|
56212
|
-
/**
|
|
56213
|
-
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(),
|
|
56214
56328
|
/** Ms epoch of the last replace, when known. */
|
|
56215
56329
|
lastResetAt: number().nullable(),
|
|
56216
56330
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -56233,7 +56347,7 @@ var consumablesCapability = {
|
|
|
56233
56347
|
kind: "widget",
|
|
56234
56348
|
widgetId: "host/consumables-panel",
|
|
56235
56349
|
tab: "consumables",
|
|
56236
|
-
|
|
56350
|
+
placement: "hero",
|
|
56237
56351
|
label: "Consumables",
|
|
56238
56352
|
order: 5
|
|
56239
56353
|
} },
|
|
@@ -56294,9 +56408,37 @@ reset: method(object({
|
|
|
56294
56408
|
*/
|
|
56295
56409
|
durability: "restored",
|
|
56296
56410
|
/**
|
|
56297
|
-
* 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.
|
|
56298
56415
|
*/
|
|
56299
|
-
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
|
+
},
|
|
56300
56442
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
56301
56443
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
56302
56444
|
};
|
|
@@ -56711,8 +56853,9 @@ onStatusChanged: { data: object({
|
|
|
56711
56853
|
volatileStateFields: ["lastChangedAt"]
|
|
56712
56854
|
};
|
|
56713
56855
|
/**
|
|
56714
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56715
|
-
*
|
|
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).
|
|
56716
56859
|
*
|
|
56717
56860
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56718
56861
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56760,11 +56903,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56760
56903
|
"offline",
|
|
56761
56904
|
"description-missing"
|
|
56762
56905
|
]);
|
|
56763
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56764
|
-
"ok",
|
|
56765
|
-
"low",
|
|
56766
|
-
"empty"
|
|
56767
|
-
]);
|
|
56768
56906
|
var DishwasherStatusSchema = object({
|
|
56769
56907
|
availability: DishwasherAvailabilitySchema,
|
|
56770
56908
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56797,8 +56935,6 @@ var DishwasherStatusSchema = object({
|
|
|
56797
56935
|
powerOn: boolean().nullable(),
|
|
56798
56936
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56799
56937
|
powerState: string().nullable(),
|
|
56800
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56801
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56802
56938
|
/**
|
|
56803
56939
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56804
56940
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -65614,60 +65750,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65614
65750
|
auth: "admin",
|
|
65615
65751
|
access: "delete"
|
|
65616
65752
|
});
|
|
65617
|
-
/**
|
|
65618
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
65619
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
65620
|
-
* optional fan-speed selector.
|
|
65621
|
-
*
|
|
65622
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
65623
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
65624
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
65625
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
65626
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
65627
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
65628
|
-
*
|
|
65629
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
65630
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
65631
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
65632
|
-
*
|
|
65633
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
65634
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
65635
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
65636
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
65637
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
65638
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
65639
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
65640
|
-
* so the HA provider leaves all four `null`.
|
|
65641
|
-
*/
|
|
65642
|
-
var VacuumStateSchema = _enum([
|
|
65643
|
-
"idle",
|
|
65644
|
-
"cleaning",
|
|
65645
|
-
"paused",
|
|
65646
|
-
"returning",
|
|
65647
|
-
"docked",
|
|
65648
|
-
"drying",
|
|
65649
|
-
"error"
|
|
65650
|
-
]);
|
|
65651
|
-
/**
|
|
65652
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
65653
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
65654
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
65655
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
65656
|
-
* hardware has no such tank at all.
|
|
65657
|
-
*/
|
|
65658
|
-
var TankStatusSchema = object({
|
|
65659
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
65660
|
-
level: number().min(0).max(100).nullable(),
|
|
65661
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
65662
|
-
status: _enum([
|
|
65663
|
-
"ok",
|
|
65664
|
-
"low",
|
|
65665
|
-
"full"
|
|
65666
|
-
]).nullable()
|
|
65667
|
-
});
|
|
65668
65753
|
var VacuumControlStatusSchema = object({
|
|
65669
65754
|
/** Lifecycle state of the vacuum. */
|
|
65670
|
-
state:
|
|
65755
|
+
state: _enum([
|
|
65756
|
+
"idle",
|
|
65757
|
+
"cleaning",
|
|
65758
|
+
"paused",
|
|
65759
|
+
"returning",
|
|
65760
|
+
"docked",
|
|
65761
|
+
"drying",
|
|
65762
|
+
"error"
|
|
65763
|
+
]),
|
|
65671
65764
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
65672
65765
|
* reading. */
|
|
65673
65766
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -65676,14 +65769,6 @@ var VacuumControlStatusSchema = object({
|
|
|
65676
65769
|
fanSpeed: string().nullable(),
|
|
65677
65770
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
65678
65771
|
availableFanSpeeds: array(string()),
|
|
65679
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
65680
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
65681
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
65682
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
65683
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
65684
|
-
detergent: TankStatusSchema.nullable(),
|
|
65685
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
65686
|
-
dustBin: TankStatusSchema.nullable(),
|
|
65687
65772
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
65688
65773
|
progressPercent: number().min(0).max(100).nullable(),
|
|
65689
65774
|
/** Current error code (0 / null = no error). */
|
|
@@ -65745,35 +65830,14 @@ var vacuumControlCapability = {
|
|
|
65745
65830
|
*/
|
|
65746
65831
|
durability: "session",
|
|
65747
65832
|
/**
|
|
65748
|
-
* 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.
|
|
65749
65835
|
*/
|
|
65750
|
-
history: { fields: {
|
|
65751
|
-
|
|
65752
|
-
|
|
65753
|
-
|
|
65754
|
-
|
|
65755
|
-
},
|
|
65756
|
-
"cleanWater.level": {
|
|
65757
|
-
kind: "gauge",
|
|
65758
|
-
unit: "%",
|
|
65759
|
-
deadband: 2
|
|
65760
|
-
},
|
|
65761
|
-
"dirtyWater.level": {
|
|
65762
|
-
kind: "gauge",
|
|
65763
|
-
unit: "%",
|
|
65764
|
-
deadband: 2
|
|
65765
|
-
},
|
|
65766
|
-
"detergent.level": {
|
|
65767
|
-
kind: "gauge",
|
|
65768
|
-
unit: "%",
|
|
65769
|
-
deadband: 2
|
|
65770
|
-
},
|
|
65771
|
-
"dustBin.level": {
|
|
65772
|
-
kind: "gauge",
|
|
65773
|
-
unit: "%",
|
|
65774
|
-
deadband: 2
|
|
65775
|
-
}
|
|
65776
|
-
} }
|
|
65836
|
+
history: { fields: { batteryLevel: {
|
|
65837
|
+
kind: "gauge",
|
|
65838
|
+
unit: "%",
|
|
65839
|
+
deadband: 2
|
|
65840
|
+
} } }
|
|
65777
65841
|
};
|
|
65778
65842
|
var ValveStatusSchema = object({
|
|
65779
65843
|
/** Lifecycle state of the valve. */
|
|
@@ -70167,6 +70231,12 @@ Object.freeze({
|
|
|
70167
70231
|
addonId: null,
|
|
70168
70232
|
access: "create"
|
|
70169
70233
|
},
|
|
70234
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
70235
|
+
capName: "device-history",
|
|
70236
|
+
capScope: "system",
|
|
70237
|
+
addonId: null,
|
|
70238
|
+
access: "delete"
|
|
70239
|
+
},
|
|
70170
70240
|
"deviceHistory.getDeviceEnabled": {
|
|
70171
70241
|
capName: "device-history",
|
|
70172
70242
|
capScope: "system",
|
|
@@ -70185,6 +70255,12 @@ Object.freeze({
|
|
|
70185
70255
|
addonId: null,
|
|
70186
70256
|
access: "view"
|
|
70187
70257
|
},
|
|
70258
|
+
"deviceHistory.listOrphanSeries": {
|
|
70259
|
+
capName: "device-history",
|
|
70260
|
+
capScope: "system",
|
|
70261
|
+
addonId: null,
|
|
70262
|
+
access: "view"
|
|
70263
|
+
},
|
|
70188
70264
|
"deviceHistory.listSeries": {
|
|
70189
70265
|
capName: "device-history",
|
|
70190
70266
|
capScope: "system",
|
|
@@ -80190,7 +80266,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
80190
80266
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
80191
80267
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
80192
80268
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
80193
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
80269
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
80194
80270
|
([...RULE_TEXT], [...TANK]),
|
|
80195
80271
|
[...RULE_TEXT],
|
|
80196
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({
|
|
@@ -56173,17 +56230,69 @@ var connectivityCapability = {
|
|
|
56173
56230
|
volatileStateFields: ["lastChangedAt"]
|
|
56174
56231
|
};
|
|
56175
56232
|
/**
|
|
56176
|
-
* Generic device-consumables capability —
|
|
56177
|
-
*
|
|
56178
|
-
* descaling cycles,
|
|
56179
|
-
*
|
|
56180
|
-
*
|
|
56181
|
-
*
|
|
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).
|
|
56182
56245
|
*
|
|
56183
56246
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
56184
56247
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
56185
56248
|
* "No consumables reported" placeholder when `items` is empty.
|
|
56186
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
|
+
]);
|
|
56187
56296
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
56188
56297
|
* each. */
|
|
56189
56298
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -56198,18 +56307,23 @@ var ConsumableRemainingSchema = object({
|
|
|
56198
56307
|
unit: ConsumableRemainingUnitSchema
|
|
56199
56308
|
});
|
|
56200
56309
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
56201
|
-
* life
|
|
56202
|
-
*
|
|
56203
|
-
* 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. */
|
|
56204
56314
|
var ConsumableItemSchema = object({
|
|
56205
56315
|
/** Stable id, e.g. 'main-brush'. */
|
|
56206
56316
|
key: string().min(1),
|
|
56207
56317
|
/** Display name. */
|
|
56208
56318
|
label: string().min(1),
|
|
56209
|
-
/** Remaining life % when known (0..100). */
|
|
56319
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
56210
56320
|
level: number().min(0).max(100).nullable(),
|
|
56211
|
-
/**
|
|
56212
|
-
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(),
|
|
56213
56327
|
/** Ms epoch of the last replace, when known. */
|
|
56214
56328
|
lastResetAt: number().nullable(),
|
|
56215
56329
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -56232,7 +56346,7 @@ var consumablesCapability = {
|
|
|
56232
56346
|
kind: "widget",
|
|
56233
56347
|
widgetId: "host/consumables-panel",
|
|
56234
56348
|
tab: "consumables",
|
|
56235
|
-
|
|
56349
|
+
placement: "hero",
|
|
56236
56350
|
label: "Consumables",
|
|
56237
56351
|
order: 5
|
|
56238
56352
|
} },
|
|
@@ -56293,9 +56407,37 @@ reset: method(object({
|
|
|
56293
56407
|
*/
|
|
56294
56408
|
durability: "restored",
|
|
56295
56409
|
/**
|
|
56296
|
-
* 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.
|
|
56297
56414
|
*/
|
|
56298
|
-
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
|
+
},
|
|
56299
56441
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
56300
56442
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
56301
56443
|
};
|
|
@@ -56710,8 +56852,9 @@ onStatusChanged: { data: object({
|
|
|
56710
56852
|
volatileStateFields: ["lastChangedAt"]
|
|
56711
56853
|
};
|
|
56712
56854
|
/**
|
|
56713
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56714
|
-
*
|
|
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).
|
|
56715
56858
|
*
|
|
56716
56859
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56717
56860
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56759,11 +56902,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56759
56902
|
"offline",
|
|
56760
56903
|
"description-missing"
|
|
56761
56904
|
]);
|
|
56762
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56763
|
-
"ok",
|
|
56764
|
-
"low",
|
|
56765
|
-
"empty"
|
|
56766
|
-
]);
|
|
56767
56905
|
var DishwasherStatusSchema = object({
|
|
56768
56906
|
availability: DishwasherAvailabilitySchema,
|
|
56769
56907
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56796,8 +56934,6 @@ var DishwasherStatusSchema = object({
|
|
|
56796
56934
|
powerOn: boolean().nullable(),
|
|
56797
56935
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56798
56936
|
powerState: string().nullable(),
|
|
56799
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56800
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56801
56937
|
/**
|
|
56802
56938
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56803
56939
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -65613,60 +65749,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65613
65749
|
auth: "admin",
|
|
65614
65750
|
access: "delete"
|
|
65615
65751
|
});
|
|
65616
|
-
/**
|
|
65617
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
65618
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
65619
|
-
* optional fan-speed selector.
|
|
65620
|
-
*
|
|
65621
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
65622
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
65623
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
65624
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
65625
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
65626
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
65627
|
-
*
|
|
65628
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
65629
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
65630
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
65631
|
-
*
|
|
65632
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
65633
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
65634
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
65635
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
65636
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
65637
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
65638
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
65639
|
-
* so the HA provider leaves all four `null`.
|
|
65640
|
-
*/
|
|
65641
|
-
var VacuumStateSchema = _enum([
|
|
65642
|
-
"idle",
|
|
65643
|
-
"cleaning",
|
|
65644
|
-
"paused",
|
|
65645
|
-
"returning",
|
|
65646
|
-
"docked",
|
|
65647
|
-
"drying",
|
|
65648
|
-
"error"
|
|
65649
|
-
]);
|
|
65650
|
-
/**
|
|
65651
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
65652
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
65653
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
65654
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
65655
|
-
* hardware has no such tank at all.
|
|
65656
|
-
*/
|
|
65657
|
-
var TankStatusSchema = object({
|
|
65658
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
65659
|
-
level: number().min(0).max(100).nullable(),
|
|
65660
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
65661
|
-
status: _enum([
|
|
65662
|
-
"ok",
|
|
65663
|
-
"low",
|
|
65664
|
-
"full"
|
|
65665
|
-
]).nullable()
|
|
65666
|
-
});
|
|
65667
65752
|
var VacuumControlStatusSchema = object({
|
|
65668
65753
|
/** Lifecycle state of the vacuum. */
|
|
65669
|
-
state:
|
|
65754
|
+
state: _enum([
|
|
65755
|
+
"idle",
|
|
65756
|
+
"cleaning",
|
|
65757
|
+
"paused",
|
|
65758
|
+
"returning",
|
|
65759
|
+
"docked",
|
|
65760
|
+
"drying",
|
|
65761
|
+
"error"
|
|
65762
|
+
]),
|
|
65670
65763
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
65671
65764
|
* reading. */
|
|
65672
65765
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -65675,14 +65768,6 @@ var VacuumControlStatusSchema = object({
|
|
|
65675
65768
|
fanSpeed: string().nullable(),
|
|
65676
65769
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
65677
65770
|
availableFanSpeeds: array(string()),
|
|
65678
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
65679
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
65680
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
65681
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
65682
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
65683
|
-
detergent: TankStatusSchema.nullable(),
|
|
65684
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
65685
|
-
dustBin: TankStatusSchema.nullable(),
|
|
65686
65771
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
65687
65772
|
progressPercent: number().min(0).max(100).nullable(),
|
|
65688
65773
|
/** Current error code (0 / null = no error). */
|
|
@@ -65744,35 +65829,14 @@ var vacuumControlCapability = {
|
|
|
65744
65829
|
*/
|
|
65745
65830
|
durability: "session",
|
|
65746
65831
|
/**
|
|
65747
|
-
* 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.
|
|
65748
65834
|
*/
|
|
65749
|
-
history: { fields: {
|
|
65750
|
-
|
|
65751
|
-
|
|
65752
|
-
|
|
65753
|
-
|
|
65754
|
-
},
|
|
65755
|
-
"cleanWater.level": {
|
|
65756
|
-
kind: "gauge",
|
|
65757
|
-
unit: "%",
|
|
65758
|
-
deadband: 2
|
|
65759
|
-
},
|
|
65760
|
-
"dirtyWater.level": {
|
|
65761
|
-
kind: "gauge",
|
|
65762
|
-
unit: "%",
|
|
65763
|
-
deadband: 2
|
|
65764
|
-
},
|
|
65765
|
-
"detergent.level": {
|
|
65766
|
-
kind: "gauge",
|
|
65767
|
-
unit: "%",
|
|
65768
|
-
deadband: 2
|
|
65769
|
-
},
|
|
65770
|
-
"dustBin.level": {
|
|
65771
|
-
kind: "gauge",
|
|
65772
|
-
unit: "%",
|
|
65773
|
-
deadband: 2
|
|
65774
|
-
}
|
|
65775
|
-
} }
|
|
65835
|
+
history: { fields: { batteryLevel: {
|
|
65836
|
+
kind: "gauge",
|
|
65837
|
+
unit: "%",
|
|
65838
|
+
deadband: 2
|
|
65839
|
+
} } }
|
|
65776
65840
|
};
|
|
65777
65841
|
var ValveStatusSchema = object({
|
|
65778
65842
|
/** Lifecycle state of the valve. */
|
|
@@ -70166,6 +70230,12 @@ Object.freeze({
|
|
|
70166
70230
|
addonId: null,
|
|
70167
70231
|
access: "create"
|
|
70168
70232
|
},
|
|
70233
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
70234
|
+
capName: "device-history",
|
|
70235
|
+
capScope: "system",
|
|
70236
|
+
addonId: null,
|
|
70237
|
+
access: "delete"
|
|
70238
|
+
},
|
|
70169
70239
|
"deviceHistory.getDeviceEnabled": {
|
|
70170
70240
|
capName: "device-history",
|
|
70171
70241
|
capScope: "system",
|
|
@@ -70184,6 +70254,12 @@ Object.freeze({
|
|
|
70184
70254
|
addonId: null,
|
|
70185
70255
|
access: "view"
|
|
70186
70256
|
},
|
|
70257
|
+
"deviceHistory.listOrphanSeries": {
|
|
70258
|
+
capName: "device-history",
|
|
70259
|
+
capScope: "system",
|
|
70260
|
+
addonId: null,
|
|
70261
|
+
access: "view"
|
|
70262
|
+
},
|
|
70187
70263
|
"deviceHistory.listSeries": {
|
|
70188
70264
|
capName: "device-history",
|
|
70189
70265
|
capScope: "system",
|
|
@@ -80189,7 +80265,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
80189
80265
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
80190
80266
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
80191
80267
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
80192
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
80268
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
80193
80269
|
([...RULE_TEXT], [...TANK]),
|
|
80194
80270
|
[...RULE_TEXT],
|
|
80195
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",
|