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