@camstack/addon-export-hap 1.2.174 → 1.2.176
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/hap-export.addon.js +151 -89
- package/dist/hap-export.addon.mjs +151 -89
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -5481,7 +5481,7 @@ var ZodIssueCode = {
|
|
|
5481
5481
|
var ZodFirstPartyTypeKind;
|
|
5482
5482
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5483
5483
|
//#endregion
|
|
5484
|
-
//#region ../types/dist/sleep-
|
|
5484
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5485
5485
|
/**
|
|
5486
5486
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5487
5487
|
* window to float samples (D455).
|
|
@@ -8365,7 +8365,11 @@ var ContributionSectionSchema = object({
|
|
|
8365
8365
|
literal(4)
|
|
8366
8366
|
]).optional(),
|
|
8367
8367
|
tab: string().optional(),
|
|
8368
|
-
location: _enum([
|
|
8368
|
+
location: _enum([
|
|
8369
|
+
"settings",
|
|
8370
|
+
"top-tab",
|
|
8371
|
+
"hero"
|
|
8372
|
+
]).optional(),
|
|
8369
8373
|
order: number().optional(),
|
|
8370
8374
|
fields: array(any())
|
|
8371
8375
|
});
|
|
@@ -14113,7 +14117,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
14113
14117
|
literal(4)
|
|
14114
14118
|
]).optional(),
|
|
14115
14119
|
tab: string().optional(),
|
|
14116
|
-
location: _enum([
|
|
14120
|
+
location: _enum([
|
|
14121
|
+
"settings",
|
|
14122
|
+
"top-tab",
|
|
14123
|
+
"hero"
|
|
14124
|
+
]).optional(),
|
|
14117
14125
|
order: number().optional(),
|
|
14118
14126
|
fields: array(any())
|
|
14119
14127
|
});
|
|
@@ -17887,6 +17895,52 @@ var TierStatusSchema = object({
|
|
|
17887
17895
|
countedAt: number().nullable()
|
|
17888
17896
|
});
|
|
17889
17897
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17898
|
+
/**
|
|
17899
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17900
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17901
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17902
|
+
*/
|
|
17903
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17904
|
+
/** Rows held per stored tier. */
|
|
17905
|
+
var TierRowsSchema = object({
|
|
17906
|
+
raw: number().int(),
|
|
17907
|
+
"5m": number().int(),
|
|
17908
|
+
"1h": number().int(),
|
|
17909
|
+
"1d": number().int()
|
|
17910
|
+
});
|
|
17911
|
+
var OrphanSeriesSchema = object({
|
|
17912
|
+
seriesId: number().int(),
|
|
17913
|
+
deviceId: number().int(),
|
|
17914
|
+
key: string(),
|
|
17915
|
+
scope: string(),
|
|
17916
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17917
|
+
displayName: string().nullable(),
|
|
17918
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17919
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17920
|
+
missingSince: number().nullable(),
|
|
17921
|
+
firstTs: number(),
|
|
17922
|
+
lastTs: number(),
|
|
17923
|
+
rows: TierRowsSchema
|
|
17924
|
+
});
|
|
17925
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17926
|
+
"not-found",
|
|
17927
|
+
"not-orphan",
|
|
17928
|
+
"failed"
|
|
17929
|
+
]);
|
|
17930
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17931
|
+
seriesId: number().int(),
|
|
17932
|
+
ok: literal(true),
|
|
17933
|
+
deleted: TierRowsSchema
|
|
17934
|
+
}), object({
|
|
17935
|
+
seriesId: number().int(),
|
|
17936
|
+
ok: literal(false),
|
|
17937
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17938
|
+
})]);
|
|
17939
|
+
var OrphanListSchema = object({
|
|
17940
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17941
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17942
|
+
truncated: boolean()
|
|
17943
|
+
});
|
|
17890
17944
|
var DeviceHistoryStatusSchema = object({
|
|
17891
17945
|
startedAt: number(),
|
|
17892
17946
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17984,7 +18038,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17984
18038
|
}), object({ enabled: boolean() }), {
|
|
17985
18039
|
kind: "mutation",
|
|
17986
18040
|
auth: "admin"
|
|
17987
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
18041
|
+
}), 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() }), {
|
|
18042
|
+
kind: "mutation",
|
|
18043
|
+
auth: "admin"
|
|
18044
|
+
});
|
|
17988
18045
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17989
18046
|
object({ state: literal("absent") }),
|
|
17990
18047
|
object({
|
|
@@ -48540,7 +48597,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
48540
48597
|
modelId: string()
|
|
48541
48598
|
}),
|
|
48542
48599
|
object({ kind: literal("cpu-device") }),
|
|
48543
|
-
object({ kind: literal("coral-untouched") }),
|
|
48544
48600
|
object({ kind: literal("device-disabled") }),
|
|
48545
48601
|
object({ kind: literal("device-unavailable") }),
|
|
48546
48602
|
object({ kind: literal("node-offline") }),
|
|
@@ -48638,11 +48694,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
48638
48694
|
kind: literal("detector-store-unreadable"),
|
|
48639
48695
|
error: string()
|
|
48640
48696
|
}),
|
|
48641
|
-
object({
|
|
48642
|
-
kind: literal("coral-enabled"),
|
|
48643
|
-
nodeId: string(),
|
|
48644
|
-
deviceKey: string()
|
|
48645
|
-
}),
|
|
48646
48697
|
object({
|
|
48647
48698
|
kind: literal("custom-pin-kept"),
|
|
48648
48699
|
nodeId: string(),
|
|
@@ -55281,17 +55332,69 @@ object({
|
|
|
55281
55332
|
});
|
|
55282
55333
|
DeviceType.Sensor;
|
|
55283
55334
|
/**
|
|
55284
|
-
* Generic device-consumables capability —
|
|
55285
|
-
*
|
|
55286
|
-
* descaling cycles,
|
|
55287
|
-
*
|
|
55288
|
-
*
|
|
55289
|
-
*
|
|
55335
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
55336
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
55337
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
55338
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
55339
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
55340
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
55341
|
+
* its device tracks consumables registers it; the provider names each item
|
|
55342
|
+
* verbatim and says which `kind` it is.
|
|
55343
|
+
*
|
|
55344
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
55345
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
55346
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
55290
55347
|
*
|
|
55291
55348
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
55292
55349
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
55293
55350
|
* "No consumables reported" placeholder when `items` is empty.
|
|
55294
55351
|
*/
|
|
55352
|
+
/**
|
|
55353
|
+
* What an item IS, which decides which direction is bad:
|
|
55354
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
55355
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
55356
|
+
* salt, rinse aid); low or empty is bad.
|
|
55357
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
55358
|
+
* bad.
|
|
55359
|
+
* Absent = `wear`.
|
|
55360
|
+
*/
|
|
55361
|
+
var ConsumableKindSchema = _enum([
|
|
55362
|
+
"wear",
|
|
55363
|
+
"supply",
|
|
55364
|
+
"waste"
|
|
55365
|
+
]);
|
|
55366
|
+
/**
|
|
55367
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
55368
|
+
* of `kind`, which decides which direction is bad:
|
|
55369
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
55370
|
+
* remaining time and a reset.
|
|
55371
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
55372
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
55373
|
+
* a stepped level and "refill".
|
|
55374
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
55375
|
+
* that warns when full.
|
|
55376
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
55377
|
+
*/
|
|
55378
|
+
var ConsumableFormSchema = _enum([
|
|
55379
|
+
"part",
|
|
55380
|
+
"tank",
|
|
55381
|
+
"product",
|
|
55382
|
+
"bin"
|
|
55383
|
+
]);
|
|
55384
|
+
/** The provider's own discrete verdict on an item. */
|
|
55385
|
+
var ConsumableStatusSchema = _enum([
|
|
55386
|
+
"ok",
|
|
55387
|
+
"low",
|
|
55388
|
+
"empty",
|
|
55389
|
+
"full",
|
|
55390
|
+
"replace"
|
|
55391
|
+
]);
|
|
55392
|
+
_enum([
|
|
55393
|
+
"ok",
|
|
55394
|
+
"low",
|
|
55395
|
+
"empty",
|
|
55396
|
+
"full"
|
|
55397
|
+
]);
|
|
55295
55398
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
55296
55399
|
* each. */
|
|
55297
55400
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -55311,10 +55414,14 @@ var ConsumablesStatusSchema = object({
|
|
|
55311
55414
|
key: string().min(1),
|
|
55312
55415
|
/** Display name. */
|
|
55313
55416
|
label: string().min(1),
|
|
55314
|
-
/** Remaining life % when known (0..100). */
|
|
55417
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
55315
55418
|
level: number().min(0).max(100).nullable(),
|
|
55316
|
-
/**
|
|
55317
|
-
status:
|
|
55419
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
55420
|
+
status: ConsumableStatusSchema.nullable(),
|
|
55421
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
55422
|
+
kind: ConsumableKindSchema.optional(),
|
|
55423
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
55424
|
+
form: ConsumableFormSchema.optional(),
|
|
55318
55425
|
/** Ms epoch of the last replace, when known. */
|
|
55319
55426
|
lastResetAt: number().nullable(),
|
|
55320
55427
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -55561,8 +55668,9 @@ object({
|
|
|
55561
55668
|
status: DeviceStatusSchema
|
|
55562
55669
|
});
|
|
55563
55670
|
/**
|
|
55564
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
55565
|
-
*
|
|
55671
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
55672
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
55673
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
55566
55674
|
*
|
|
55567
55675
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
55568
55676
|
* by any integration that exposes the same program / option surface.
|
|
@@ -55610,11 +55718,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
55610
55718
|
"offline",
|
|
55611
55719
|
"description-missing"
|
|
55612
55720
|
]);
|
|
55613
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
55614
|
-
"ok",
|
|
55615
|
-
"low",
|
|
55616
|
-
"empty"
|
|
55617
|
-
]);
|
|
55618
55721
|
object({
|
|
55619
55722
|
availability: DishwasherAvailabilitySchema,
|
|
55620
55723
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -55647,8 +55750,6 @@ object({
|
|
|
55647
55750
|
powerOn: boolean().nullable(),
|
|
55648
55751
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
55649
55752
|
powerState: string().nullable(),
|
|
55650
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55651
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55652
55753
|
/**
|
|
55653
55754
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
55654
55755
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -62472,60 +62573,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
62472
62573
|
auth: "admin",
|
|
62473
62574
|
access: "delete"
|
|
62474
62575
|
});
|
|
62475
|
-
/**
|
|
62476
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
62477
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
62478
|
-
* optional fan-speed selector.
|
|
62479
|
-
*
|
|
62480
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
62481
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
62482
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
62483
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
62484
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
62485
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
62486
|
-
*
|
|
62487
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
62488
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
62489
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
62490
|
-
*
|
|
62491
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
62492
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
62493
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
62494
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
62495
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
62496
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
62497
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
62498
|
-
* so the HA provider leaves all four `null`.
|
|
62499
|
-
*/
|
|
62500
|
-
var VacuumStateSchema = _enum([
|
|
62501
|
-
"idle",
|
|
62502
|
-
"cleaning",
|
|
62503
|
-
"paused",
|
|
62504
|
-
"returning",
|
|
62505
|
-
"docked",
|
|
62506
|
-
"drying",
|
|
62507
|
-
"error"
|
|
62508
|
-
]);
|
|
62509
|
-
/**
|
|
62510
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
62511
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
62512
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
62513
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
62514
|
-
* hardware has no such tank at all.
|
|
62515
|
-
*/
|
|
62516
|
-
var TankStatusSchema = object({
|
|
62517
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
62518
|
-
level: number().min(0).max(100).nullable(),
|
|
62519
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
62520
|
-
status: _enum([
|
|
62521
|
-
"ok",
|
|
62522
|
-
"low",
|
|
62523
|
-
"full"
|
|
62524
|
-
]).nullable()
|
|
62525
|
-
});
|
|
62526
62576
|
object({
|
|
62527
62577
|
/** Lifecycle state of the vacuum. */
|
|
62528
|
-
state:
|
|
62578
|
+
state: _enum([
|
|
62579
|
+
"idle",
|
|
62580
|
+
"cleaning",
|
|
62581
|
+
"paused",
|
|
62582
|
+
"returning",
|
|
62583
|
+
"docked",
|
|
62584
|
+
"drying",
|
|
62585
|
+
"error"
|
|
62586
|
+
]),
|
|
62529
62587
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
62530
62588
|
* reading. */
|
|
62531
62589
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -62534,14 +62592,6 @@ object({
|
|
|
62534
62592
|
fanSpeed: string().nullable(),
|
|
62535
62593
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
62536
62594
|
availableFanSpeeds: array(string()),
|
|
62537
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
62538
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
62539
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
62540
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
62541
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
62542
|
-
detergent: TankStatusSchema.nullable(),
|
|
62543
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
62544
|
-
dustBin: TankStatusSchema.nullable(),
|
|
62545
62595
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
62546
62596
|
progressPercent: number().min(0).max(100).nullable(),
|
|
62547
62597
|
/** Current error code (0 / null = no error). */
|
|
@@ -65082,6 +65132,12 @@ Object.freeze({
|
|
|
65082
65132
|
addonId: null,
|
|
65083
65133
|
access: "create"
|
|
65084
65134
|
},
|
|
65135
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
65136
|
+
capName: "device-history",
|
|
65137
|
+
capScope: "system",
|
|
65138
|
+
addonId: null,
|
|
65139
|
+
access: "delete"
|
|
65140
|
+
},
|
|
65085
65141
|
"deviceHistory.getDeviceEnabled": {
|
|
65086
65142
|
capName: "device-history",
|
|
65087
65143
|
capScope: "system",
|
|
@@ -65100,6 +65156,12 @@ Object.freeze({
|
|
|
65100
65156
|
addonId: null,
|
|
65101
65157
|
access: "view"
|
|
65102
65158
|
},
|
|
65159
|
+
"deviceHistory.listOrphanSeries": {
|
|
65160
|
+
capName: "device-history",
|
|
65161
|
+
capScope: "system",
|
|
65162
|
+
addonId: null,
|
|
65163
|
+
access: "view"
|
|
65164
|
+
},
|
|
65103
65165
|
"deviceHistory.listSeries": {
|
|
65104
65166
|
capName: "device-history",
|
|
65105
65167
|
capScope: "system",
|
|
@@ -75105,7 +75167,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
75105
75167
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
75106
75168
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
75107
75169
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
75108
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
75170
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
75109
75171
|
([...RULE_TEXT], [...TANK]),
|
|
75110
75172
|
[...RULE_TEXT],
|
|
75111
75173
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
@@ -5471,7 +5471,7 @@ var ZodIssueCode = {
|
|
|
5471
5471
|
var ZodFirstPartyTypeKind;
|
|
5472
5472
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5473
5473
|
//#endregion
|
|
5474
|
-
//#region ../types/dist/sleep-
|
|
5474
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5475
5475
|
/**
|
|
5476
5476
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5477
5477
|
* window to float samples (D455).
|
|
@@ -8355,7 +8355,11 @@ var ContributionSectionSchema = object({
|
|
|
8355
8355
|
literal(4)
|
|
8356
8356
|
]).optional(),
|
|
8357
8357
|
tab: string().optional(),
|
|
8358
|
-
location: _enum([
|
|
8358
|
+
location: _enum([
|
|
8359
|
+
"settings",
|
|
8360
|
+
"top-tab",
|
|
8361
|
+
"hero"
|
|
8362
|
+
]).optional(),
|
|
8359
8363
|
order: number().optional(),
|
|
8360
8364
|
fields: array(any())
|
|
8361
8365
|
});
|
|
@@ -14103,7 +14107,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
14103
14107
|
literal(4)
|
|
14104
14108
|
]).optional(),
|
|
14105
14109
|
tab: string().optional(),
|
|
14106
|
-
location: _enum([
|
|
14110
|
+
location: _enum([
|
|
14111
|
+
"settings",
|
|
14112
|
+
"top-tab",
|
|
14113
|
+
"hero"
|
|
14114
|
+
]).optional(),
|
|
14107
14115
|
order: number().optional(),
|
|
14108
14116
|
fields: array(any())
|
|
14109
14117
|
});
|
|
@@ -17877,6 +17885,52 @@ var TierStatusSchema = object({
|
|
|
17877
17885
|
countedAt: number().nullable()
|
|
17878
17886
|
});
|
|
17879
17887
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17888
|
+
/**
|
|
17889
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17890
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17891
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17892
|
+
*/
|
|
17893
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17894
|
+
/** Rows held per stored tier. */
|
|
17895
|
+
var TierRowsSchema = object({
|
|
17896
|
+
raw: number().int(),
|
|
17897
|
+
"5m": number().int(),
|
|
17898
|
+
"1h": number().int(),
|
|
17899
|
+
"1d": number().int()
|
|
17900
|
+
});
|
|
17901
|
+
var OrphanSeriesSchema = object({
|
|
17902
|
+
seriesId: number().int(),
|
|
17903
|
+
deviceId: number().int(),
|
|
17904
|
+
key: string(),
|
|
17905
|
+
scope: string(),
|
|
17906
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17907
|
+
displayName: string().nullable(),
|
|
17908
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17909
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17910
|
+
missingSince: number().nullable(),
|
|
17911
|
+
firstTs: number(),
|
|
17912
|
+
lastTs: number(),
|
|
17913
|
+
rows: TierRowsSchema
|
|
17914
|
+
});
|
|
17915
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17916
|
+
"not-found",
|
|
17917
|
+
"not-orphan",
|
|
17918
|
+
"failed"
|
|
17919
|
+
]);
|
|
17920
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17921
|
+
seriesId: number().int(),
|
|
17922
|
+
ok: literal(true),
|
|
17923
|
+
deleted: TierRowsSchema
|
|
17924
|
+
}), object({
|
|
17925
|
+
seriesId: number().int(),
|
|
17926
|
+
ok: literal(false),
|
|
17927
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17928
|
+
})]);
|
|
17929
|
+
var OrphanListSchema = object({
|
|
17930
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17931
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17932
|
+
truncated: boolean()
|
|
17933
|
+
});
|
|
17880
17934
|
var DeviceHistoryStatusSchema = object({
|
|
17881
17935
|
startedAt: number(),
|
|
17882
17936
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17974,7 +18028,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17974
18028
|
}), object({ enabled: boolean() }), {
|
|
17975
18029
|
kind: "mutation",
|
|
17976
18030
|
auth: "admin"
|
|
17977
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
18031
|
+
}), 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() }), {
|
|
18032
|
+
kind: "mutation",
|
|
18033
|
+
auth: "admin"
|
|
18034
|
+
});
|
|
17978
18035
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17979
18036
|
object({ state: literal("absent") }),
|
|
17980
18037
|
object({
|
|
@@ -48530,7 +48587,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
48530
48587
|
modelId: string()
|
|
48531
48588
|
}),
|
|
48532
48589
|
object({ kind: literal("cpu-device") }),
|
|
48533
|
-
object({ kind: literal("coral-untouched") }),
|
|
48534
48590
|
object({ kind: literal("device-disabled") }),
|
|
48535
48591
|
object({ kind: literal("device-unavailable") }),
|
|
48536
48592
|
object({ kind: literal("node-offline") }),
|
|
@@ -48628,11 +48684,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
48628
48684
|
kind: literal("detector-store-unreadable"),
|
|
48629
48685
|
error: string()
|
|
48630
48686
|
}),
|
|
48631
|
-
object({
|
|
48632
|
-
kind: literal("coral-enabled"),
|
|
48633
|
-
nodeId: string(),
|
|
48634
|
-
deviceKey: string()
|
|
48635
|
-
}),
|
|
48636
48687
|
object({
|
|
48637
48688
|
kind: literal("custom-pin-kept"),
|
|
48638
48689
|
nodeId: string(),
|
|
@@ -55271,17 +55322,69 @@ object({
|
|
|
55271
55322
|
});
|
|
55272
55323
|
DeviceType.Sensor;
|
|
55273
55324
|
/**
|
|
55274
|
-
* Generic device-consumables capability —
|
|
55275
|
-
*
|
|
55276
|
-
* descaling cycles,
|
|
55277
|
-
*
|
|
55278
|
-
*
|
|
55279
|
-
*
|
|
55325
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
55326
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
55327
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
55328
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
55329
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
55330
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
55331
|
+
* its device tracks consumables registers it; the provider names each item
|
|
55332
|
+
* verbatim and says which `kind` it is.
|
|
55333
|
+
*
|
|
55334
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
55335
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
55336
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
55280
55337
|
*
|
|
55281
55338
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
55282
55339
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
55283
55340
|
* "No consumables reported" placeholder when `items` is empty.
|
|
55284
55341
|
*/
|
|
55342
|
+
/**
|
|
55343
|
+
* What an item IS, which decides which direction is bad:
|
|
55344
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
55345
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
55346
|
+
* salt, rinse aid); low or empty is bad.
|
|
55347
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
55348
|
+
* bad.
|
|
55349
|
+
* Absent = `wear`.
|
|
55350
|
+
*/
|
|
55351
|
+
var ConsumableKindSchema = _enum([
|
|
55352
|
+
"wear",
|
|
55353
|
+
"supply",
|
|
55354
|
+
"waste"
|
|
55355
|
+
]);
|
|
55356
|
+
/**
|
|
55357
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
55358
|
+
* of `kind`, which decides which direction is bad:
|
|
55359
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
55360
|
+
* remaining time and a reset.
|
|
55361
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
55362
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
55363
|
+
* a stepped level and "refill".
|
|
55364
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
55365
|
+
* that warns when full.
|
|
55366
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
55367
|
+
*/
|
|
55368
|
+
var ConsumableFormSchema = _enum([
|
|
55369
|
+
"part",
|
|
55370
|
+
"tank",
|
|
55371
|
+
"product",
|
|
55372
|
+
"bin"
|
|
55373
|
+
]);
|
|
55374
|
+
/** The provider's own discrete verdict on an item. */
|
|
55375
|
+
var ConsumableStatusSchema = _enum([
|
|
55376
|
+
"ok",
|
|
55377
|
+
"low",
|
|
55378
|
+
"empty",
|
|
55379
|
+
"full",
|
|
55380
|
+
"replace"
|
|
55381
|
+
]);
|
|
55382
|
+
_enum([
|
|
55383
|
+
"ok",
|
|
55384
|
+
"low",
|
|
55385
|
+
"empty",
|
|
55386
|
+
"full"
|
|
55387
|
+
]);
|
|
55285
55388
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
55286
55389
|
* each. */
|
|
55287
55390
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -55301,10 +55404,14 @@ var ConsumablesStatusSchema = object({
|
|
|
55301
55404
|
key: string().min(1),
|
|
55302
55405
|
/** Display name. */
|
|
55303
55406
|
label: string().min(1),
|
|
55304
|
-
/** Remaining life % when known (0..100). */
|
|
55407
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
55305
55408
|
level: number().min(0).max(100).nullable(),
|
|
55306
|
-
/**
|
|
55307
|
-
status:
|
|
55409
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
55410
|
+
status: ConsumableStatusSchema.nullable(),
|
|
55411
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
55412
|
+
kind: ConsumableKindSchema.optional(),
|
|
55413
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
55414
|
+
form: ConsumableFormSchema.optional(),
|
|
55308
55415
|
/** Ms epoch of the last replace, when known. */
|
|
55309
55416
|
lastResetAt: number().nullable(),
|
|
55310
55417
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -55551,8 +55658,9 @@ object({
|
|
|
55551
55658
|
status: DeviceStatusSchema
|
|
55552
55659
|
});
|
|
55553
55660
|
/**
|
|
55554
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
55555
|
-
*
|
|
55661
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
55662
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
55663
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
55556
55664
|
*
|
|
55557
55665
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
55558
55666
|
* by any integration that exposes the same program / option surface.
|
|
@@ -55600,11 +55708,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
55600
55708
|
"offline",
|
|
55601
55709
|
"description-missing"
|
|
55602
55710
|
]);
|
|
55603
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
55604
|
-
"ok",
|
|
55605
|
-
"low",
|
|
55606
|
-
"empty"
|
|
55607
|
-
]);
|
|
55608
55711
|
object({
|
|
55609
55712
|
availability: DishwasherAvailabilitySchema,
|
|
55610
55713
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -55637,8 +55740,6 @@ object({
|
|
|
55637
55740
|
powerOn: boolean().nullable(),
|
|
55638
55741
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
55639
55742
|
powerState: string().nullable(),
|
|
55640
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55641
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55642
55743
|
/**
|
|
55643
55744
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
55644
55745
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -62462,60 +62563,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
62462
62563
|
auth: "admin",
|
|
62463
62564
|
access: "delete"
|
|
62464
62565
|
});
|
|
62465
|
-
/**
|
|
62466
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
62467
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
62468
|
-
* optional fan-speed selector.
|
|
62469
|
-
*
|
|
62470
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
62471
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
62472
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
62473
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
62474
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
62475
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
62476
|
-
*
|
|
62477
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
62478
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
62479
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
62480
|
-
*
|
|
62481
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
62482
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
62483
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
62484
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
62485
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
62486
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
62487
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
62488
|
-
* so the HA provider leaves all four `null`.
|
|
62489
|
-
*/
|
|
62490
|
-
var VacuumStateSchema = _enum([
|
|
62491
|
-
"idle",
|
|
62492
|
-
"cleaning",
|
|
62493
|
-
"paused",
|
|
62494
|
-
"returning",
|
|
62495
|
-
"docked",
|
|
62496
|
-
"drying",
|
|
62497
|
-
"error"
|
|
62498
|
-
]);
|
|
62499
|
-
/**
|
|
62500
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
62501
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
62502
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
62503
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
62504
|
-
* hardware has no such tank at all.
|
|
62505
|
-
*/
|
|
62506
|
-
var TankStatusSchema = object({
|
|
62507
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
62508
|
-
level: number().min(0).max(100).nullable(),
|
|
62509
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
62510
|
-
status: _enum([
|
|
62511
|
-
"ok",
|
|
62512
|
-
"low",
|
|
62513
|
-
"full"
|
|
62514
|
-
]).nullable()
|
|
62515
|
-
});
|
|
62516
62566
|
object({
|
|
62517
62567
|
/** Lifecycle state of the vacuum. */
|
|
62518
|
-
state:
|
|
62568
|
+
state: _enum([
|
|
62569
|
+
"idle",
|
|
62570
|
+
"cleaning",
|
|
62571
|
+
"paused",
|
|
62572
|
+
"returning",
|
|
62573
|
+
"docked",
|
|
62574
|
+
"drying",
|
|
62575
|
+
"error"
|
|
62576
|
+
]),
|
|
62519
62577
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
62520
62578
|
* reading. */
|
|
62521
62579
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -62524,14 +62582,6 @@ object({
|
|
|
62524
62582
|
fanSpeed: string().nullable(),
|
|
62525
62583
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
62526
62584
|
availableFanSpeeds: array(string()),
|
|
62527
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
62528
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
62529
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
62530
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
62531
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
62532
|
-
detergent: TankStatusSchema.nullable(),
|
|
62533
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
62534
|
-
dustBin: TankStatusSchema.nullable(),
|
|
62535
62585
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
62536
62586
|
progressPercent: number().min(0).max(100).nullable(),
|
|
62537
62587
|
/** Current error code (0 / null = no error). */
|
|
@@ -65072,6 +65122,12 @@ Object.freeze({
|
|
|
65072
65122
|
addonId: null,
|
|
65073
65123
|
access: "create"
|
|
65074
65124
|
},
|
|
65125
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
65126
|
+
capName: "device-history",
|
|
65127
|
+
capScope: "system",
|
|
65128
|
+
addonId: null,
|
|
65129
|
+
access: "delete"
|
|
65130
|
+
},
|
|
65075
65131
|
"deviceHistory.getDeviceEnabled": {
|
|
65076
65132
|
capName: "device-history",
|
|
65077
65133
|
capScope: "system",
|
|
@@ -65090,6 +65146,12 @@ Object.freeze({
|
|
|
65090
65146
|
addonId: null,
|
|
65091
65147
|
access: "view"
|
|
65092
65148
|
},
|
|
65149
|
+
"deviceHistory.listOrphanSeries": {
|
|
65150
|
+
capName: "device-history",
|
|
65151
|
+
capScope: "system",
|
|
65152
|
+
addonId: null,
|
|
65153
|
+
access: "view"
|
|
65154
|
+
},
|
|
65093
65155
|
"deviceHistory.listSeries": {
|
|
65094
65156
|
capName: "device-history",
|
|
65095
65157
|
capScope: "system",
|
|
@@ -75095,7 +75157,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
75095
75157
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
75096
75158
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
75097
75159
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
75098
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
75160
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
75099
75161
|
([...RULE_TEXT], [...TANK]),
|
|
75100
75162
|
[...RULE_TEXT],
|
|
75101
75163
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.176",
|
|
4
4
|
"description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|