@camstack/addon-provider-homeassistant 1.2.618 → 1.2.620
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 +1 -9
- package/dist/addon.mjs +1 -9
- package/dist/{dist-BNSbY2dZ.js → dist-Bnr6izPr.js} +299 -120
- package/dist/{dist-BRSVYxR3.mjs → dist-kup3fDiz.mjs} +270 -121
- package/dist/ha-export/ha-export.addon.js +417 -27
- package/dist/ha-export/ha-export.addon.mjs +410 -27
- package/package.json +1 -1
|
@@ -5563,7 +5563,7 @@ var ZodIssueCode = {
|
|
|
5563
5563
|
var ZodFirstPartyTypeKind;
|
|
5564
5564
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5565
5565
|
//#endregion
|
|
5566
|
-
//#region ../types/dist/sleep-
|
|
5566
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5567
5567
|
/**
|
|
5568
5568
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5569
5569
|
* window to float samples (D455).
|
|
@@ -8702,7 +8702,11 @@ var ContributionSectionSchema = object({
|
|
|
8702
8702
|
literal(4)
|
|
8703
8703
|
]).optional(),
|
|
8704
8704
|
tab: string().optional(),
|
|
8705
|
-
location: _enum([
|
|
8705
|
+
location: _enum([
|
|
8706
|
+
"settings",
|
|
8707
|
+
"top-tab",
|
|
8708
|
+
"hero"
|
|
8709
|
+
]).optional(),
|
|
8706
8710
|
order: number().optional(),
|
|
8707
8711
|
fields: array(any())
|
|
8708
8712
|
});
|
|
@@ -13798,7 +13802,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13798
13802
|
literal(4)
|
|
13799
13803
|
]).optional(),
|
|
13800
13804
|
tab: string().optional(),
|
|
13801
|
-
location: _enum([
|
|
13805
|
+
location: _enum([
|
|
13806
|
+
"settings",
|
|
13807
|
+
"top-tab",
|
|
13808
|
+
"hero"
|
|
13809
|
+
]).optional(),
|
|
13802
13810
|
order: number().optional(),
|
|
13803
13811
|
fields: array(any())
|
|
13804
13812
|
});
|
|
@@ -17727,6 +17735,52 @@ var TierStatusSchema = object({
|
|
|
17727
17735
|
countedAt: number().nullable()
|
|
17728
17736
|
});
|
|
17729
17737
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17738
|
+
/**
|
|
17739
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17740
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17741
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17742
|
+
*/
|
|
17743
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17744
|
+
/** Rows held per stored tier. */
|
|
17745
|
+
var TierRowsSchema = object({
|
|
17746
|
+
raw: number().int(),
|
|
17747
|
+
"5m": number().int(),
|
|
17748
|
+
"1h": number().int(),
|
|
17749
|
+
"1d": number().int()
|
|
17750
|
+
});
|
|
17751
|
+
var OrphanSeriesSchema = object({
|
|
17752
|
+
seriesId: number().int(),
|
|
17753
|
+
deviceId: number().int(),
|
|
17754
|
+
key: string(),
|
|
17755
|
+
scope: string(),
|
|
17756
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17757
|
+
displayName: string().nullable(),
|
|
17758
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17759
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17760
|
+
missingSince: number().nullable(),
|
|
17761
|
+
firstTs: number(),
|
|
17762
|
+
lastTs: number(),
|
|
17763
|
+
rows: TierRowsSchema
|
|
17764
|
+
});
|
|
17765
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17766
|
+
"not-found",
|
|
17767
|
+
"not-orphan",
|
|
17768
|
+
"failed"
|
|
17769
|
+
]);
|
|
17770
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17771
|
+
seriesId: number().int(),
|
|
17772
|
+
ok: literal(true),
|
|
17773
|
+
deleted: TierRowsSchema
|
|
17774
|
+
}), object({
|
|
17775
|
+
seriesId: number().int(),
|
|
17776
|
+
ok: literal(false),
|
|
17777
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17778
|
+
})]);
|
|
17779
|
+
var OrphanListSchema = object({
|
|
17780
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17781
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17782
|
+
truncated: boolean()
|
|
17783
|
+
});
|
|
17730
17784
|
var DeviceHistoryStatusSchema = object({
|
|
17731
17785
|
startedAt: number(),
|
|
17732
17786
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17824,7 +17878,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17824
17878
|
}), object({ enabled: boolean() }), {
|
|
17825
17879
|
kind: "mutation",
|
|
17826
17880
|
auth: "admin"
|
|
17827
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17881
|
+
}), 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() }), {
|
|
17882
|
+
kind: "mutation",
|
|
17883
|
+
auth: "admin"
|
|
17884
|
+
});
|
|
17828
17885
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17829
17886
|
object({ state: literal("absent") }),
|
|
17830
17887
|
object({
|
|
@@ -51050,6 +51107,19 @@ var NodeInferenceDeviceSchema = object({
|
|
|
51050
51107
|
/** Whether the node's live probe reports the device as usable right now. */
|
|
51051
51108
|
available: boolean(),
|
|
51052
51109
|
/**
|
|
51110
|
+
* Is the device on the node at all (D919)? `present` — the live probe
|
|
51111
|
+
* reported it; `absent` — the probe ANSWERED and did not report it, so only
|
|
51112
|
+
* its stored settings remain (unplugged, moved to another node): never
|
|
51113
|
+
* eligible, whatever its stored `enabled`, and forgettable with
|
|
51114
|
+
* `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
|
|
51115
|
+
* claimed (D315). Optional only for an orchestrator older than the field.
|
|
51116
|
+
*/
|
|
51117
|
+
presence: _enum([
|
|
51118
|
+
"present",
|
|
51119
|
+
"absent",
|
|
51120
|
+
"unknown"
|
|
51121
|
+
]).optional(),
|
|
51122
|
+
/**
|
|
51053
51123
|
* Whether this device participates in dispatch. AUTO default (spec C2):
|
|
51054
51124
|
* accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
|
|
51055
51125
|
* entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
|
|
@@ -51275,7 +51345,13 @@ method(object({
|
|
|
51275
51345
|
}), object({ success: literal(true) }), {
|
|
51276
51346
|
kind: "mutation",
|
|
51277
51347
|
auth: "admin"
|
|
51278
|
-
}), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
|
|
51348
|
+
}), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
|
|
51349
|
+
agentNodeId: string(),
|
|
51350
|
+
deviceKey: string()
|
|
51351
|
+
}), object({ success: literal(true) }), {
|
|
51352
|
+
kind: "mutation",
|
|
51353
|
+
auth: "admin"
|
|
51354
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
51279
51355
|
success: literal(true),
|
|
51280
51356
|
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
51281
51357
|
effectiveModelId: string().nullable(),
|
|
@@ -56038,17 +56114,83 @@ var connectivityCapability = {
|
|
|
56038
56114
|
volatileStateFields: ["lastChangedAt"]
|
|
56039
56115
|
};
|
|
56040
56116
|
/**
|
|
56041
|
-
* Generic device-consumables capability —
|
|
56042
|
-
*
|
|
56043
|
-
* descaling cycles,
|
|
56044
|
-
*
|
|
56045
|
-
*
|
|
56046
|
-
*
|
|
56117
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
56118
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
56119
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
56120
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
56121
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
56122
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
56123
|
+
* its device tracks consumables registers it; the provider names each item
|
|
56124
|
+
* verbatim and says which `kind` it is.
|
|
56125
|
+
*
|
|
56126
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
56127
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
56128
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
56047
56129
|
*
|
|
56048
56130
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
56049
56131
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
56050
56132
|
* "No consumables reported" placeholder when `items` is empty.
|
|
56051
56133
|
*/
|
|
56134
|
+
/**
|
|
56135
|
+
* What an item IS, which decides which direction is bad:
|
|
56136
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
56137
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
56138
|
+
* salt, rinse aid); low or empty is bad.
|
|
56139
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
56140
|
+
* bad.
|
|
56141
|
+
* Absent = `wear`.
|
|
56142
|
+
*/
|
|
56143
|
+
var ConsumableKindSchema = _enum([
|
|
56144
|
+
"wear",
|
|
56145
|
+
"supply",
|
|
56146
|
+
"waste"
|
|
56147
|
+
]);
|
|
56148
|
+
/**
|
|
56149
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
56150
|
+
* of `kind`, which decides which direction is bad:
|
|
56151
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
56152
|
+
* remaining time and a reset.
|
|
56153
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
56154
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
56155
|
+
* a stepped level and "refill".
|
|
56156
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
56157
|
+
* that warns when full.
|
|
56158
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
56159
|
+
*/
|
|
56160
|
+
var ConsumableFormSchema = _enum([
|
|
56161
|
+
"part",
|
|
56162
|
+
"tank",
|
|
56163
|
+
"product",
|
|
56164
|
+
"bin"
|
|
56165
|
+
]);
|
|
56166
|
+
/** The provider's own discrete verdict on an item. */
|
|
56167
|
+
var ConsumableStatusSchema = _enum([
|
|
56168
|
+
"ok",
|
|
56169
|
+
"low",
|
|
56170
|
+
"empty",
|
|
56171
|
+
"full",
|
|
56172
|
+
"replace"
|
|
56173
|
+
]);
|
|
56174
|
+
_enum([
|
|
56175
|
+
"ok",
|
|
56176
|
+
"low",
|
|
56177
|
+
"empty",
|
|
56178
|
+
"full"
|
|
56179
|
+
]);
|
|
56180
|
+
/** The kind of an item, with the documented default for an absent one. */
|
|
56181
|
+
function consumableKindOf(item) {
|
|
56182
|
+
return item.kind ?? "wear";
|
|
56183
|
+
}
|
|
56184
|
+
/** The kind's default form: wear → part, waste → bin, supply → product. */
|
|
56185
|
+
var FORM_OF_KIND = {
|
|
56186
|
+
wear: "part",
|
|
56187
|
+
waste: "bin",
|
|
56188
|
+
supply: "product"
|
|
56189
|
+
};
|
|
56190
|
+
/** The form of an item: its own when the provider names one, else its kind's default. */
|
|
56191
|
+
function consumableFormOf(item) {
|
|
56192
|
+
return item.form ?? FORM_OF_KIND[consumableKindOf(item)];
|
|
56193
|
+
}
|
|
56052
56194
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
56053
56195
|
* each. */
|
|
56054
56196
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -56063,18 +56205,23 @@ var ConsumableRemainingSchema = object({
|
|
|
56063
56205
|
unit: ConsumableRemainingUnitSchema
|
|
56064
56206
|
});
|
|
56065
56207
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
56066
|
-
* life
|
|
56067
|
-
*
|
|
56068
|
-
* mutually exclusive; a provider may
|
|
56208
|
+
* life %, or fill % for a `supply` / `waste` item) or a discrete `status`
|
|
56209
|
+
* may be known — both may be null when a provider only knows the item
|
|
56210
|
+
* exists. `level` and `status` are not mutually exclusive; a provider may
|
|
56211
|
+
* report both. */
|
|
56069
56212
|
var ConsumableItemSchema = object({
|
|
56070
56213
|
/** Stable id, e.g. 'main-brush'. */
|
|
56071
56214
|
key: string().min(1),
|
|
56072
56215
|
/** Display name. */
|
|
56073
56216
|
label: string().min(1),
|
|
56074
|
-
/** Remaining life % when known (0..100). */
|
|
56217
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
56075
56218
|
level: number().min(0).max(100).nullable(),
|
|
56076
|
-
/**
|
|
56077
|
-
status:
|
|
56219
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
56220
|
+
status: ConsumableStatusSchema.nullable(),
|
|
56221
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
56222
|
+
kind: ConsumableKindSchema.optional(),
|
|
56223
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
56224
|
+
form: ConsumableFormSchema.optional(),
|
|
56078
56225
|
/** Ms epoch of the last replace, when known. */
|
|
56079
56226
|
lastResetAt: number().nullable(),
|
|
56080
56227
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -56097,7 +56244,7 @@ var consumablesCapability = {
|
|
|
56097
56244
|
kind: "widget",
|
|
56098
56245
|
widgetId: "host/consumables-panel",
|
|
56099
56246
|
tab: "consumables",
|
|
56100
|
-
|
|
56247
|
+
placement: "hero",
|
|
56101
56248
|
label: "Consumables",
|
|
56102
56249
|
order: 5
|
|
56103
56250
|
} },
|
|
@@ -56158,9 +56305,37 @@ reset: method(object({
|
|
|
56158
56305
|
*/
|
|
56159
56306
|
durability: "restored",
|
|
56160
56307
|
/**
|
|
56161
|
-
* History (D850):
|
|
56308
|
+
* History (D850, D917): one series per (item field, item `key`) — the item key
|
|
56309
|
+
* is the series scope, the item `label` names it. A vacuum tank's fill, a
|
|
56310
|
+
* brush's remaining life and a dishwasher's salt are each recorded the moment
|
|
56311
|
+
* their provider reports them; an item that appears later gets its series.
|
|
56162
56312
|
*/
|
|
56163
|
-
history:
|
|
56313
|
+
history: {
|
|
56314
|
+
fields: {},
|
|
56315
|
+
items: {
|
|
56316
|
+
path: "items",
|
|
56317
|
+
key: "key",
|
|
56318
|
+
label: "label",
|
|
56319
|
+
fields: {
|
|
56320
|
+
level: {
|
|
56321
|
+
kind: "gauge",
|
|
56322
|
+
unit: "%",
|
|
56323
|
+
deadband: 2,
|
|
56324
|
+
displayName: "Level"
|
|
56325
|
+
},
|
|
56326
|
+
status: {
|
|
56327
|
+
kind: "enum",
|
|
56328
|
+
displayName: "Status"
|
|
56329
|
+
},
|
|
56330
|
+
"remaining.value": {
|
|
56331
|
+
kind: "gauge",
|
|
56332
|
+
unitFrom: "remaining.unit",
|
|
56333
|
+
deadband: 1,
|
|
56334
|
+
displayName: "Remaining"
|
|
56335
|
+
}
|
|
56336
|
+
}
|
|
56337
|
+
}
|
|
56338
|
+
},
|
|
56164
56339
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
56165
56340
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
56166
56341
|
};
|
|
@@ -56575,8 +56750,9 @@ onStatusChanged: { data: object({
|
|
|
56575
56750
|
volatileStateFields: ["lastChangedAt"]
|
|
56576
56751
|
};
|
|
56577
56752
|
/**
|
|
56578
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56579
|
-
*
|
|
56753
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
56754
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
56755
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
56580
56756
|
*
|
|
56581
56757
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56582
56758
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56624,11 +56800,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56624
56800
|
"offline",
|
|
56625
56801
|
"description-missing"
|
|
56626
56802
|
]);
|
|
56627
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56628
|
-
"ok",
|
|
56629
|
-
"low",
|
|
56630
|
-
"empty"
|
|
56631
|
-
]);
|
|
56632
56803
|
var DishwasherStatusSchema = object({
|
|
56633
56804
|
availability: DishwasherAvailabilitySchema,
|
|
56634
56805
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56661,8 +56832,6 @@ var DishwasherStatusSchema = object({
|
|
|
56661
56832
|
powerOn: boolean().nullable(),
|
|
56662
56833
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56663
56834
|
powerState: string().nullable(),
|
|
56664
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56665
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56666
56835
|
/**
|
|
56667
56836
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56668
56837
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -59538,7 +59707,7 @@ var motionTriggerCapability = {
|
|
|
59538
59707
|
enabled: boolean()
|
|
59539
59708
|
}), _void(), {
|
|
59540
59709
|
kind: "mutation",
|
|
59541
|
-
auth: "
|
|
59710
|
+
auth: "protected"
|
|
59542
59711
|
}) },
|
|
59543
59712
|
events: { onMotionTriggerChanged: { data: object({
|
|
59544
59713
|
deviceId: number(),
|
|
@@ -60268,6 +60437,13 @@ var TopologyNodeSchema = object({
|
|
|
60268
60437
|
cpuModel: string().nullable(),
|
|
60269
60438
|
cpuCores: number(),
|
|
60270
60439
|
memoryMB: number(),
|
|
60440
|
+
/**
|
|
60441
|
+
* The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
|
|
60442
|
+
* openvino, edgetpu …) — not its devices. An installed runtime says nothing
|
|
60443
|
+
* about whether its hardware is there (a Coral delegate stays installed
|
|
60444
|
+
* after the stick leaves, D919); the live device set is
|
|
60445
|
+
* `pipelineOrchestrator.getNodeInferenceDevices`.
|
|
60446
|
+
*/
|
|
60271
60447
|
engines: array(string()).readonly(),
|
|
60272
60448
|
isHub: boolean(),
|
|
60273
60449
|
isOnline: boolean(),
|
|
@@ -61385,7 +61561,28 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
61385
61561
|
format: ModelFormatSchema,
|
|
61386
61562
|
reason: string()
|
|
61387
61563
|
});
|
|
61388
|
-
|
|
61564
|
+
/**
|
|
61565
|
+
* The answer of an accelerator rescan (D919): the node's device list after
|
|
61566
|
+
* the re-probe, what changed, and the evidence that decided the Coral answer
|
|
61567
|
+
* (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
|
|
61568
|
+
* bus, the installed-delegate fallback, or nothing).
|
|
61569
|
+
*/
|
|
61570
|
+
var AcceleratorRescanSchema = object({
|
|
61571
|
+
devices: array(InferenceDeviceDescriptorSchema).readonly(),
|
|
61572
|
+
appeared: array(string()).readonly(),
|
|
61573
|
+
disappeared: array(string()).readonly(),
|
|
61574
|
+
usbBus: _enum(["observed", "unobservable"]),
|
|
61575
|
+
decidedBy: _enum([
|
|
61576
|
+
"usb-ids",
|
|
61577
|
+
"pci",
|
|
61578
|
+
"delegate-fallback",
|
|
61579
|
+
"none"
|
|
61580
|
+
])
|
|
61581
|
+
});
|
|
61582
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
|
|
61583
|
+
kind: "mutation",
|
|
61584
|
+
auth: "admin"
|
|
61585
|
+
});
|
|
61389
61586
|
/**
|
|
61390
61587
|
* Multi-metric electrical meter. One slice can carry any combination
|
|
61391
61588
|
* of instantaneous power (W), cumulative energy (kWh), voltage (V),
|
|
@@ -65478,60 +65675,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65478
65675
|
auth: "admin",
|
|
65479
65676
|
access: "delete"
|
|
65480
65677
|
});
|
|
65481
|
-
/**
|
|
65482
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
65483
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
65484
|
-
* optional fan-speed selector.
|
|
65485
|
-
*
|
|
65486
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
65487
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
65488
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
65489
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
65490
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
65491
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
65492
|
-
*
|
|
65493
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
65494
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
65495
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
65496
|
-
*
|
|
65497
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
65498
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
65499
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
65500
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
65501
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
65502
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
65503
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
65504
|
-
* so the HA provider leaves all four `null`.
|
|
65505
|
-
*/
|
|
65506
|
-
var VacuumStateSchema = _enum([
|
|
65507
|
-
"idle",
|
|
65508
|
-
"cleaning",
|
|
65509
|
-
"paused",
|
|
65510
|
-
"returning",
|
|
65511
|
-
"docked",
|
|
65512
|
-
"drying",
|
|
65513
|
-
"error"
|
|
65514
|
-
]);
|
|
65515
|
-
/**
|
|
65516
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
65517
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
65518
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
65519
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
65520
|
-
* hardware has no such tank at all.
|
|
65521
|
-
*/
|
|
65522
|
-
var TankStatusSchema = object({
|
|
65523
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
65524
|
-
level: number().min(0).max(100).nullable(),
|
|
65525
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
65526
|
-
status: _enum([
|
|
65527
|
-
"ok",
|
|
65528
|
-
"low",
|
|
65529
|
-
"full"
|
|
65530
|
-
]).nullable()
|
|
65531
|
-
});
|
|
65532
65678
|
var VacuumControlStatusSchema = object({
|
|
65533
65679
|
/** Lifecycle state of the vacuum. */
|
|
65534
|
-
state:
|
|
65680
|
+
state: _enum([
|
|
65681
|
+
"idle",
|
|
65682
|
+
"cleaning",
|
|
65683
|
+
"paused",
|
|
65684
|
+
"returning",
|
|
65685
|
+
"docked",
|
|
65686
|
+
"drying",
|
|
65687
|
+
"error"
|
|
65688
|
+
]),
|
|
65535
65689
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
65536
65690
|
* reading. */
|
|
65537
65691
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -65540,14 +65694,6 @@ var VacuumControlStatusSchema = object({
|
|
|
65540
65694
|
fanSpeed: string().nullable(),
|
|
65541
65695
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
65542
65696
|
availableFanSpeeds: array(string()),
|
|
65543
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
65544
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
65545
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
65546
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
65547
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
65548
|
-
detergent: TankStatusSchema.nullable(),
|
|
65549
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
65550
|
-
dustBin: TankStatusSchema.nullable(),
|
|
65551
65697
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
65552
65698
|
progressPercent: number().min(0).max(100).nullable(),
|
|
65553
65699
|
/** Current error code (0 / null = no error). */
|
|
@@ -65609,35 +65755,14 @@ var vacuumControlCapability = {
|
|
|
65609
65755
|
*/
|
|
65610
65756
|
durability: "session",
|
|
65611
65757
|
/**
|
|
65612
|
-
* History (D850): recorded series.
|
|
65758
|
+
* History (D850): recorded series. The tanks moved to `consumables` (D915), whose
|
|
65759
|
+
* items are keyed by runtime ids and record no history.
|
|
65613
65760
|
*/
|
|
65614
|
-
history: { fields: {
|
|
65615
|
-
|
|
65616
|
-
|
|
65617
|
-
|
|
65618
|
-
|
|
65619
|
-
},
|
|
65620
|
-
"cleanWater.level": {
|
|
65621
|
-
kind: "gauge",
|
|
65622
|
-
unit: "%",
|
|
65623
|
-
deadband: 2
|
|
65624
|
-
},
|
|
65625
|
-
"dirtyWater.level": {
|
|
65626
|
-
kind: "gauge",
|
|
65627
|
-
unit: "%",
|
|
65628
|
-
deadband: 2
|
|
65629
|
-
},
|
|
65630
|
-
"detergent.level": {
|
|
65631
|
-
kind: "gauge",
|
|
65632
|
-
unit: "%",
|
|
65633
|
-
deadband: 2
|
|
65634
|
-
},
|
|
65635
|
-
"dustBin.level": {
|
|
65636
|
-
kind: "gauge",
|
|
65637
|
-
unit: "%",
|
|
65638
|
-
deadband: 2
|
|
65639
|
-
}
|
|
65640
|
-
} }
|
|
65761
|
+
history: { fields: { batteryLevel: {
|
|
65762
|
+
kind: "gauge",
|
|
65763
|
+
unit: "%",
|
|
65764
|
+
deadband: 2
|
|
65765
|
+
} } }
|
|
65641
65766
|
};
|
|
65642
65767
|
var ValveStatusSchema = object({
|
|
65643
65768
|
/** Lifecycle state of the valve. */
|
|
@@ -70031,6 +70156,12 @@ Object.freeze({
|
|
|
70031
70156
|
addonId: null,
|
|
70032
70157
|
access: "create"
|
|
70033
70158
|
},
|
|
70159
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
70160
|
+
capName: "device-history",
|
|
70161
|
+
capScope: "system",
|
|
70162
|
+
addonId: null,
|
|
70163
|
+
access: "delete"
|
|
70164
|
+
},
|
|
70034
70165
|
"deviceHistory.getDeviceEnabled": {
|
|
70035
70166
|
capName: "device-history",
|
|
70036
70167
|
capScope: "system",
|
|
@@ -70049,6 +70180,12 @@ Object.freeze({
|
|
|
70049
70180
|
addonId: null,
|
|
70050
70181
|
access: "view"
|
|
70051
70182
|
},
|
|
70183
|
+
"deviceHistory.listOrphanSeries": {
|
|
70184
|
+
capName: "device-history",
|
|
70185
|
+
capScope: "system",
|
|
70186
|
+
addonId: null,
|
|
70187
|
+
access: "view"
|
|
70188
|
+
},
|
|
70052
70189
|
"deviceHistory.listSeries": {
|
|
70053
70190
|
capName: "device-history",
|
|
70054
70191
|
capScope: "system",
|
|
@@ -73673,6 +73810,12 @@ Object.freeze({
|
|
|
73673
73810
|
addonId: null,
|
|
73674
73811
|
access: "delete"
|
|
73675
73812
|
},
|
|
73813
|
+
"pipelineOrchestrator.forgetInferenceDevice": {
|
|
73814
|
+
capName: "pipeline-orchestrator",
|
|
73815
|
+
capScope: "system",
|
|
73816
|
+
addonId: null,
|
|
73817
|
+
access: "delete"
|
|
73818
|
+
},
|
|
73676
73819
|
"pipelineOrchestrator.getAgentLoad": {
|
|
73677
73820
|
capName: "pipeline-orchestrator",
|
|
73678
73821
|
capScope: "system",
|
|
@@ -74249,6 +74392,12 @@ Object.freeze({
|
|
|
74249
74392
|
addonId: null,
|
|
74250
74393
|
access: "view"
|
|
74251
74394
|
},
|
|
74395
|
+
"platformProbe.rescanAccelerators": {
|
|
74396
|
+
capName: "platform-probe",
|
|
74397
|
+
capScope: "system",
|
|
74398
|
+
addonId: null,
|
|
74399
|
+
access: "create"
|
|
74400
|
+
},
|
|
74252
74401
|
"platformProbe.resolveHwAccel": {
|
|
74253
74402
|
capName: "platform-probe",
|
|
74254
74403
|
capScope: "system",
|
|
@@ -80261,7 +80410,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
80261
80410
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
80262
80411
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
80263
80412
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
80264
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
80413
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
80265
80414
|
([...RULE_TEXT], [...TANK]),
|
|
80266
80415
|
[...RULE_TEXT],
|
|
80267
80416
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
@@ -81011,4 +81160,4 @@ function bestLocationMatch(externalName, existing, threshold = .8) {
|
|
|
81011
81160
|
var MB = 1024 * 1024;
|
|
81012
81161
|
1024 * MB, 3072 * MB;
|
|
81013
81162
|
//#endregion
|
|
81014
|
-
export {
|
|
81163
|
+
export { motionCapability as $, carbonMonoxideCapability as A, entryBody as At, deviceAdoptionCapability as B, string as Bt, binaryCapability as C, DeviceType as Ct, buildDeviceAdminUrl as D, createEvent as Dt, buildAddonRouteProvider as E, RecordSecretUnavailableError as Et, consumableKindOf as F, discriminatedUnion as Ft, floodCapability as G, enumSensorCapability as H, unknown as Ht, contactCapability as I, literal as It, humiditySensorCapability as J, gasCapability as K, controlCapability as L, number as Lt, colorCapability as M, _enum as Mt, connectivityCapability as N, array as Nt, buttonCapability as O, defineEntryKind as Ot, consumableFormOf as P, boolean as Pt, mediaPlayerCapability as Q, coverCapability as R, object as Rt, bestLocationMatch as S, DeviceRole as St, brokerCapability as T, BaseAddon as Tt, eventEmitterCapability as U, url as Ut, deviceExportCapability as V, union as Vt, fanControlCapability as W, EventCategory as Wt, lawnMowerControlCapability as X, imageCapability as Y, lockControlCapability as Z, airQualitySensorCapability as _, valveCapability as _t, COCO_TO_MACRO as a, parseAdminBase as at, automationControlCapability as b, weatherCapability as bt, ConsumableItemSchema as c, presenceCapability as ct, FanDirectionSchema as d, smokeCapability as dt, normalizeUnit as et, HvacModeSchema as f, switchCapability as ft, addonRoutesCapability as g, vacuumControlCapability as gt, accessoriesCapability as h, updateCapability as ht, CAMERA_SWITCH_ORDER as i, oauthIntegrationCapability as it, climateControlCapability as j, nodePin as jt, calendarSourceCapability as k, defineRecordKinds as kt, ConsumableStatusSchema as l, pressureSensorCapability as lt, TargetSchema as m, temperatureSensorCapability as mt, BaseDevice as n, notifierCapability as nt, CameraSwitchIdSchema as o, powerMeterCapability as ot, MediaPlayerRepeatSchema as p, tamperCapability as pt, humidifierCapability as q, BaseDeviceProvider as r, numericSensorCapability as rt, ConsumableFormSchema as s, prepareNotification as st, AlarmArmModeSchema as t, notificationOutputCapability as tt, EnumSensorDateTimeFormatSchema as u, scriptRunnerCapability as ut, alarmPanelCapability as v, vibrationCapability as vt, brightnessCapability as w, errMsg as wt, batteryCapability as x, DeviceFeature as xt, ambientLightSensorCapability as y, waterHeaterCapability as yt, deviceAdminLinkCapability as z, record as zt };
|