@camstack/addon-provider-hikvision 1.2.168 → 1.2.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +193 -123
- package/dist/addon.mjs +193 -123
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5466,7 +5466,7 @@ var ZodIssueCode = {
|
|
|
5466
5466
|
var ZodFirstPartyTypeKind;
|
|
5467
5467
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5468
5468
|
//#endregion
|
|
5469
|
-
//#region ../types/dist/sleep-
|
|
5469
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5470
5470
|
/**
|
|
5471
5471
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5472
5472
|
* window to float samples (D455).
|
|
@@ -8358,7 +8358,11 @@ var ContributionSectionSchema = object({
|
|
|
8358
8358
|
literal(4)
|
|
8359
8359
|
]).optional(),
|
|
8360
8360
|
tab: string().optional(),
|
|
8361
|
-
location: _enum([
|
|
8361
|
+
location: _enum([
|
|
8362
|
+
"settings",
|
|
8363
|
+
"top-tab",
|
|
8364
|
+
"hero"
|
|
8365
|
+
]).optional(),
|
|
8362
8366
|
order: number().optional(),
|
|
8363
8367
|
fields: array(any())
|
|
8364
8368
|
});
|
|
@@ -13608,7 +13612,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13608
13612
|
literal(4)
|
|
13609
13613
|
]).optional(),
|
|
13610
13614
|
tab: string().optional(),
|
|
13611
|
-
location: _enum([
|
|
13615
|
+
location: _enum([
|
|
13616
|
+
"settings",
|
|
13617
|
+
"top-tab",
|
|
13618
|
+
"hero"
|
|
13619
|
+
]).optional(),
|
|
13612
13620
|
order: number().optional(),
|
|
13613
13621
|
fields: array(any())
|
|
13614
13622
|
});
|
|
@@ -17488,6 +17496,52 @@ var TierStatusSchema = object({
|
|
|
17488
17496
|
countedAt: number().nullable()
|
|
17489
17497
|
});
|
|
17490
17498
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17499
|
+
/**
|
|
17500
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17501
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17502
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17503
|
+
*/
|
|
17504
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17505
|
+
/** Rows held per stored tier. */
|
|
17506
|
+
var TierRowsSchema = object({
|
|
17507
|
+
raw: number().int(),
|
|
17508
|
+
"5m": number().int(),
|
|
17509
|
+
"1h": number().int(),
|
|
17510
|
+
"1d": number().int()
|
|
17511
|
+
});
|
|
17512
|
+
var OrphanSeriesSchema = object({
|
|
17513
|
+
seriesId: number().int(),
|
|
17514
|
+
deviceId: number().int(),
|
|
17515
|
+
key: string(),
|
|
17516
|
+
scope: string(),
|
|
17517
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17518
|
+
displayName: string().nullable(),
|
|
17519
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17520
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17521
|
+
missingSince: number().nullable(),
|
|
17522
|
+
firstTs: number(),
|
|
17523
|
+
lastTs: number(),
|
|
17524
|
+
rows: TierRowsSchema
|
|
17525
|
+
});
|
|
17526
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17527
|
+
"not-found",
|
|
17528
|
+
"not-orphan",
|
|
17529
|
+
"failed"
|
|
17530
|
+
]);
|
|
17531
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17532
|
+
seriesId: number().int(),
|
|
17533
|
+
ok: literal(true),
|
|
17534
|
+
deleted: TierRowsSchema
|
|
17535
|
+
}), object({
|
|
17536
|
+
seriesId: number().int(),
|
|
17537
|
+
ok: literal(false),
|
|
17538
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17539
|
+
})]);
|
|
17540
|
+
var OrphanListSchema = object({
|
|
17541
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17542
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17543
|
+
truncated: boolean()
|
|
17544
|
+
});
|
|
17491
17545
|
var DeviceHistoryStatusSchema = object({
|
|
17492
17546
|
startedAt: number(),
|
|
17493
17547
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17585,7 +17639,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17585
17639
|
}), object({ enabled: boolean() }), {
|
|
17586
17640
|
kind: "mutation",
|
|
17587
17641
|
auth: "admin"
|
|
17588
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17642
|
+
}), 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() }), {
|
|
17643
|
+
kind: "mutation",
|
|
17644
|
+
auth: "admin"
|
|
17645
|
+
});
|
|
17589
17646
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17590
17647
|
object({ state: literal("absent") }),
|
|
17591
17648
|
object({
|
|
@@ -48428,7 +48485,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
48428
48485
|
modelId: string()
|
|
48429
48486
|
}),
|
|
48430
48487
|
object({ kind: literal("cpu-device") }),
|
|
48431
|
-
object({ kind: literal("coral-untouched") }),
|
|
48432
48488
|
object({ kind: literal("device-disabled") }),
|
|
48433
48489
|
object({ kind: literal("device-unavailable") }),
|
|
48434
48490
|
object({ kind: literal("node-offline") }),
|
|
@@ -48526,11 +48582,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
48526
48582
|
kind: literal("detector-store-unreadable"),
|
|
48527
48583
|
error: string()
|
|
48528
48584
|
}),
|
|
48529
|
-
object({
|
|
48530
|
-
kind: literal("coral-enabled"),
|
|
48531
|
-
nodeId: string(),
|
|
48532
|
-
deviceKey: string()
|
|
48533
|
-
}),
|
|
48534
48585
|
object({
|
|
48535
48586
|
kind: literal("custom-pin-kept"),
|
|
48536
48587
|
nodeId: string(),
|
|
@@ -56088,17 +56139,69 @@ var connectivityCapability = {
|
|
|
56088
56139
|
volatileStateFields: ["lastChangedAt"]
|
|
56089
56140
|
};
|
|
56090
56141
|
/**
|
|
56091
|
-
* Generic device-consumables capability —
|
|
56092
|
-
*
|
|
56093
|
-
* descaling cycles,
|
|
56094
|
-
*
|
|
56095
|
-
*
|
|
56096
|
-
*
|
|
56142
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
56143
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
56144
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
56145
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
56146
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
56147
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
56148
|
+
* its device tracks consumables registers it; the provider names each item
|
|
56149
|
+
* verbatim and says which `kind` it is.
|
|
56150
|
+
*
|
|
56151
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
56152
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
56153
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
56097
56154
|
*
|
|
56098
56155
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
56099
56156
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
56100
56157
|
* "No consumables reported" placeholder when `items` is empty.
|
|
56101
56158
|
*/
|
|
56159
|
+
/**
|
|
56160
|
+
* What an item IS, which decides which direction is bad:
|
|
56161
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
56162
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
56163
|
+
* salt, rinse aid); low or empty is bad.
|
|
56164
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
56165
|
+
* bad.
|
|
56166
|
+
* Absent = `wear`.
|
|
56167
|
+
*/
|
|
56168
|
+
var ConsumableKindSchema = _enum([
|
|
56169
|
+
"wear",
|
|
56170
|
+
"supply",
|
|
56171
|
+
"waste"
|
|
56172
|
+
]);
|
|
56173
|
+
/**
|
|
56174
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
56175
|
+
* of `kind`, which decides which direction is bad:
|
|
56176
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
56177
|
+
* remaining time and a reset.
|
|
56178
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
56179
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
56180
|
+
* a stepped level and "refill".
|
|
56181
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
56182
|
+
* that warns when full.
|
|
56183
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
56184
|
+
*/
|
|
56185
|
+
var ConsumableFormSchema = _enum([
|
|
56186
|
+
"part",
|
|
56187
|
+
"tank",
|
|
56188
|
+
"product",
|
|
56189
|
+
"bin"
|
|
56190
|
+
]);
|
|
56191
|
+
/** The provider's own discrete verdict on an item. */
|
|
56192
|
+
var ConsumableStatusSchema = _enum([
|
|
56193
|
+
"ok",
|
|
56194
|
+
"low",
|
|
56195
|
+
"empty",
|
|
56196
|
+
"full",
|
|
56197
|
+
"replace"
|
|
56198
|
+
]);
|
|
56199
|
+
_enum([
|
|
56200
|
+
"ok",
|
|
56201
|
+
"low",
|
|
56202
|
+
"empty",
|
|
56203
|
+
"full"
|
|
56204
|
+
]);
|
|
56102
56205
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
56103
56206
|
* each. */
|
|
56104
56207
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -56113,18 +56216,23 @@ var ConsumableRemainingSchema = object({
|
|
|
56113
56216
|
unit: ConsumableRemainingUnitSchema
|
|
56114
56217
|
});
|
|
56115
56218
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
56116
|
-
* life
|
|
56117
|
-
*
|
|
56118
|
-
* mutually exclusive; a provider may
|
|
56219
|
+
* life %, or fill % for a `supply` / `waste` item) or a discrete `status`
|
|
56220
|
+
* may be known — both may be null when a provider only knows the item
|
|
56221
|
+
* exists. `level` and `status` are not mutually exclusive; a provider may
|
|
56222
|
+
* report both. */
|
|
56119
56223
|
var ConsumableItemSchema = object({
|
|
56120
56224
|
/** Stable id, e.g. 'main-brush'. */
|
|
56121
56225
|
key: string().min(1),
|
|
56122
56226
|
/** Display name. */
|
|
56123
56227
|
label: string().min(1),
|
|
56124
|
-
/** Remaining life % when known (0..100). */
|
|
56228
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
56125
56229
|
level: number().min(0).max(100).nullable(),
|
|
56126
|
-
/**
|
|
56127
|
-
status:
|
|
56230
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
56231
|
+
status: ConsumableStatusSchema.nullable(),
|
|
56232
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
56233
|
+
kind: ConsumableKindSchema.optional(),
|
|
56234
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
56235
|
+
form: ConsumableFormSchema.optional(),
|
|
56128
56236
|
/** Ms epoch of the last replace, when known. */
|
|
56129
56237
|
lastResetAt: number().nullable(),
|
|
56130
56238
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -56147,7 +56255,7 @@ var consumablesCapability = {
|
|
|
56147
56255
|
kind: "widget",
|
|
56148
56256
|
widgetId: "host/consumables-panel",
|
|
56149
56257
|
tab: "consumables",
|
|
56150
|
-
|
|
56258
|
+
placement: "hero",
|
|
56151
56259
|
label: "Consumables",
|
|
56152
56260
|
order: 5
|
|
56153
56261
|
} },
|
|
@@ -56208,9 +56316,37 @@ reset: method(object({
|
|
|
56208
56316
|
*/
|
|
56209
56317
|
durability: "restored",
|
|
56210
56318
|
/**
|
|
56211
|
-
* History (D850):
|
|
56319
|
+
* History (D850, D917): one series per (item field, item `key`) — the item key
|
|
56320
|
+
* is the series scope, the item `label` names it. A vacuum tank's fill, a
|
|
56321
|
+
* brush's remaining life and a dishwasher's salt are each recorded the moment
|
|
56322
|
+
* their provider reports them; an item that appears later gets its series.
|
|
56212
56323
|
*/
|
|
56213
|
-
history:
|
|
56324
|
+
history: {
|
|
56325
|
+
fields: {},
|
|
56326
|
+
items: {
|
|
56327
|
+
path: "items",
|
|
56328
|
+
key: "key",
|
|
56329
|
+
label: "label",
|
|
56330
|
+
fields: {
|
|
56331
|
+
level: {
|
|
56332
|
+
kind: "gauge",
|
|
56333
|
+
unit: "%",
|
|
56334
|
+
deadband: 2,
|
|
56335
|
+
displayName: "Level"
|
|
56336
|
+
},
|
|
56337
|
+
status: {
|
|
56338
|
+
kind: "enum",
|
|
56339
|
+
displayName: "Status"
|
|
56340
|
+
},
|
|
56341
|
+
"remaining.value": {
|
|
56342
|
+
kind: "gauge",
|
|
56343
|
+
unitFrom: "remaining.unit",
|
|
56344
|
+
deadband: 1,
|
|
56345
|
+
displayName: "Remaining"
|
|
56346
|
+
}
|
|
56347
|
+
}
|
|
56348
|
+
}
|
|
56349
|
+
},
|
|
56214
56350
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
56215
56351
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
56216
56352
|
};
|
|
@@ -56625,8 +56761,9 @@ onStatusChanged: { data: object({
|
|
|
56625
56761
|
volatileStateFields: ["lastChangedAt"]
|
|
56626
56762
|
};
|
|
56627
56763
|
/**
|
|
56628
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56629
|
-
*
|
|
56764
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
56765
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
56766
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
56630
56767
|
*
|
|
56631
56768
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56632
56769
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56674,11 +56811,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56674
56811
|
"offline",
|
|
56675
56812
|
"description-missing"
|
|
56676
56813
|
]);
|
|
56677
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56678
|
-
"ok",
|
|
56679
|
-
"low",
|
|
56680
|
-
"empty"
|
|
56681
|
-
]);
|
|
56682
56814
|
var DishwasherStatusSchema = object({
|
|
56683
56815
|
availability: DishwasherAvailabilitySchema,
|
|
56684
56816
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56711,8 +56843,6 @@ var DishwasherStatusSchema = object({
|
|
|
56711
56843
|
powerOn: boolean().nullable(),
|
|
56712
56844
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56713
56845
|
powerState: string().nullable(),
|
|
56714
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56715
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56716
56846
|
/**
|
|
56717
56847
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56718
56848
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -66089,60 +66219,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
66089
66219
|
auth: "admin",
|
|
66090
66220
|
access: "delete"
|
|
66091
66221
|
});
|
|
66092
|
-
/**
|
|
66093
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
66094
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
66095
|
-
* optional fan-speed selector.
|
|
66096
|
-
*
|
|
66097
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
66098
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
66099
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
66100
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
66101
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
66102
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
66103
|
-
*
|
|
66104
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
66105
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
66106
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
66107
|
-
*
|
|
66108
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
66109
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
66110
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
66111
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
66112
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
66113
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
66114
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
66115
|
-
* so the HA provider leaves all four `null`.
|
|
66116
|
-
*/
|
|
66117
|
-
var VacuumStateSchema = _enum([
|
|
66118
|
-
"idle",
|
|
66119
|
-
"cleaning",
|
|
66120
|
-
"paused",
|
|
66121
|
-
"returning",
|
|
66122
|
-
"docked",
|
|
66123
|
-
"drying",
|
|
66124
|
-
"error"
|
|
66125
|
-
]);
|
|
66126
|
-
/**
|
|
66127
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
66128
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
66129
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
66130
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
66131
|
-
* hardware has no such tank at all.
|
|
66132
|
-
*/
|
|
66133
|
-
var TankStatusSchema = object({
|
|
66134
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
66135
|
-
level: number().min(0).max(100).nullable(),
|
|
66136
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
66137
|
-
status: _enum([
|
|
66138
|
-
"ok",
|
|
66139
|
-
"low",
|
|
66140
|
-
"full"
|
|
66141
|
-
]).nullable()
|
|
66142
|
-
});
|
|
66143
66222
|
var VacuumControlStatusSchema = object({
|
|
66144
66223
|
/** Lifecycle state of the vacuum. */
|
|
66145
|
-
state:
|
|
66224
|
+
state: _enum([
|
|
66225
|
+
"idle",
|
|
66226
|
+
"cleaning",
|
|
66227
|
+
"paused",
|
|
66228
|
+
"returning",
|
|
66229
|
+
"docked",
|
|
66230
|
+
"drying",
|
|
66231
|
+
"error"
|
|
66232
|
+
]),
|
|
66146
66233
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
66147
66234
|
* reading. */
|
|
66148
66235
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -66151,14 +66238,6 @@ var VacuumControlStatusSchema = object({
|
|
|
66151
66238
|
fanSpeed: string().nullable(),
|
|
66152
66239
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
66153
66240
|
availableFanSpeeds: array(string()),
|
|
66154
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
66155
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
66156
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
66157
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
66158
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
66159
|
-
detergent: TankStatusSchema.nullable(),
|
|
66160
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
66161
|
-
dustBin: TankStatusSchema.nullable(),
|
|
66162
66241
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
66163
66242
|
progressPercent: number().min(0).max(100).nullable(),
|
|
66164
66243
|
/** Current error code (0 / null = no error). */
|
|
@@ -66220,35 +66299,14 @@ var vacuumControlCapability = {
|
|
|
66220
66299
|
*/
|
|
66221
66300
|
durability: "session",
|
|
66222
66301
|
/**
|
|
66223
|
-
* History (D850): recorded series.
|
|
66302
|
+
* History (D850): recorded series. The tanks moved to `consumables` (D915), whose
|
|
66303
|
+
* items are keyed by runtime ids and record no history.
|
|
66224
66304
|
*/
|
|
66225
|
-
history: { fields: {
|
|
66226
|
-
|
|
66227
|
-
|
|
66228
|
-
|
|
66229
|
-
|
|
66230
|
-
},
|
|
66231
|
-
"cleanWater.level": {
|
|
66232
|
-
kind: "gauge",
|
|
66233
|
-
unit: "%",
|
|
66234
|
-
deadband: 2
|
|
66235
|
-
},
|
|
66236
|
-
"dirtyWater.level": {
|
|
66237
|
-
kind: "gauge",
|
|
66238
|
-
unit: "%",
|
|
66239
|
-
deadband: 2
|
|
66240
|
-
},
|
|
66241
|
-
"detergent.level": {
|
|
66242
|
-
kind: "gauge",
|
|
66243
|
-
unit: "%",
|
|
66244
|
-
deadband: 2
|
|
66245
|
-
},
|
|
66246
|
-
"dustBin.level": {
|
|
66247
|
-
kind: "gauge",
|
|
66248
|
-
unit: "%",
|
|
66249
|
-
deadband: 2
|
|
66250
|
-
}
|
|
66251
|
-
} }
|
|
66305
|
+
history: { fields: { batteryLevel: {
|
|
66306
|
+
kind: "gauge",
|
|
66307
|
+
unit: "%",
|
|
66308
|
+
deadband: 2
|
|
66309
|
+
} } }
|
|
66252
66310
|
};
|
|
66253
66311
|
var ValveStatusSchema = object({
|
|
66254
66312
|
/** Lifecycle state of the valve. */
|
|
@@ -70661,6 +70719,12 @@ Object.freeze({
|
|
|
70661
70719
|
addonId: null,
|
|
70662
70720
|
access: "create"
|
|
70663
70721
|
},
|
|
70722
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
70723
|
+
capName: "device-history",
|
|
70724
|
+
capScope: "system",
|
|
70725
|
+
addonId: null,
|
|
70726
|
+
access: "delete"
|
|
70727
|
+
},
|
|
70664
70728
|
"deviceHistory.getDeviceEnabled": {
|
|
70665
70729
|
capName: "device-history",
|
|
70666
70730
|
capScope: "system",
|
|
@@ -70679,6 +70743,12 @@ Object.freeze({
|
|
|
70679
70743
|
addonId: null,
|
|
70680
70744
|
access: "view"
|
|
70681
70745
|
},
|
|
70746
|
+
"deviceHistory.listOrphanSeries": {
|
|
70747
|
+
capName: "device-history",
|
|
70748
|
+
capScope: "system",
|
|
70749
|
+
addonId: null,
|
|
70750
|
+
access: "view"
|
|
70751
|
+
},
|
|
70682
70752
|
"deviceHistory.listSeries": {
|
|
70683
70753
|
capName: "device-history",
|
|
70684
70754
|
capScope: "system",
|
|
@@ -80902,7 +80972,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
80902
80972
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
80903
80973
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
80904
80974
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
80905
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
80975
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
80906
80976
|
([...RULE_TEXT], [...TANK]),
|
|
80907
80977
|
[...RULE_TEXT],
|
|
80908
80978
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
package/dist/addon.mjs
CHANGED
|
@@ -5445,7 +5445,7 @@ var ZodIssueCode = {
|
|
|
5445
5445
|
var ZodFirstPartyTypeKind;
|
|
5446
5446
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5447
5447
|
//#endregion
|
|
5448
|
-
//#region ../types/dist/sleep-
|
|
5448
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5449
5449
|
/**
|
|
5450
5450
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5451
5451
|
* window to float samples (D455).
|
|
@@ -8337,7 +8337,11 @@ var ContributionSectionSchema = object({
|
|
|
8337
8337
|
literal(4)
|
|
8338
8338
|
]).optional(),
|
|
8339
8339
|
tab: string().optional(),
|
|
8340
|
-
location: _enum([
|
|
8340
|
+
location: _enum([
|
|
8341
|
+
"settings",
|
|
8342
|
+
"top-tab",
|
|
8343
|
+
"hero"
|
|
8344
|
+
]).optional(),
|
|
8341
8345
|
order: number().optional(),
|
|
8342
8346
|
fields: array(any())
|
|
8343
8347
|
});
|
|
@@ -13587,7 +13591,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13587
13591
|
literal(4)
|
|
13588
13592
|
]).optional(),
|
|
13589
13593
|
tab: string().optional(),
|
|
13590
|
-
location: _enum([
|
|
13594
|
+
location: _enum([
|
|
13595
|
+
"settings",
|
|
13596
|
+
"top-tab",
|
|
13597
|
+
"hero"
|
|
13598
|
+
]).optional(),
|
|
13591
13599
|
order: number().optional(),
|
|
13592
13600
|
fields: array(any())
|
|
13593
13601
|
});
|
|
@@ -17467,6 +17475,52 @@ var TierStatusSchema = object({
|
|
|
17467
17475
|
countedAt: number().nullable()
|
|
17468
17476
|
});
|
|
17469
17477
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17478
|
+
/**
|
|
17479
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17480
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17481
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17482
|
+
*/
|
|
17483
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17484
|
+
/** Rows held per stored tier. */
|
|
17485
|
+
var TierRowsSchema = object({
|
|
17486
|
+
raw: number().int(),
|
|
17487
|
+
"5m": number().int(),
|
|
17488
|
+
"1h": number().int(),
|
|
17489
|
+
"1d": number().int()
|
|
17490
|
+
});
|
|
17491
|
+
var OrphanSeriesSchema = object({
|
|
17492
|
+
seriesId: number().int(),
|
|
17493
|
+
deviceId: number().int(),
|
|
17494
|
+
key: string(),
|
|
17495
|
+
scope: string(),
|
|
17496
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17497
|
+
displayName: string().nullable(),
|
|
17498
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17499
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17500
|
+
missingSince: number().nullable(),
|
|
17501
|
+
firstTs: number(),
|
|
17502
|
+
lastTs: number(),
|
|
17503
|
+
rows: TierRowsSchema
|
|
17504
|
+
});
|
|
17505
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17506
|
+
"not-found",
|
|
17507
|
+
"not-orphan",
|
|
17508
|
+
"failed"
|
|
17509
|
+
]);
|
|
17510
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17511
|
+
seriesId: number().int(),
|
|
17512
|
+
ok: literal(true),
|
|
17513
|
+
deleted: TierRowsSchema
|
|
17514
|
+
}), object({
|
|
17515
|
+
seriesId: number().int(),
|
|
17516
|
+
ok: literal(false),
|
|
17517
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17518
|
+
})]);
|
|
17519
|
+
var OrphanListSchema = object({
|
|
17520
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17521
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17522
|
+
truncated: boolean()
|
|
17523
|
+
});
|
|
17470
17524
|
var DeviceHistoryStatusSchema = object({
|
|
17471
17525
|
startedAt: number(),
|
|
17472
17526
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17564,7 +17618,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17564
17618
|
}), object({ enabled: boolean() }), {
|
|
17565
17619
|
kind: "mutation",
|
|
17566
17620
|
auth: "admin"
|
|
17567
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17621
|
+
}), 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() }), {
|
|
17622
|
+
kind: "mutation",
|
|
17623
|
+
auth: "admin"
|
|
17624
|
+
});
|
|
17568
17625
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17569
17626
|
object({ state: literal("absent") }),
|
|
17570
17627
|
object({
|
|
@@ -48407,7 +48464,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
48407
48464
|
modelId: string()
|
|
48408
48465
|
}),
|
|
48409
48466
|
object({ kind: literal("cpu-device") }),
|
|
48410
|
-
object({ kind: literal("coral-untouched") }),
|
|
48411
48467
|
object({ kind: literal("device-disabled") }),
|
|
48412
48468
|
object({ kind: literal("device-unavailable") }),
|
|
48413
48469
|
object({ kind: literal("node-offline") }),
|
|
@@ -48505,11 +48561,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
48505
48561
|
kind: literal("detector-store-unreadable"),
|
|
48506
48562
|
error: string()
|
|
48507
48563
|
}),
|
|
48508
|
-
object({
|
|
48509
|
-
kind: literal("coral-enabled"),
|
|
48510
|
-
nodeId: string(),
|
|
48511
|
-
deviceKey: string()
|
|
48512
|
-
}),
|
|
48513
48564
|
object({
|
|
48514
48565
|
kind: literal("custom-pin-kept"),
|
|
48515
48566
|
nodeId: string(),
|
|
@@ -56067,17 +56118,69 @@ var connectivityCapability = {
|
|
|
56067
56118
|
volatileStateFields: ["lastChangedAt"]
|
|
56068
56119
|
};
|
|
56069
56120
|
/**
|
|
56070
|
-
* Generic device-consumables capability —
|
|
56071
|
-
*
|
|
56072
|
-
* descaling cycles,
|
|
56073
|
-
*
|
|
56074
|
-
*
|
|
56075
|
-
*
|
|
56121
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
56122
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
56123
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
56124
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
56125
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
56126
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
56127
|
+
* its device tracks consumables registers it; the provider names each item
|
|
56128
|
+
* verbatim and says which `kind` it is.
|
|
56129
|
+
*
|
|
56130
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
56131
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
56132
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
56076
56133
|
*
|
|
56077
56134
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
56078
56135
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
56079
56136
|
* "No consumables reported" placeholder when `items` is empty.
|
|
56080
56137
|
*/
|
|
56138
|
+
/**
|
|
56139
|
+
* What an item IS, which decides which direction is bad:
|
|
56140
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
56141
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
56142
|
+
* salt, rinse aid); low or empty is bad.
|
|
56143
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
56144
|
+
* bad.
|
|
56145
|
+
* Absent = `wear`.
|
|
56146
|
+
*/
|
|
56147
|
+
var ConsumableKindSchema = _enum([
|
|
56148
|
+
"wear",
|
|
56149
|
+
"supply",
|
|
56150
|
+
"waste"
|
|
56151
|
+
]);
|
|
56152
|
+
/**
|
|
56153
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
56154
|
+
* of `kind`, which decides which direction is bad:
|
|
56155
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
56156
|
+
* remaining time and a reset.
|
|
56157
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
56158
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
56159
|
+
* a stepped level and "refill".
|
|
56160
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
56161
|
+
* that warns when full.
|
|
56162
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
56163
|
+
*/
|
|
56164
|
+
var ConsumableFormSchema = _enum([
|
|
56165
|
+
"part",
|
|
56166
|
+
"tank",
|
|
56167
|
+
"product",
|
|
56168
|
+
"bin"
|
|
56169
|
+
]);
|
|
56170
|
+
/** The provider's own discrete verdict on an item. */
|
|
56171
|
+
var ConsumableStatusSchema = _enum([
|
|
56172
|
+
"ok",
|
|
56173
|
+
"low",
|
|
56174
|
+
"empty",
|
|
56175
|
+
"full",
|
|
56176
|
+
"replace"
|
|
56177
|
+
]);
|
|
56178
|
+
_enum([
|
|
56179
|
+
"ok",
|
|
56180
|
+
"low",
|
|
56181
|
+
"empty",
|
|
56182
|
+
"full"
|
|
56183
|
+
]);
|
|
56081
56184
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
56082
56185
|
* each. */
|
|
56083
56186
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -56092,18 +56195,23 @@ var ConsumableRemainingSchema = object({
|
|
|
56092
56195
|
unit: ConsumableRemainingUnitSchema
|
|
56093
56196
|
});
|
|
56094
56197
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
56095
|
-
* life
|
|
56096
|
-
*
|
|
56097
|
-
* mutually exclusive; a provider may
|
|
56198
|
+
* life %, or fill % for a `supply` / `waste` item) or a discrete `status`
|
|
56199
|
+
* may be known — both may be null when a provider only knows the item
|
|
56200
|
+
* exists. `level` and `status` are not mutually exclusive; a provider may
|
|
56201
|
+
* report both. */
|
|
56098
56202
|
var ConsumableItemSchema = object({
|
|
56099
56203
|
/** Stable id, e.g. 'main-brush'. */
|
|
56100
56204
|
key: string().min(1),
|
|
56101
56205
|
/** Display name. */
|
|
56102
56206
|
label: string().min(1),
|
|
56103
|
-
/** Remaining life % when known (0..100). */
|
|
56207
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
56104
56208
|
level: number().min(0).max(100).nullable(),
|
|
56105
|
-
/**
|
|
56106
|
-
status:
|
|
56209
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
56210
|
+
status: ConsumableStatusSchema.nullable(),
|
|
56211
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
56212
|
+
kind: ConsumableKindSchema.optional(),
|
|
56213
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
56214
|
+
form: ConsumableFormSchema.optional(),
|
|
56107
56215
|
/** Ms epoch of the last replace, when known. */
|
|
56108
56216
|
lastResetAt: number().nullable(),
|
|
56109
56217
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -56126,7 +56234,7 @@ var consumablesCapability = {
|
|
|
56126
56234
|
kind: "widget",
|
|
56127
56235
|
widgetId: "host/consumables-panel",
|
|
56128
56236
|
tab: "consumables",
|
|
56129
|
-
|
|
56237
|
+
placement: "hero",
|
|
56130
56238
|
label: "Consumables",
|
|
56131
56239
|
order: 5
|
|
56132
56240
|
} },
|
|
@@ -56187,9 +56295,37 @@ reset: method(object({
|
|
|
56187
56295
|
*/
|
|
56188
56296
|
durability: "restored",
|
|
56189
56297
|
/**
|
|
56190
|
-
* History (D850):
|
|
56298
|
+
* History (D850, D917): one series per (item field, item `key`) — the item key
|
|
56299
|
+
* is the series scope, the item `label` names it. A vacuum tank's fill, a
|
|
56300
|
+
* brush's remaining life and a dishwasher's salt are each recorded the moment
|
|
56301
|
+
* their provider reports them; an item that appears later gets its series.
|
|
56191
56302
|
*/
|
|
56192
|
-
history:
|
|
56303
|
+
history: {
|
|
56304
|
+
fields: {},
|
|
56305
|
+
items: {
|
|
56306
|
+
path: "items",
|
|
56307
|
+
key: "key",
|
|
56308
|
+
label: "label",
|
|
56309
|
+
fields: {
|
|
56310
|
+
level: {
|
|
56311
|
+
kind: "gauge",
|
|
56312
|
+
unit: "%",
|
|
56313
|
+
deadband: 2,
|
|
56314
|
+
displayName: "Level"
|
|
56315
|
+
},
|
|
56316
|
+
status: {
|
|
56317
|
+
kind: "enum",
|
|
56318
|
+
displayName: "Status"
|
|
56319
|
+
},
|
|
56320
|
+
"remaining.value": {
|
|
56321
|
+
kind: "gauge",
|
|
56322
|
+
unitFrom: "remaining.unit",
|
|
56323
|
+
deadband: 1,
|
|
56324
|
+
displayName: "Remaining"
|
|
56325
|
+
}
|
|
56326
|
+
}
|
|
56327
|
+
}
|
|
56328
|
+
},
|
|
56193
56329
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
56194
56330
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
56195
56331
|
};
|
|
@@ -56604,8 +56740,9 @@ onStatusChanged: { data: object({
|
|
|
56604
56740
|
volatileStateFields: ["lastChangedAt"]
|
|
56605
56741
|
};
|
|
56606
56742
|
/**
|
|
56607
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56608
|
-
*
|
|
56743
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
56744
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
56745
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
56609
56746
|
*
|
|
56610
56747
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56611
56748
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56653,11 +56790,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56653
56790
|
"offline",
|
|
56654
56791
|
"description-missing"
|
|
56655
56792
|
]);
|
|
56656
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56657
|
-
"ok",
|
|
56658
|
-
"low",
|
|
56659
|
-
"empty"
|
|
56660
|
-
]);
|
|
56661
56793
|
var DishwasherStatusSchema = object({
|
|
56662
56794
|
availability: DishwasherAvailabilitySchema,
|
|
56663
56795
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56690,8 +56822,6 @@ var DishwasherStatusSchema = object({
|
|
|
56690
56822
|
powerOn: boolean().nullable(),
|
|
56691
56823
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56692
56824
|
powerState: string().nullable(),
|
|
56693
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56694
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56695
56825
|
/**
|
|
56696
56826
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56697
56827
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -66068,60 +66198,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
66068
66198
|
auth: "admin",
|
|
66069
66199
|
access: "delete"
|
|
66070
66200
|
});
|
|
66071
|
-
/**
|
|
66072
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
66073
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
66074
|
-
* optional fan-speed selector.
|
|
66075
|
-
*
|
|
66076
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
66077
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
66078
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
66079
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
66080
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
66081
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
66082
|
-
*
|
|
66083
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
66084
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
66085
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
66086
|
-
*
|
|
66087
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
66088
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
66089
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
66090
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
66091
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
66092
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
66093
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
66094
|
-
* so the HA provider leaves all four `null`.
|
|
66095
|
-
*/
|
|
66096
|
-
var VacuumStateSchema = _enum([
|
|
66097
|
-
"idle",
|
|
66098
|
-
"cleaning",
|
|
66099
|
-
"paused",
|
|
66100
|
-
"returning",
|
|
66101
|
-
"docked",
|
|
66102
|
-
"drying",
|
|
66103
|
-
"error"
|
|
66104
|
-
]);
|
|
66105
|
-
/**
|
|
66106
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
66107
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
66108
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
66109
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
66110
|
-
* hardware has no such tank at all.
|
|
66111
|
-
*/
|
|
66112
|
-
var TankStatusSchema = object({
|
|
66113
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
66114
|
-
level: number().min(0).max(100).nullable(),
|
|
66115
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
66116
|
-
status: _enum([
|
|
66117
|
-
"ok",
|
|
66118
|
-
"low",
|
|
66119
|
-
"full"
|
|
66120
|
-
]).nullable()
|
|
66121
|
-
});
|
|
66122
66201
|
var VacuumControlStatusSchema = object({
|
|
66123
66202
|
/** Lifecycle state of the vacuum. */
|
|
66124
|
-
state:
|
|
66203
|
+
state: _enum([
|
|
66204
|
+
"idle",
|
|
66205
|
+
"cleaning",
|
|
66206
|
+
"paused",
|
|
66207
|
+
"returning",
|
|
66208
|
+
"docked",
|
|
66209
|
+
"drying",
|
|
66210
|
+
"error"
|
|
66211
|
+
]),
|
|
66125
66212
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
66126
66213
|
* reading. */
|
|
66127
66214
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -66130,14 +66217,6 @@ var VacuumControlStatusSchema = object({
|
|
|
66130
66217
|
fanSpeed: string().nullable(),
|
|
66131
66218
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
66132
66219
|
availableFanSpeeds: array(string()),
|
|
66133
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
66134
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
66135
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
66136
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
66137
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
66138
|
-
detergent: TankStatusSchema.nullable(),
|
|
66139
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
66140
|
-
dustBin: TankStatusSchema.nullable(),
|
|
66141
66220
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
66142
66221
|
progressPercent: number().min(0).max(100).nullable(),
|
|
66143
66222
|
/** Current error code (0 / null = no error). */
|
|
@@ -66199,35 +66278,14 @@ var vacuumControlCapability = {
|
|
|
66199
66278
|
*/
|
|
66200
66279
|
durability: "session",
|
|
66201
66280
|
/**
|
|
66202
|
-
* History (D850): recorded series.
|
|
66281
|
+
* History (D850): recorded series. The tanks moved to `consumables` (D915), whose
|
|
66282
|
+
* items are keyed by runtime ids and record no history.
|
|
66203
66283
|
*/
|
|
66204
|
-
history: { fields: {
|
|
66205
|
-
|
|
66206
|
-
|
|
66207
|
-
|
|
66208
|
-
|
|
66209
|
-
},
|
|
66210
|
-
"cleanWater.level": {
|
|
66211
|
-
kind: "gauge",
|
|
66212
|
-
unit: "%",
|
|
66213
|
-
deadband: 2
|
|
66214
|
-
},
|
|
66215
|
-
"dirtyWater.level": {
|
|
66216
|
-
kind: "gauge",
|
|
66217
|
-
unit: "%",
|
|
66218
|
-
deadband: 2
|
|
66219
|
-
},
|
|
66220
|
-
"detergent.level": {
|
|
66221
|
-
kind: "gauge",
|
|
66222
|
-
unit: "%",
|
|
66223
|
-
deadband: 2
|
|
66224
|
-
},
|
|
66225
|
-
"dustBin.level": {
|
|
66226
|
-
kind: "gauge",
|
|
66227
|
-
unit: "%",
|
|
66228
|
-
deadband: 2
|
|
66229
|
-
}
|
|
66230
|
-
} }
|
|
66284
|
+
history: { fields: { batteryLevel: {
|
|
66285
|
+
kind: "gauge",
|
|
66286
|
+
unit: "%",
|
|
66287
|
+
deadband: 2
|
|
66288
|
+
} } }
|
|
66231
66289
|
};
|
|
66232
66290
|
var ValveStatusSchema = object({
|
|
66233
66291
|
/** Lifecycle state of the valve. */
|
|
@@ -70640,6 +70698,12 @@ Object.freeze({
|
|
|
70640
70698
|
addonId: null,
|
|
70641
70699
|
access: "create"
|
|
70642
70700
|
},
|
|
70701
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
70702
|
+
capName: "device-history",
|
|
70703
|
+
capScope: "system",
|
|
70704
|
+
addonId: null,
|
|
70705
|
+
access: "delete"
|
|
70706
|
+
},
|
|
70643
70707
|
"deviceHistory.getDeviceEnabled": {
|
|
70644
70708
|
capName: "device-history",
|
|
70645
70709
|
capScope: "system",
|
|
@@ -70658,6 +70722,12 @@ Object.freeze({
|
|
|
70658
70722
|
addonId: null,
|
|
70659
70723
|
access: "view"
|
|
70660
70724
|
},
|
|
70725
|
+
"deviceHistory.listOrphanSeries": {
|
|
70726
|
+
capName: "device-history",
|
|
70727
|
+
capScope: "system",
|
|
70728
|
+
addonId: null,
|
|
70729
|
+
access: "view"
|
|
70730
|
+
},
|
|
70661
70731
|
"deviceHistory.listSeries": {
|
|
70662
70732
|
capName: "device-history",
|
|
70663
70733
|
capScope: "system",
|
|
@@ -80881,7 +80951,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
80881
80951
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
80882
80952
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
80883
80953
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
80884
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
80954
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
80885
80955
|
([...RULE_TEXT], [...TANK]),
|
|
80886
80956
|
[...RULE_TEXT],
|
|
80887
80957
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-hikvision",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.170",
|
|
4
4
|
"description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|