@camstack/addon-waste-collections 0.1.23 → 0.1.25
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/waste-collections.addon.js +151 -89
- package/dist/waste-collections.addon.mjs +151 -89
- package/package.json +1 -1
|
@@ -5571,7 +5571,7 @@ var ZodIssueCode = {
|
|
|
5571
5571
|
var ZodFirstPartyTypeKind;
|
|
5572
5572
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5573
5573
|
//#endregion
|
|
5574
|
-
//#region ../types/dist/sleep-
|
|
5574
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5575
5575
|
/**
|
|
5576
5576
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5577
5577
|
* window to float samples (D455).
|
|
@@ -8661,7 +8661,11 @@ var ContributionSectionSchema = object({
|
|
|
8661
8661
|
literal(4)
|
|
8662
8662
|
]).optional(),
|
|
8663
8663
|
tab: string().optional(),
|
|
8664
|
-
location: _enum([
|
|
8664
|
+
location: _enum([
|
|
8665
|
+
"settings",
|
|
8666
|
+
"top-tab",
|
|
8667
|
+
"hero"
|
|
8668
|
+
]).optional(),
|
|
8665
8669
|
order: number().optional(),
|
|
8666
8670
|
fields: array(any())
|
|
8667
8671
|
});
|
|
@@ -13602,7 +13606,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13602
13606
|
literal(4)
|
|
13603
13607
|
]).optional(),
|
|
13604
13608
|
tab: string().optional(),
|
|
13605
|
-
location: _enum([
|
|
13609
|
+
location: _enum([
|
|
13610
|
+
"settings",
|
|
13611
|
+
"top-tab",
|
|
13612
|
+
"hero"
|
|
13613
|
+
]).optional(),
|
|
13606
13614
|
order: number().optional(),
|
|
13607
13615
|
fields: array(any())
|
|
13608
13616
|
});
|
|
@@ -17376,6 +17384,52 @@ var TierStatusSchema = object({
|
|
|
17376
17384
|
countedAt: number().nullable()
|
|
17377
17385
|
});
|
|
17378
17386
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17387
|
+
/**
|
|
17388
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17389
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17390
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17391
|
+
*/
|
|
17392
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17393
|
+
/** Rows held per stored tier. */
|
|
17394
|
+
var TierRowsSchema = object({
|
|
17395
|
+
raw: number().int(),
|
|
17396
|
+
"5m": number().int(),
|
|
17397
|
+
"1h": number().int(),
|
|
17398
|
+
"1d": number().int()
|
|
17399
|
+
});
|
|
17400
|
+
var OrphanSeriesSchema = object({
|
|
17401
|
+
seriesId: number().int(),
|
|
17402
|
+
deviceId: number().int(),
|
|
17403
|
+
key: string(),
|
|
17404
|
+
scope: string(),
|
|
17405
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17406
|
+
displayName: string().nullable(),
|
|
17407
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17408
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17409
|
+
missingSince: number().nullable(),
|
|
17410
|
+
firstTs: number(),
|
|
17411
|
+
lastTs: number(),
|
|
17412
|
+
rows: TierRowsSchema
|
|
17413
|
+
});
|
|
17414
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17415
|
+
"not-found",
|
|
17416
|
+
"not-orphan",
|
|
17417
|
+
"failed"
|
|
17418
|
+
]);
|
|
17419
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17420
|
+
seriesId: number().int(),
|
|
17421
|
+
ok: literal(true),
|
|
17422
|
+
deleted: TierRowsSchema
|
|
17423
|
+
}), object({
|
|
17424
|
+
seriesId: number().int(),
|
|
17425
|
+
ok: literal(false),
|
|
17426
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17427
|
+
})]);
|
|
17428
|
+
var OrphanListSchema = object({
|
|
17429
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17430
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17431
|
+
truncated: boolean()
|
|
17432
|
+
});
|
|
17379
17433
|
var DeviceHistoryStatusSchema = object({
|
|
17380
17434
|
startedAt: number(),
|
|
17381
17435
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17473,7 +17527,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17473
17527
|
}), object({ enabled: boolean() }), {
|
|
17474
17528
|
kind: "mutation",
|
|
17475
17529
|
auth: "admin"
|
|
17476
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17530
|
+
}), 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() }), {
|
|
17531
|
+
kind: "mutation",
|
|
17532
|
+
auth: "admin"
|
|
17533
|
+
});
|
|
17477
17534
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17478
17535
|
object({ state: literal("absent") }),
|
|
17479
17536
|
object({
|
|
@@ -47948,7 +48005,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
47948
48005
|
modelId: string()
|
|
47949
48006
|
}),
|
|
47950
48007
|
object({ kind: literal("cpu-device") }),
|
|
47951
|
-
object({ kind: literal("coral-untouched") }),
|
|
47952
48008
|
object({ kind: literal("device-disabled") }),
|
|
47953
48009
|
object({ kind: literal("device-unavailable") }),
|
|
47954
48010
|
object({ kind: literal("node-offline") }),
|
|
@@ -48046,11 +48102,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
48046
48102
|
kind: literal("detector-store-unreadable"),
|
|
48047
48103
|
error: string()
|
|
48048
48104
|
}),
|
|
48049
|
-
object({
|
|
48050
|
-
kind: literal("coral-enabled"),
|
|
48051
|
-
nodeId: string(),
|
|
48052
|
-
deviceKey: string()
|
|
48053
|
-
}),
|
|
48054
48105
|
object({
|
|
48055
48106
|
kind: literal("custom-pin-kept"),
|
|
48056
48107
|
nodeId: string(),
|
|
@@ -54498,17 +54549,69 @@ object({
|
|
|
54498
54549
|
});
|
|
54499
54550
|
DeviceType.Sensor;
|
|
54500
54551
|
/**
|
|
54501
|
-
* Generic device-consumables capability —
|
|
54502
|
-
*
|
|
54503
|
-
* descaling cycles,
|
|
54504
|
-
*
|
|
54505
|
-
*
|
|
54506
|
-
*
|
|
54552
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
54553
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
54554
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
54555
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
54556
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
54557
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
54558
|
+
* its device tracks consumables registers it; the provider names each item
|
|
54559
|
+
* verbatim and says which `kind` it is.
|
|
54560
|
+
*
|
|
54561
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
54562
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
54563
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
54507
54564
|
*
|
|
54508
54565
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
54509
54566
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
54510
54567
|
* "No consumables reported" placeholder when `items` is empty.
|
|
54511
54568
|
*/
|
|
54569
|
+
/**
|
|
54570
|
+
* What an item IS, which decides which direction is bad:
|
|
54571
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
54572
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
54573
|
+
* salt, rinse aid); low or empty is bad.
|
|
54574
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
54575
|
+
* bad.
|
|
54576
|
+
* Absent = `wear`.
|
|
54577
|
+
*/
|
|
54578
|
+
var ConsumableKindSchema = _enum([
|
|
54579
|
+
"wear",
|
|
54580
|
+
"supply",
|
|
54581
|
+
"waste"
|
|
54582
|
+
]);
|
|
54583
|
+
/**
|
|
54584
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
54585
|
+
* of `kind`, which decides which direction is bad:
|
|
54586
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
54587
|
+
* remaining time and a reset.
|
|
54588
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
54589
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
54590
|
+
* a stepped level and "refill".
|
|
54591
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
54592
|
+
* that warns when full.
|
|
54593
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
54594
|
+
*/
|
|
54595
|
+
var ConsumableFormSchema = _enum([
|
|
54596
|
+
"part",
|
|
54597
|
+
"tank",
|
|
54598
|
+
"product",
|
|
54599
|
+
"bin"
|
|
54600
|
+
]);
|
|
54601
|
+
/** The provider's own discrete verdict on an item. */
|
|
54602
|
+
var ConsumableStatusSchema = _enum([
|
|
54603
|
+
"ok",
|
|
54604
|
+
"low",
|
|
54605
|
+
"empty",
|
|
54606
|
+
"full",
|
|
54607
|
+
"replace"
|
|
54608
|
+
]);
|
|
54609
|
+
_enum([
|
|
54610
|
+
"ok",
|
|
54611
|
+
"low",
|
|
54612
|
+
"empty",
|
|
54613
|
+
"full"
|
|
54614
|
+
]);
|
|
54512
54615
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
54513
54616
|
* each. */
|
|
54514
54617
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -54528,10 +54631,14 @@ var ConsumablesStatusSchema = object({
|
|
|
54528
54631
|
key: string().min(1),
|
|
54529
54632
|
/** Display name. */
|
|
54530
54633
|
label: string().min(1),
|
|
54531
|
-
/** Remaining life % when known (0..100). */
|
|
54634
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
54532
54635
|
level: number().min(0).max(100).nullable(),
|
|
54533
|
-
/**
|
|
54534
|
-
status:
|
|
54636
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
54637
|
+
status: ConsumableStatusSchema.nullable(),
|
|
54638
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
54639
|
+
kind: ConsumableKindSchema.optional(),
|
|
54640
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
54641
|
+
form: ConsumableFormSchema.optional(),
|
|
54535
54642
|
/** Ms epoch of the last replace, when known. */
|
|
54536
54643
|
lastResetAt: number().nullable(),
|
|
54537
54644
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -54766,8 +54873,9 @@ object({
|
|
|
54766
54873
|
status: DeviceStatusSchema
|
|
54767
54874
|
});
|
|
54768
54875
|
/**
|
|
54769
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
54770
|
-
*
|
|
54876
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
54877
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
54878
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
54771
54879
|
*
|
|
54772
54880
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
54773
54881
|
* by any integration that exposes the same program / option surface.
|
|
@@ -54815,11 +54923,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
54815
54923
|
"offline",
|
|
54816
54924
|
"description-missing"
|
|
54817
54925
|
]);
|
|
54818
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
54819
|
-
"ok",
|
|
54820
|
-
"low",
|
|
54821
|
-
"empty"
|
|
54822
|
-
]);
|
|
54823
54926
|
object({
|
|
54824
54927
|
availability: DishwasherAvailabilitySchema,
|
|
54825
54928
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -54852,8 +54955,6 @@ object({
|
|
|
54852
54955
|
powerOn: boolean().nullable(),
|
|
54853
54956
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
54854
54957
|
powerState: string().nullable(),
|
|
54855
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54856
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54857
54958
|
/**
|
|
54858
54959
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54859
54960
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -61636,60 +61737,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61636
61737
|
auth: "admin",
|
|
61637
61738
|
access: "delete"
|
|
61638
61739
|
});
|
|
61639
|
-
/**
|
|
61640
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
61641
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
61642
|
-
* optional fan-speed selector.
|
|
61643
|
-
*
|
|
61644
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
61645
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
61646
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
61647
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
61648
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
61649
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
61650
|
-
*
|
|
61651
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
61652
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
61653
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
61654
|
-
*
|
|
61655
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
61656
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
61657
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
61658
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
61659
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
61660
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
61661
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
61662
|
-
* so the HA provider leaves all four `null`.
|
|
61663
|
-
*/
|
|
61664
|
-
var VacuumStateSchema = _enum([
|
|
61665
|
-
"idle",
|
|
61666
|
-
"cleaning",
|
|
61667
|
-
"paused",
|
|
61668
|
-
"returning",
|
|
61669
|
-
"docked",
|
|
61670
|
-
"drying",
|
|
61671
|
-
"error"
|
|
61672
|
-
]);
|
|
61673
|
-
/**
|
|
61674
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
61675
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
61676
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
61677
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
61678
|
-
* hardware has no such tank at all.
|
|
61679
|
-
*/
|
|
61680
|
-
var TankStatusSchema = object({
|
|
61681
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
61682
|
-
level: number().min(0).max(100).nullable(),
|
|
61683
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
61684
|
-
status: _enum([
|
|
61685
|
-
"ok",
|
|
61686
|
-
"low",
|
|
61687
|
-
"full"
|
|
61688
|
-
]).nullable()
|
|
61689
|
-
});
|
|
61690
61740
|
object({
|
|
61691
61741
|
/** Lifecycle state of the vacuum. */
|
|
61692
|
-
state:
|
|
61742
|
+
state: _enum([
|
|
61743
|
+
"idle",
|
|
61744
|
+
"cleaning",
|
|
61745
|
+
"paused",
|
|
61746
|
+
"returning",
|
|
61747
|
+
"docked",
|
|
61748
|
+
"drying",
|
|
61749
|
+
"error"
|
|
61750
|
+
]),
|
|
61693
61751
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
61694
61752
|
* reading. */
|
|
61695
61753
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -61698,14 +61756,6 @@ object({
|
|
|
61698
61756
|
fanSpeed: string().nullable(),
|
|
61699
61757
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
61700
61758
|
availableFanSpeeds: array(string()),
|
|
61701
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
61702
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
61703
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
61704
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
61705
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
61706
|
-
detergent: TankStatusSchema.nullable(),
|
|
61707
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
61708
|
-
dustBin: TankStatusSchema.nullable(),
|
|
61709
61759
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
61710
61760
|
progressPercent: number().min(0).max(100).nullable(),
|
|
61711
61761
|
/** Current error code (0 / null = no error). */
|
|
@@ -64246,6 +64296,12 @@ Object.freeze({
|
|
|
64246
64296
|
addonId: null,
|
|
64247
64297
|
access: "create"
|
|
64248
64298
|
},
|
|
64299
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
64300
|
+
capName: "device-history",
|
|
64301
|
+
capScope: "system",
|
|
64302
|
+
addonId: null,
|
|
64303
|
+
access: "delete"
|
|
64304
|
+
},
|
|
64249
64305
|
"deviceHistory.getDeviceEnabled": {
|
|
64250
64306
|
capName: "device-history",
|
|
64251
64307
|
capScope: "system",
|
|
@@ -64264,6 +64320,12 @@ Object.freeze({
|
|
|
64264
64320
|
addonId: null,
|
|
64265
64321
|
access: "view"
|
|
64266
64322
|
},
|
|
64323
|
+
"deviceHistory.listOrphanSeries": {
|
|
64324
|
+
capName: "device-history",
|
|
64325
|
+
capScope: "system",
|
|
64326
|
+
addonId: null,
|
|
64327
|
+
access: "view"
|
|
64328
|
+
},
|
|
64267
64329
|
"deviceHistory.listSeries": {
|
|
64268
64330
|
capName: "device-history",
|
|
64269
64331
|
capScope: "system",
|
|
@@ -74269,7 +74331,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
74269
74331
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
74270
74332
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
74271
74333
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
74272
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
74334
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
74273
74335
|
([...RULE_TEXT], [...TANK]),
|
|
74274
74336
|
[...RULE_TEXT],
|
|
74275
74337
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
@@ -5567,7 +5567,7 @@ var ZodIssueCode = {
|
|
|
5567
5567
|
var ZodFirstPartyTypeKind;
|
|
5568
5568
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5569
5569
|
//#endregion
|
|
5570
|
-
//#region ../types/dist/sleep-
|
|
5570
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5571
5571
|
/**
|
|
5572
5572
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5573
5573
|
* window to float samples (D455).
|
|
@@ -8657,7 +8657,11 @@ var ContributionSectionSchema = object({
|
|
|
8657
8657
|
literal(4)
|
|
8658
8658
|
]).optional(),
|
|
8659
8659
|
tab: string().optional(),
|
|
8660
|
-
location: _enum([
|
|
8660
|
+
location: _enum([
|
|
8661
|
+
"settings",
|
|
8662
|
+
"top-tab",
|
|
8663
|
+
"hero"
|
|
8664
|
+
]).optional(),
|
|
8661
8665
|
order: number().optional(),
|
|
8662
8666
|
fields: array(any())
|
|
8663
8667
|
});
|
|
@@ -13598,7 +13602,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13598
13602
|
literal(4)
|
|
13599
13603
|
]).optional(),
|
|
13600
13604
|
tab: string().optional(),
|
|
13601
|
-
location: _enum([
|
|
13605
|
+
location: _enum([
|
|
13606
|
+
"settings",
|
|
13607
|
+
"top-tab",
|
|
13608
|
+
"hero"
|
|
13609
|
+
]).optional(),
|
|
13602
13610
|
order: number().optional(),
|
|
13603
13611
|
fields: array(any())
|
|
13604
13612
|
});
|
|
@@ -17372,6 +17380,52 @@ var TierStatusSchema = object({
|
|
|
17372
17380
|
countedAt: number().nullable()
|
|
17373
17381
|
});
|
|
17374
17382
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17383
|
+
/**
|
|
17384
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17385
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17386
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17387
|
+
*/
|
|
17388
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17389
|
+
/** Rows held per stored tier. */
|
|
17390
|
+
var TierRowsSchema = object({
|
|
17391
|
+
raw: number().int(),
|
|
17392
|
+
"5m": number().int(),
|
|
17393
|
+
"1h": number().int(),
|
|
17394
|
+
"1d": number().int()
|
|
17395
|
+
});
|
|
17396
|
+
var OrphanSeriesSchema = object({
|
|
17397
|
+
seriesId: number().int(),
|
|
17398
|
+
deviceId: number().int(),
|
|
17399
|
+
key: string(),
|
|
17400
|
+
scope: string(),
|
|
17401
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17402
|
+
displayName: string().nullable(),
|
|
17403
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17404
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17405
|
+
missingSince: number().nullable(),
|
|
17406
|
+
firstTs: number(),
|
|
17407
|
+
lastTs: number(),
|
|
17408
|
+
rows: TierRowsSchema
|
|
17409
|
+
});
|
|
17410
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17411
|
+
"not-found",
|
|
17412
|
+
"not-orphan",
|
|
17413
|
+
"failed"
|
|
17414
|
+
]);
|
|
17415
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17416
|
+
seriesId: number().int(),
|
|
17417
|
+
ok: literal(true),
|
|
17418
|
+
deleted: TierRowsSchema
|
|
17419
|
+
}), object({
|
|
17420
|
+
seriesId: number().int(),
|
|
17421
|
+
ok: literal(false),
|
|
17422
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17423
|
+
})]);
|
|
17424
|
+
var OrphanListSchema = object({
|
|
17425
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17426
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17427
|
+
truncated: boolean()
|
|
17428
|
+
});
|
|
17375
17429
|
var DeviceHistoryStatusSchema = object({
|
|
17376
17430
|
startedAt: number(),
|
|
17377
17431
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17469,7 +17523,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17469
17523
|
}), object({ enabled: boolean() }), {
|
|
17470
17524
|
kind: "mutation",
|
|
17471
17525
|
auth: "admin"
|
|
17472
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17526
|
+
}), 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() }), {
|
|
17527
|
+
kind: "mutation",
|
|
17528
|
+
auth: "admin"
|
|
17529
|
+
});
|
|
17473
17530
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17474
17531
|
object({ state: literal("absent") }),
|
|
17475
17532
|
object({
|
|
@@ -47944,7 +48001,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
47944
48001
|
modelId: string()
|
|
47945
48002
|
}),
|
|
47946
48003
|
object({ kind: literal("cpu-device") }),
|
|
47947
|
-
object({ kind: literal("coral-untouched") }),
|
|
47948
48004
|
object({ kind: literal("device-disabled") }),
|
|
47949
48005
|
object({ kind: literal("device-unavailable") }),
|
|
47950
48006
|
object({ kind: literal("node-offline") }),
|
|
@@ -48042,11 +48098,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
48042
48098
|
kind: literal("detector-store-unreadable"),
|
|
48043
48099
|
error: string()
|
|
48044
48100
|
}),
|
|
48045
|
-
object({
|
|
48046
|
-
kind: literal("coral-enabled"),
|
|
48047
|
-
nodeId: string(),
|
|
48048
|
-
deviceKey: string()
|
|
48049
|
-
}),
|
|
48050
48101
|
object({
|
|
48051
48102
|
kind: literal("custom-pin-kept"),
|
|
48052
48103
|
nodeId: string(),
|
|
@@ -54494,17 +54545,69 @@ object({
|
|
|
54494
54545
|
});
|
|
54495
54546
|
DeviceType.Sensor;
|
|
54496
54547
|
/**
|
|
54497
|
-
* Generic device-consumables capability —
|
|
54498
|
-
*
|
|
54499
|
-
* descaling cycles,
|
|
54500
|
-
*
|
|
54501
|
-
*
|
|
54502
|
-
*
|
|
54548
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
54549
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
54550
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
54551
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
54552
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
54553
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
54554
|
+
* its device tracks consumables registers it; the provider names each item
|
|
54555
|
+
* verbatim and says which `kind` it is.
|
|
54556
|
+
*
|
|
54557
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
54558
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
54559
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
54503
54560
|
*
|
|
54504
54561
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
54505
54562
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
54506
54563
|
* "No consumables reported" placeholder when `items` is empty.
|
|
54507
54564
|
*/
|
|
54565
|
+
/**
|
|
54566
|
+
* What an item IS, which decides which direction is bad:
|
|
54567
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
54568
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
54569
|
+
* salt, rinse aid); low or empty is bad.
|
|
54570
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
54571
|
+
* bad.
|
|
54572
|
+
* Absent = `wear`.
|
|
54573
|
+
*/
|
|
54574
|
+
var ConsumableKindSchema = _enum([
|
|
54575
|
+
"wear",
|
|
54576
|
+
"supply",
|
|
54577
|
+
"waste"
|
|
54578
|
+
]);
|
|
54579
|
+
/**
|
|
54580
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
54581
|
+
* of `kind`, which decides which direction is bad:
|
|
54582
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
54583
|
+
* remaining time and a reset.
|
|
54584
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
54585
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
54586
|
+
* a stepped level and "refill".
|
|
54587
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
54588
|
+
* that warns when full.
|
|
54589
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
54590
|
+
*/
|
|
54591
|
+
var ConsumableFormSchema = _enum([
|
|
54592
|
+
"part",
|
|
54593
|
+
"tank",
|
|
54594
|
+
"product",
|
|
54595
|
+
"bin"
|
|
54596
|
+
]);
|
|
54597
|
+
/** The provider's own discrete verdict on an item. */
|
|
54598
|
+
var ConsumableStatusSchema = _enum([
|
|
54599
|
+
"ok",
|
|
54600
|
+
"low",
|
|
54601
|
+
"empty",
|
|
54602
|
+
"full",
|
|
54603
|
+
"replace"
|
|
54604
|
+
]);
|
|
54605
|
+
_enum([
|
|
54606
|
+
"ok",
|
|
54607
|
+
"low",
|
|
54608
|
+
"empty",
|
|
54609
|
+
"full"
|
|
54610
|
+
]);
|
|
54508
54611
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
54509
54612
|
* each. */
|
|
54510
54613
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -54524,10 +54627,14 @@ var ConsumablesStatusSchema = object({
|
|
|
54524
54627
|
key: string().min(1),
|
|
54525
54628
|
/** Display name. */
|
|
54526
54629
|
label: string().min(1),
|
|
54527
|
-
/** Remaining life % when known (0..100). */
|
|
54630
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
54528
54631
|
level: number().min(0).max(100).nullable(),
|
|
54529
|
-
/**
|
|
54530
|
-
status:
|
|
54632
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
54633
|
+
status: ConsumableStatusSchema.nullable(),
|
|
54634
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
54635
|
+
kind: ConsumableKindSchema.optional(),
|
|
54636
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
54637
|
+
form: ConsumableFormSchema.optional(),
|
|
54531
54638
|
/** Ms epoch of the last replace, when known. */
|
|
54532
54639
|
lastResetAt: number().nullable(),
|
|
54533
54640
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -54762,8 +54869,9 @@ object({
|
|
|
54762
54869
|
status: DeviceStatusSchema
|
|
54763
54870
|
});
|
|
54764
54871
|
/**
|
|
54765
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
54766
|
-
*
|
|
54872
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
54873
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
54874
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
54767
54875
|
*
|
|
54768
54876
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
54769
54877
|
* by any integration that exposes the same program / option surface.
|
|
@@ -54811,11 +54919,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
54811
54919
|
"offline",
|
|
54812
54920
|
"description-missing"
|
|
54813
54921
|
]);
|
|
54814
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
54815
|
-
"ok",
|
|
54816
|
-
"low",
|
|
54817
|
-
"empty"
|
|
54818
|
-
]);
|
|
54819
54922
|
object({
|
|
54820
54923
|
availability: DishwasherAvailabilitySchema,
|
|
54821
54924
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -54848,8 +54951,6 @@ object({
|
|
|
54848
54951
|
powerOn: boolean().nullable(),
|
|
54849
54952
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
54850
54953
|
powerState: string().nullable(),
|
|
54851
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54852
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54853
54954
|
/**
|
|
54854
54955
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54855
54956
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -61632,60 +61733,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61632
61733
|
auth: "admin",
|
|
61633
61734
|
access: "delete"
|
|
61634
61735
|
});
|
|
61635
|
-
/**
|
|
61636
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
61637
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
61638
|
-
* optional fan-speed selector.
|
|
61639
|
-
*
|
|
61640
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
61641
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
61642
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
61643
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
61644
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
61645
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
61646
|
-
*
|
|
61647
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
61648
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
61649
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
61650
|
-
*
|
|
61651
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
61652
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
61653
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
61654
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
61655
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
61656
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
61657
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
61658
|
-
* so the HA provider leaves all four `null`.
|
|
61659
|
-
*/
|
|
61660
|
-
var VacuumStateSchema = _enum([
|
|
61661
|
-
"idle",
|
|
61662
|
-
"cleaning",
|
|
61663
|
-
"paused",
|
|
61664
|
-
"returning",
|
|
61665
|
-
"docked",
|
|
61666
|
-
"drying",
|
|
61667
|
-
"error"
|
|
61668
|
-
]);
|
|
61669
|
-
/**
|
|
61670
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
61671
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
61672
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
61673
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
61674
|
-
* hardware has no such tank at all.
|
|
61675
|
-
*/
|
|
61676
|
-
var TankStatusSchema = object({
|
|
61677
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
61678
|
-
level: number().min(0).max(100).nullable(),
|
|
61679
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
61680
|
-
status: _enum([
|
|
61681
|
-
"ok",
|
|
61682
|
-
"low",
|
|
61683
|
-
"full"
|
|
61684
|
-
]).nullable()
|
|
61685
|
-
});
|
|
61686
61736
|
object({
|
|
61687
61737
|
/** Lifecycle state of the vacuum. */
|
|
61688
|
-
state:
|
|
61738
|
+
state: _enum([
|
|
61739
|
+
"idle",
|
|
61740
|
+
"cleaning",
|
|
61741
|
+
"paused",
|
|
61742
|
+
"returning",
|
|
61743
|
+
"docked",
|
|
61744
|
+
"drying",
|
|
61745
|
+
"error"
|
|
61746
|
+
]),
|
|
61689
61747
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
61690
61748
|
* reading. */
|
|
61691
61749
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -61694,14 +61752,6 @@ object({
|
|
|
61694
61752
|
fanSpeed: string().nullable(),
|
|
61695
61753
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
61696
61754
|
availableFanSpeeds: array(string()),
|
|
61697
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
61698
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
61699
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
61700
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
61701
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
61702
|
-
detergent: TankStatusSchema.nullable(),
|
|
61703
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
61704
|
-
dustBin: TankStatusSchema.nullable(),
|
|
61705
61755
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
61706
61756
|
progressPercent: number().min(0).max(100).nullable(),
|
|
61707
61757
|
/** Current error code (0 / null = no error). */
|
|
@@ -64242,6 +64292,12 @@ Object.freeze({
|
|
|
64242
64292
|
addonId: null,
|
|
64243
64293
|
access: "create"
|
|
64244
64294
|
},
|
|
64295
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
64296
|
+
capName: "device-history",
|
|
64297
|
+
capScope: "system",
|
|
64298
|
+
addonId: null,
|
|
64299
|
+
access: "delete"
|
|
64300
|
+
},
|
|
64245
64301
|
"deviceHistory.getDeviceEnabled": {
|
|
64246
64302
|
capName: "device-history",
|
|
64247
64303
|
capScope: "system",
|
|
@@ -64260,6 +64316,12 @@ Object.freeze({
|
|
|
64260
64316
|
addonId: null,
|
|
64261
64317
|
access: "view"
|
|
64262
64318
|
},
|
|
64319
|
+
"deviceHistory.listOrphanSeries": {
|
|
64320
|
+
capName: "device-history",
|
|
64321
|
+
capScope: "system",
|
|
64322
|
+
addonId: null,
|
|
64323
|
+
access: "view"
|
|
64324
|
+
},
|
|
64263
64325
|
"deviceHistory.listSeries": {
|
|
64264
64326
|
capName: "device-history",
|
|
64265
64327
|
capScope: "system",
|
|
@@ -74265,7 +74327,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
74265
74327
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
74266
74328
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
74267
74329
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
74268
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
74330
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
74269
74331
|
([...RULE_TEXT], [...TANK]),
|
|
74270
74332
|
[...RULE_TEXT],
|
|
74271
74333
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-waste-collections",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "Waste collection schedules via the vendored HACS waste_collection_schedule Python core — full source catalog as calendar-source.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|