@camstack/addon-provider-homeassistant 1.2.617 → 1.2.619
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-CfZUXrNa.js → dist-DwxJnRNc.js} +237 -123
- package/dist/{dist-D6huwmAr.mjs → dist-fqJMr4fu.mjs} +208 -124
- 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-DwxJnRNc.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-fqJMr4fu.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({
|
|
@@ -48808,7 +48865,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
48808
48865
|
modelId: string()
|
|
48809
48866
|
}),
|
|
48810
48867
|
object({ kind: literal("cpu-device") }),
|
|
48811
|
-
object({ kind: literal("coral-untouched") }),
|
|
48812
48868
|
object({ kind: literal("device-disabled") }),
|
|
48813
48869
|
object({ kind: literal("device-unavailable") }),
|
|
48814
48870
|
object({ kind: literal("node-offline") }),
|
|
@@ -48906,11 +48962,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
48906
48962
|
kind: literal("detector-store-unreadable"),
|
|
48907
48963
|
error: string()
|
|
48908
48964
|
}),
|
|
48909
|
-
object({
|
|
48910
|
-
kind: literal("coral-enabled"),
|
|
48911
|
-
nodeId: string(),
|
|
48912
|
-
deviceKey: string()
|
|
48913
|
-
}),
|
|
48914
48965
|
object({
|
|
48915
48966
|
kind: literal("custom-pin-kept"),
|
|
48916
48967
|
nodeId: string(),
|
|
@@ -56045,17 +56096,83 @@ var connectivityCapability = {
|
|
|
56045
56096
|
volatileStateFields: ["lastChangedAt"]
|
|
56046
56097
|
};
|
|
56047
56098
|
/**
|
|
56048
|
-
* Generic device-consumables capability —
|
|
56049
|
-
*
|
|
56050
|
-
* descaling cycles,
|
|
56051
|
-
*
|
|
56052
|
-
*
|
|
56053
|
-
*
|
|
56099
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
56100
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
56101
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
56102
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
56103
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
56104
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
56105
|
+
* its device tracks consumables registers it; the provider names each item
|
|
56106
|
+
* verbatim and says which `kind` it is.
|
|
56107
|
+
*
|
|
56108
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
56109
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
56110
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
56054
56111
|
*
|
|
56055
56112
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
56056
56113
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
56057
56114
|
* "No consumables reported" placeholder when `items` is empty.
|
|
56058
56115
|
*/
|
|
56116
|
+
/**
|
|
56117
|
+
* What an item IS, which decides which direction is bad:
|
|
56118
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
56119
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
56120
|
+
* salt, rinse aid); low or empty is bad.
|
|
56121
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
56122
|
+
* bad.
|
|
56123
|
+
* Absent = `wear`.
|
|
56124
|
+
*/
|
|
56125
|
+
var ConsumableKindSchema = _enum([
|
|
56126
|
+
"wear",
|
|
56127
|
+
"supply",
|
|
56128
|
+
"waste"
|
|
56129
|
+
]);
|
|
56130
|
+
/**
|
|
56131
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
56132
|
+
* of `kind`, which decides which direction is bad:
|
|
56133
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
56134
|
+
* remaining time and a reset.
|
|
56135
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
56136
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
56137
|
+
* a stepped level and "refill".
|
|
56138
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
56139
|
+
* that warns when full.
|
|
56140
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
56141
|
+
*/
|
|
56142
|
+
var ConsumableFormSchema = _enum([
|
|
56143
|
+
"part",
|
|
56144
|
+
"tank",
|
|
56145
|
+
"product",
|
|
56146
|
+
"bin"
|
|
56147
|
+
]);
|
|
56148
|
+
/** The provider's own discrete verdict on an item. */
|
|
56149
|
+
var ConsumableStatusSchema = _enum([
|
|
56150
|
+
"ok",
|
|
56151
|
+
"low",
|
|
56152
|
+
"empty",
|
|
56153
|
+
"full",
|
|
56154
|
+
"replace"
|
|
56155
|
+
]);
|
|
56156
|
+
_enum([
|
|
56157
|
+
"ok",
|
|
56158
|
+
"low",
|
|
56159
|
+
"empty",
|
|
56160
|
+
"full"
|
|
56161
|
+
]);
|
|
56162
|
+
/** The kind of an item, with the documented default for an absent one. */
|
|
56163
|
+
function consumableKindOf(item) {
|
|
56164
|
+
return item.kind ?? "wear";
|
|
56165
|
+
}
|
|
56166
|
+
/** The kind's default form: wear → part, waste → bin, supply → product. */
|
|
56167
|
+
var FORM_OF_KIND = {
|
|
56168
|
+
wear: "part",
|
|
56169
|
+
waste: "bin",
|
|
56170
|
+
supply: "product"
|
|
56171
|
+
};
|
|
56172
|
+
/** The form of an item: its own when the provider names one, else its kind's default. */
|
|
56173
|
+
function consumableFormOf(item) {
|
|
56174
|
+
return item.form ?? FORM_OF_KIND[consumableKindOf(item)];
|
|
56175
|
+
}
|
|
56059
56176
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
56060
56177
|
* each. */
|
|
56061
56178
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -56070,18 +56187,23 @@ var ConsumableRemainingSchema = object({
|
|
|
56070
56187
|
unit: ConsumableRemainingUnitSchema
|
|
56071
56188
|
});
|
|
56072
56189
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
56073
|
-
* life
|
|
56074
|
-
*
|
|
56075
|
-
* mutually exclusive; a provider may
|
|
56190
|
+
* life %, or fill % for a `supply` / `waste` item) or a discrete `status`
|
|
56191
|
+
* may be known — both may be null when a provider only knows the item
|
|
56192
|
+
* exists. `level` and `status` are not mutually exclusive; a provider may
|
|
56193
|
+
* report both. */
|
|
56076
56194
|
var ConsumableItemSchema = object({
|
|
56077
56195
|
/** Stable id, e.g. 'main-brush'. */
|
|
56078
56196
|
key: string().min(1),
|
|
56079
56197
|
/** Display name. */
|
|
56080
56198
|
label: string().min(1),
|
|
56081
|
-
/** Remaining life % when known (0..100). */
|
|
56199
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
56082
56200
|
level: number().min(0).max(100).nullable(),
|
|
56083
|
-
/**
|
|
56084
|
-
status:
|
|
56201
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
56202
|
+
status: ConsumableStatusSchema.nullable(),
|
|
56203
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
56204
|
+
kind: ConsumableKindSchema.optional(),
|
|
56205
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
56206
|
+
form: ConsumableFormSchema.optional(),
|
|
56085
56207
|
/** Ms epoch of the last replace, when known. */
|
|
56086
56208
|
lastResetAt: number().nullable(),
|
|
56087
56209
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -56104,7 +56226,7 @@ var consumablesCapability = {
|
|
|
56104
56226
|
kind: "widget",
|
|
56105
56227
|
widgetId: "host/consumables-panel",
|
|
56106
56228
|
tab: "consumables",
|
|
56107
|
-
|
|
56229
|
+
placement: "hero",
|
|
56108
56230
|
label: "Consumables",
|
|
56109
56231
|
order: 5
|
|
56110
56232
|
} },
|
|
@@ -56165,9 +56287,37 @@ reset: method(object({
|
|
|
56165
56287
|
*/
|
|
56166
56288
|
durability: "restored",
|
|
56167
56289
|
/**
|
|
56168
|
-
* History (D850):
|
|
56290
|
+
* History (D850, D917): one series per (item field, item `key`) — the item key
|
|
56291
|
+
* is the series scope, the item `label` names it. A vacuum tank's fill, a
|
|
56292
|
+
* brush's remaining life and a dishwasher's salt are each recorded the moment
|
|
56293
|
+
* their provider reports them; an item that appears later gets its series.
|
|
56169
56294
|
*/
|
|
56170
|
-
history:
|
|
56295
|
+
history: {
|
|
56296
|
+
fields: {},
|
|
56297
|
+
items: {
|
|
56298
|
+
path: "items",
|
|
56299
|
+
key: "key",
|
|
56300
|
+
label: "label",
|
|
56301
|
+
fields: {
|
|
56302
|
+
level: {
|
|
56303
|
+
kind: "gauge",
|
|
56304
|
+
unit: "%",
|
|
56305
|
+
deadband: 2,
|
|
56306
|
+
displayName: "Level"
|
|
56307
|
+
},
|
|
56308
|
+
status: {
|
|
56309
|
+
kind: "enum",
|
|
56310
|
+
displayName: "Status"
|
|
56311
|
+
},
|
|
56312
|
+
"remaining.value": {
|
|
56313
|
+
kind: "gauge",
|
|
56314
|
+
unitFrom: "remaining.unit",
|
|
56315
|
+
deadband: 1,
|
|
56316
|
+
displayName: "Remaining"
|
|
56317
|
+
}
|
|
56318
|
+
}
|
|
56319
|
+
}
|
|
56320
|
+
},
|
|
56171
56321
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
56172
56322
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
56173
56323
|
};
|
|
@@ -56582,8 +56732,9 @@ onStatusChanged: { data: object({
|
|
|
56582
56732
|
volatileStateFields: ["lastChangedAt"]
|
|
56583
56733
|
};
|
|
56584
56734
|
/**
|
|
56585
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56586
|
-
*
|
|
56735
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
56736
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
56737
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
56587
56738
|
*
|
|
56588
56739
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56589
56740
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56631,11 +56782,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56631
56782
|
"offline",
|
|
56632
56783
|
"description-missing"
|
|
56633
56784
|
]);
|
|
56634
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56635
|
-
"ok",
|
|
56636
|
-
"low",
|
|
56637
|
-
"empty"
|
|
56638
|
-
]);
|
|
56639
56785
|
var DishwasherStatusSchema = object({
|
|
56640
56786
|
availability: DishwasherAvailabilitySchema,
|
|
56641
56787
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56668,8 +56814,6 @@ var DishwasherStatusSchema = object({
|
|
|
56668
56814
|
powerOn: boolean().nullable(),
|
|
56669
56815
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56670
56816
|
powerState: string().nullable(),
|
|
56671
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56672
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56673
56817
|
/**
|
|
56674
56818
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56675
56819
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -65485,60 +65629,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65485
65629
|
auth: "admin",
|
|
65486
65630
|
access: "delete"
|
|
65487
65631
|
});
|
|
65488
|
-
/**
|
|
65489
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
65490
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
65491
|
-
* optional fan-speed selector.
|
|
65492
|
-
*
|
|
65493
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
65494
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
65495
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
65496
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
65497
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
65498
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
65499
|
-
*
|
|
65500
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
65501
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
65502
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
65503
|
-
*
|
|
65504
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
65505
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
65506
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
65507
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
65508
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
65509
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
65510
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
65511
|
-
* so the HA provider leaves all four `null`.
|
|
65512
|
-
*/
|
|
65513
|
-
var VacuumStateSchema = _enum([
|
|
65514
|
-
"idle",
|
|
65515
|
-
"cleaning",
|
|
65516
|
-
"paused",
|
|
65517
|
-
"returning",
|
|
65518
|
-
"docked",
|
|
65519
|
-
"drying",
|
|
65520
|
-
"error"
|
|
65521
|
-
]);
|
|
65522
|
-
/**
|
|
65523
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
65524
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
65525
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
65526
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
65527
|
-
* hardware has no such tank at all.
|
|
65528
|
-
*/
|
|
65529
|
-
var TankStatusSchema = object({
|
|
65530
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
65531
|
-
level: number().min(0).max(100).nullable(),
|
|
65532
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
65533
|
-
status: _enum([
|
|
65534
|
-
"ok",
|
|
65535
|
-
"low",
|
|
65536
|
-
"full"
|
|
65537
|
-
]).nullable()
|
|
65538
|
-
});
|
|
65539
65632
|
var VacuumControlStatusSchema = object({
|
|
65540
65633
|
/** Lifecycle state of the vacuum. */
|
|
65541
|
-
state:
|
|
65634
|
+
state: _enum([
|
|
65635
|
+
"idle",
|
|
65636
|
+
"cleaning",
|
|
65637
|
+
"paused",
|
|
65638
|
+
"returning",
|
|
65639
|
+
"docked",
|
|
65640
|
+
"drying",
|
|
65641
|
+
"error"
|
|
65642
|
+
]),
|
|
65542
65643
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
65543
65644
|
* reading. */
|
|
65544
65645
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -65547,14 +65648,6 @@ var VacuumControlStatusSchema = object({
|
|
|
65547
65648
|
fanSpeed: string().nullable(),
|
|
65548
65649
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
65549
65650
|
availableFanSpeeds: array(string()),
|
|
65550
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
65551
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
65552
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
65553
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
65554
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
65555
|
-
detergent: TankStatusSchema.nullable(),
|
|
65556
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
65557
|
-
dustBin: TankStatusSchema.nullable(),
|
|
65558
65651
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
65559
65652
|
progressPercent: number().min(0).max(100).nullable(),
|
|
65560
65653
|
/** Current error code (0 / null = no error). */
|
|
@@ -65616,35 +65709,14 @@ var vacuumControlCapability = {
|
|
|
65616
65709
|
*/
|
|
65617
65710
|
durability: "session",
|
|
65618
65711
|
/**
|
|
65619
|
-
* History (D850): recorded series.
|
|
65712
|
+
* History (D850): recorded series. The tanks moved to `consumables` (D915), whose
|
|
65713
|
+
* items are keyed by runtime ids and record no history.
|
|
65620
65714
|
*/
|
|
65621
|
-
history: { fields: {
|
|
65622
|
-
|
|
65623
|
-
|
|
65624
|
-
|
|
65625
|
-
|
|
65626
|
-
},
|
|
65627
|
-
"cleanWater.level": {
|
|
65628
|
-
kind: "gauge",
|
|
65629
|
-
unit: "%",
|
|
65630
|
-
deadband: 2
|
|
65631
|
-
},
|
|
65632
|
-
"dirtyWater.level": {
|
|
65633
|
-
kind: "gauge",
|
|
65634
|
-
unit: "%",
|
|
65635
|
-
deadband: 2
|
|
65636
|
-
},
|
|
65637
|
-
"detergent.level": {
|
|
65638
|
-
kind: "gauge",
|
|
65639
|
-
unit: "%",
|
|
65640
|
-
deadband: 2
|
|
65641
|
-
},
|
|
65642
|
-
"dustBin.level": {
|
|
65643
|
-
kind: "gauge",
|
|
65644
|
-
unit: "%",
|
|
65645
|
-
deadband: 2
|
|
65646
|
-
}
|
|
65647
|
-
} }
|
|
65715
|
+
history: { fields: { batteryLevel: {
|
|
65716
|
+
kind: "gauge",
|
|
65717
|
+
unit: "%",
|
|
65718
|
+
deadband: 2
|
|
65719
|
+
} } }
|
|
65648
65720
|
};
|
|
65649
65721
|
var ValveStatusSchema = object({
|
|
65650
65722
|
/** Lifecycle state of the valve. */
|
|
@@ -70038,6 +70110,12 @@ Object.freeze({
|
|
|
70038
70110
|
addonId: null,
|
|
70039
70111
|
access: "create"
|
|
70040
70112
|
},
|
|
70113
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
70114
|
+
capName: "device-history",
|
|
70115
|
+
capScope: "system",
|
|
70116
|
+
addonId: null,
|
|
70117
|
+
access: "delete"
|
|
70118
|
+
},
|
|
70041
70119
|
"deviceHistory.getDeviceEnabled": {
|
|
70042
70120
|
capName: "device-history",
|
|
70043
70121
|
capScope: "system",
|
|
@@ -70056,6 +70134,12 @@ Object.freeze({
|
|
|
70056
70134
|
addonId: null,
|
|
70057
70135
|
access: "view"
|
|
70058
70136
|
},
|
|
70137
|
+
"deviceHistory.listOrphanSeries": {
|
|
70138
|
+
capName: "device-history",
|
|
70139
|
+
capScope: "system",
|
|
70140
|
+
addonId: null,
|
|
70141
|
+
access: "view"
|
|
70142
|
+
},
|
|
70059
70143
|
"deviceHistory.listSeries": {
|
|
70060
70144
|
capName: "device-history",
|
|
70061
70145
|
capScope: "system",
|
|
@@ -80268,7 +80352,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
80268
80352
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
80269
80353
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
80270
80354
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
80271
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
80355
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
80272
80356
|
([...RULE_TEXT], [...TANK]),
|
|
80273
80357
|
[...RULE_TEXT],
|
|
80274
80358
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
@@ -81060,6 +81144,24 @@ Object.defineProperty(exports, "CameraSwitchIdSchema", {
|
|
|
81060
81144
|
return CameraSwitchIdSchema;
|
|
81061
81145
|
}
|
|
81062
81146
|
});
|
|
81147
|
+
Object.defineProperty(exports, "ConsumableFormSchema", {
|
|
81148
|
+
enumerable: true,
|
|
81149
|
+
get: function() {
|
|
81150
|
+
return ConsumableFormSchema;
|
|
81151
|
+
}
|
|
81152
|
+
});
|
|
81153
|
+
Object.defineProperty(exports, "ConsumableItemSchema", {
|
|
81154
|
+
enumerable: true,
|
|
81155
|
+
get: function() {
|
|
81156
|
+
return ConsumableItemSchema;
|
|
81157
|
+
}
|
|
81158
|
+
});
|
|
81159
|
+
Object.defineProperty(exports, "ConsumableStatusSchema", {
|
|
81160
|
+
enumerable: true,
|
|
81161
|
+
get: function() {
|
|
81162
|
+
return ConsumableStatusSchema;
|
|
81163
|
+
}
|
|
81164
|
+
});
|
|
81063
81165
|
Object.defineProperty(exports, "DeviceFeature", {
|
|
81064
81166
|
enumerable: true,
|
|
81065
81167
|
get: function() {
|
|
@@ -81252,6 +81354,18 @@ Object.defineProperty(exports, "connectivityCapability", {
|
|
|
81252
81354
|
return connectivityCapability;
|
|
81253
81355
|
}
|
|
81254
81356
|
});
|
|
81357
|
+
Object.defineProperty(exports, "consumableFormOf", {
|
|
81358
|
+
enumerable: true,
|
|
81359
|
+
get: function() {
|
|
81360
|
+
return consumableFormOf;
|
|
81361
|
+
}
|
|
81362
|
+
});
|
|
81363
|
+
Object.defineProperty(exports, "consumableKindOf", {
|
|
81364
|
+
enumerable: true,
|
|
81365
|
+
get: function() {
|
|
81366
|
+
return consumableKindOf;
|
|
81367
|
+
}
|
|
81368
|
+
});
|
|
81255
81369
|
Object.defineProperty(exports, "contactCapability", {
|
|
81256
81370
|
enumerable: true,
|
|
81257
81371
|
get: function() {
|