@camstack/addon-import-alexa 0.2.143 → 0.2.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +193 -123
- package/dist/addon.mjs +193 -123
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5603,7 +5603,7 @@ var ZodIssueCode = {
|
|
|
5603
5603
|
var ZodFirstPartyTypeKind;
|
|
5604
5604
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5605
5605
|
//#endregion
|
|
5606
|
-
//#region ../types/dist/sleep-
|
|
5606
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5607
5607
|
/**
|
|
5608
5608
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5609
5609
|
* window to float samples (D455).
|
|
@@ -8683,7 +8683,11 @@ var ContributionSectionSchema = object({
|
|
|
8683
8683
|
literal(4)
|
|
8684
8684
|
]).optional(),
|
|
8685
8685
|
tab: string().optional(),
|
|
8686
|
-
location: _enum([
|
|
8686
|
+
location: _enum([
|
|
8687
|
+
"settings",
|
|
8688
|
+
"top-tab",
|
|
8689
|
+
"hero"
|
|
8690
|
+
]).optional(),
|
|
8687
8691
|
order: number().optional(),
|
|
8688
8692
|
fields: array(any())
|
|
8689
8693
|
});
|
|
@@ -13752,7 +13756,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13752
13756
|
literal(4)
|
|
13753
13757
|
]).optional(),
|
|
13754
13758
|
tab: string().optional(),
|
|
13755
|
-
location: _enum([
|
|
13759
|
+
location: _enum([
|
|
13760
|
+
"settings",
|
|
13761
|
+
"top-tab",
|
|
13762
|
+
"hero"
|
|
13763
|
+
]).optional(),
|
|
13756
13764
|
order: number().optional(),
|
|
13757
13765
|
fields: array(any())
|
|
13758
13766
|
});
|
|
@@ -17681,6 +17689,52 @@ var TierStatusSchema = object({
|
|
|
17681
17689
|
countedAt: number().nullable()
|
|
17682
17690
|
});
|
|
17683
17691
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17692
|
+
/**
|
|
17693
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17694
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17695
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17696
|
+
*/
|
|
17697
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17698
|
+
/** Rows held per stored tier. */
|
|
17699
|
+
var TierRowsSchema = object({
|
|
17700
|
+
raw: number().int(),
|
|
17701
|
+
"5m": number().int(),
|
|
17702
|
+
"1h": number().int(),
|
|
17703
|
+
"1d": number().int()
|
|
17704
|
+
});
|
|
17705
|
+
var OrphanSeriesSchema = object({
|
|
17706
|
+
seriesId: number().int(),
|
|
17707
|
+
deviceId: number().int(),
|
|
17708
|
+
key: string(),
|
|
17709
|
+
scope: string(),
|
|
17710
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17711
|
+
displayName: string().nullable(),
|
|
17712
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17713
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17714
|
+
missingSince: number().nullable(),
|
|
17715
|
+
firstTs: number(),
|
|
17716
|
+
lastTs: number(),
|
|
17717
|
+
rows: TierRowsSchema
|
|
17718
|
+
});
|
|
17719
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17720
|
+
"not-found",
|
|
17721
|
+
"not-orphan",
|
|
17722
|
+
"failed"
|
|
17723
|
+
]);
|
|
17724
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17725
|
+
seriesId: number().int(),
|
|
17726
|
+
ok: literal(true),
|
|
17727
|
+
deleted: TierRowsSchema
|
|
17728
|
+
}), object({
|
|
17729
|
+
seriesId: number().int(),
|
|
17730
|
+
ok: literal(false),
|
|
17731
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17732
|
+
})]);
|
|
17733
|
+
var OrphanListSchema = object({
|
|
17734
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17735
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17736
|
+
truncated: boolean()
|
|
17737
|
+
});
|
|
17684
17738
|
var DeviceHistoryStatusSchema = object({
|
|
17685
17739
|
startedAt: number(),
|
|
17686
17740
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17778,7 +17832,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17778
17832
|
}), object({ enabled: boolean() }), {
|
|
17779
17833
|
kind: "mutation",
|
|
17780
17834
|
auth: "admin"
|
|
17781
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17835
|
+
}), 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() }), {
|
|
17836
|
+
kind: "mutation",
|
|
17837
|
+
auth: "admin"
|
|
17838
|
+
});
|
|
17782
17839
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17783
17840
|
object({ state: literal("absent") }),
|
|
17784
17841
|
object({
|
|
@@ -48506,7 +48563,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
48506
48563
|
modelId: string()
|
|
48507
48564
|
}),
|
|
48508
48565
|
object({ kind: literal("cpu-device") }),
|
|
48509
|
-
object({ kind: literal("coral-untouched") }),
|
|
48510
48566
|
object({ kind: literal("device-disabled") }),
|
|
48511
48567
|
object({ kind: literal("device-unavailable") }),
|
|
48512
48568
|
object({ kind: literal("node-offline") }),
|
|
@@ -48604,11 +48660,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
48604
48660
|
kind: literal("detector-store-unreadable"),
|
|
48605
48661
|
error: string()
|
|
48606
48662
|
}),
|
|
48607
|
-
object({
|
|
48608
|
-
kind: literal("coral-enabled"),
|
|
48609
|
-
nodeId: string(),
|
|
48610
|
-
deviceKey: string()
|
|
48611
|
-
}),
|
|
48612
48663
|
object({
|
|
48613
48664
|
kind: literal("custom-pin-kept"),
|
|
48614
48665
|
nodeId: string(),
|
|
@@ -55661,17 +55712,69 @@ var connectivityCapability = {
|
|
|
55661
55712
|
volatileStateFields: ["lastChangedAt"]
|
|
55662
55713
|
};
|
|
55663
55714
|
/**
|
|
55664
|
-
* Generic device-consumables capability —
|
|
55665
|
-
*
|
|
55666
|
-
* descaling cycles,
|
|
55667
|
-
*
|
|
55668
|
-
*
|
|
55669
|
-
*
|
|
55715
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
55716
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
55717
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
55718
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
55719
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
55720
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
55721
|
+
* its device tracks consumables registers it; the provider names each item
|
|
55722
|
+
* verbatim and says which `kind` it is.
|
|
55723
|
+
*
|
|
55724
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
55725
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
55726
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
55670
55727
|
*
|
|
55671
55728
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
55672
55729
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
55673
55730
|
* "No consumables reported" placeholder when `items` is empty.
|
|
55674
55731
|
*/
|
|
55732
|
+
/**
|
|
55733
|
+
* What an item IS, which decides which direction is bad:
|
|
55734
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
55735
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
55736
|
+
* salt, rinse aid); low or empty is bad.
|
|
55737
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
55738
|
+
* bad.
|
|
55739
|
+
* Absent = `wear`.
|
|
55740
|
+
*/
|
|
55741
|
+
var ConsumableKindSchema = _enum([
|
|
55742
|
+
"wear",
|
|
55743
|
+
"supply",
|
|
55744
|
+
"waste"
|
|
55745
|
+
]);
|
|
55746
|
+
/**
|
|
55747
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
55748
|
+
* of `kind`, which decides which direction is bad:
|
|
55749
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
55750
|
+
* remaining time and a reset.
|
|
55751
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
55752
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
55753
|
+
* a stepped level and "refill".
|
|
55754
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
55755
|
+
* that warns when full.
|
|
55756
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
55757
|
+
*/
|
|
55758
|
+
var ConsumableFormSchema = _enum([
|
|
55759
|
+
"part",
|
|
55760
|
+
"tank",
|
|
55761
|
+
"product",
|
|
55762
|
+
"bin"
|
|
55763
|
+
]);
|
|
55764
|
+
/** The provider's own discrete verdict on an item. */
|
|
55765
|
+
var ConsumableStatusSchema = _enum([
|
|
55766
|
+
"ok",
|
|
55767
|
+
"low",
|
|
55768
|
+
"empty",
|
|
55769
|
+
"full",
|
|
55770
|
+
"replace"
|
|
55771
|
+
]);
|
|
55772
|
+
_enum([
|
|
55773
|
+
"ok",
|
|
55774
|
+
"low",
|
|
55775
|
+
"empty",
|
|
55776
|
+
"full"
|
|
55777
|
+
]);
|
|
55675
55778
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
55676
55779
|
* each. */
|
|
55677
55780
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -55686,18 +55789,23 @@ var ConsumableRemainingSchema = object({
|
|
|
55686
55789
|
unit: ConsumableRemainingUnitSchema
|
|
55687
55790
|
});
|
|
55688
55791
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
55689
|
-
* life
|
|
55690
|
-
*
|
|
55691
|
-
* mutually exclusive; a provider may
|
|
55792
|
+
* life %, or fill % for a `supply` / `waste` item) or a discrete `status`
|
|
55793
|
+
* may be known — both may be null when a provider only knows the item
|
|
55794
|
+
* exists. `level` and `status` are not mutually exclusive; a provider may
|
|
55795
|
+
* report both. */
|
|
55692
55796
|
var ConsumableItemSchema = object({
|
|
55693
55797
|
/** Stable id, e.g. 'main-brush'. */
|
|
55694
55798
|
key: string().min(1),
|
|
55695
55799
|
/** Display name. */
|
|
55696
55800
|
label: string().min(1),
|
|
55697
|
-
/** Remaining life % when known (0..100). */
|
|
55801
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
55698
55802
|
level: number().min(0).max(100).nullable(),
|
|
55699
|
-
/**
|
|
55700
|
-
status:
|
|
55803
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
55804
|
+
status: ConsumableStatusSchema.nullable(),
|
|
55805
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
55806
|
+
kind: ConsumableKindSchema.optional(),
|
|
55807
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
55808
|
+
form: ConsumableFormSchema.optional(),
|
|
55701
55809
|
/** Ms epoch of the last replace, when known. */
|
|
55702
55810
|
lastResetAt: number().nullable(),
|
|
55703
55811
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -55720,7 +55828,7 @@ var consumablesCapability = {
|
|
|
55720
55828
|
kind: "widget",
|
|
55721
55829
|
widgetId: "host/consumables-panel",
|
|
55722
55830
|
tab: "consumables",
|
|
55723
|
-
|
|
55831
|
+
placement: "hero",
|
|
55724
55832
|
label: "Consumables",
|
|
55725
55833
|
order: 5
|
|
55726
55834
|
} },
|
|
@@ -55781,9 +55889,37 @@ reset: method(object({
|
|
|
55781
55889
|
*/
|
|
55782
55890
|
durability: "restored",
|
|
55783
55891
|
/**
|
|
55784
|
-
* History (D850):
|
|
55892
|
+
* History (D850, D917): one series per (item field, item `key`) — the item key
|
|
55893
|
+
* is the series scope, the item `label` names it. A vacuum tank's fill, a
|
|
55894
|
+
* brush's remaining life and a dishwasher's salt are each recorded the moment
|
|
55895
|
+
* their provider reports them; an item that appears later gets its series.
|
|
55785
55896
|
*/
|
|
55786
|
-
history:
|
|
55897
|
+
history: {
|
|
55898
|
+
fields: {},
|
|
55899
|
+
items: {
|
|
55900
|
+
path: "items",
|
|
55901
|
+
key: "key",
|
|
55902
|
+
label: "label",
|
|
55903
|
+
fields: {
|
|
55904
|
+
level: {
|
|
55905
|
+
kind: "gauge",
|
|
55906
|
+
unit: "%",
|
|
55907
|
+
deadband: 2,
|
|
55908
|
+
displayName: "Level"
|
|
55909
|
+
},
|
|
55910
|
+
status: {
|
|
55911
|
+
kind: "enum",
|
|
55912
|
+
displayName: "Status"
|
|
55913
|
+
},
|
|
55914
|
+
"remaining.value": {
|
|
55915
|
+
kind: "gauge",
|
|
55916
|
+
unitFrom: "remaining.unit",
|
|
55917
|
+
deadband: 1,
|
|
55918
|
+
displayName: "Remaining"
|
|
55919
|
+
}
|
|
55920
|
+
}
|
|
55921
|
+
}
|
|
55922
|
+
},
|
|
55787
55923
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
55788
55924
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
55789
55925
|
};
|
|
@@ -56198,8 +56334,9 @@ onStatusChanged: { data: object({
|
|
|
56198
56334
|
volatileStateFields: ["lastChangedAt"]
|
|
56199
56335
|
};
|
|
56200
56336
|
/**
|
|
56201
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56202
|
-
*
|
|
56337
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
56338
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
56339
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
56203
56340
|
*
|
|
56204
56341
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56205
56342
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56247,11 +56384,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56247
56384
|
"offline",
|
|
56248
56385
|
"description-missing"
|
|
56249
56386
|
]);
|
|
56250
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56251
|
-
"ok",
|
|
56252
|
-
"low",
|
|
56253
|
-
"empty"
|
|
56254
|
-
]);
|
|
56255
56387
|
var DishwasherStatusSchema = object({
|
|
56256
56388
|
availability: DishwasherAvailabilitySchema,
|
|
56257
56389
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56284,8 +56416,6 @@ var DishwasherStatusSchema = object({
|
|
|
56284
56416
|
powerOn: boolean().nullable(),
|
|
56285
56417
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56286
56418
|
powerState: string().nullable(),
|
|
56287
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56288
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56289
56419
|
/**
|
|
56290
56420
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56291
56421
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -65101,60 +65231,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65101
65231
|
auth: "admin",
|
|
65102
65232
|
access: "delete"
|
|
65103
65233
|
});
|
|
65104
|
-
/**
|
|
65105
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
65106
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
65107
|
-
* optional fan-speed selector.
|
|
65108
|
-
*
|
|
65109
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
65110
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
65111
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
65112
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
65113
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
65114
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
65115
|
-
*
|
|
65116
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
65117
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
65118
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
65119
|
-
*
|
|
65120
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
65121
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
65122
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
65123
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
65124
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
65125
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
65126
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
65127
|
-
* so the HA provider leaves all four `null`.
|
|
65128
|
-
*/
|
|
65129
|
-
var VacuumStateSchema = _enum([
|
|
65130
|
-
"idle",
|
|
65131
|
-
"cleaning",
|
|
65132
|
-
"paused",
|
|
65133
|
-
"returning",
|
|
65134
|
-
"docked",
|
|
65135
|
-
"drying",
|
|
65136
|
-
"error"
|
|
65137
|
-
]);
|
|
65138
|
-
/**
|
|
65139
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
65140
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
65141
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
65142
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
65143
|
-
* hardware has no such tank at all.
|
|
65144
|
-
*/
|
|
65145
|
-
var TankStatusSchema = object({
|
|
65146
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
65147
|
-
level: number().min(0).max(100).nullable(),
|
|
65148
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
65149
|
-
status: _enum([
|
|
65150
|
-
"ok",
|
|
65151
|
-
"low",
|
|
65152
|
-
"full"
|
|
65153
|
-
]).nullable()
|
|
65154
|
-
});
|
|
65155
65234
|
var VacuumControlStatusSchema = object({
|
|
65156
65235
|
/** Lifecycle state of the vacuum. */
|
|
65157
|
-
state:
|
|
65236
|
+
state: _enum([
|
|
65237
|
+
"idle",
|
|
65238
|
+
"cleaning",
|
|
65239
|
+
"paused",
|
|
65240
|
+
"returning",
|
|
65241
|
+
"docked",
|
|
65242
|
+
"drying",
|
|
65243
|
+
"error"
|
|
65244
|
+
]),
|
|
65158
65245
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
65159
65246
|
* reading. */
|
|
65160
65247
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -65163,14 +65250,6 @@ var VacuumControlStatusSchema = object({
|
|
|
65163
65250
|
fanSpeed: string().nullable(),
|
|
65164
65251
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
65165
65252
|
availableFanSpeeds: array(string()),
|
|
65166
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
65167
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
65168
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
65169
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
65170
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
65171
|
-
detergent: TankStatusSchema.nullable(),
|
|
65172
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
65173
|
-
dustBin: TankStatusSchema.nullable(),
|
|
65174
65253
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
65175
65254
|
progressPercent: number().min(0).max(100).nullable(),
|
|
65176
65255
|
/** Current error code (0 / null = no error). */
|
|
@@ -65232,35 +65311,14 @@ var vacuumControlCapability = {
|
|
|
65232
65311
|
*/
|
|
65233
65312
|
durability: "session",
|
|
65234
65313
|
/**
|
|
65235
|
-
* History (D850): recorded series.
|
|
65314
|
+
* History (D850): recorded series. The tanks moved to `consumables` (D915), whose
|
|
65315
|
+
* items are keyed by runtime ids and record no history.
|
|
65236
65316
|
*/
|
|
65237
|
-
history: { fields: {
|
|
65238
|
-
|
|
65239
|
-
|
|
65240
|
-
|
|
65241
|
-
|
|
65242
|
-
},
|
|
65243
|
-
"cleanWater.level": {
|
|
65244
|
-
kind: "gauge",
|
|
65245
|
-
unit: "%",
|
|
65246
|
-
deadband: 2
|
|
65247
|
-
},
|
|
65248
|
-
"dirtyWater.level": {
|
|
65249
|
-
kind: "gauge",
|
|
65250
|
-
unit: "%",
|
|
65251
|
-
deadband: 2
|
|
65252
|
-
},
|
|
65253
|
-
"detergent.level": {
|
|
65254
|
-
kind: "gauge",
|
|
65255
|
-
unit: "%",
|
|
65256
|
-
deadband: 2
|
|
65257
|
-
},
|
|
65258
|
-
"dustBin.level": {
|
|
65259
|
-
kind: "gauge",
|
|
65260
|
-
unit: "%",
|
|
65261
|
-
deadband: 2
|
|
65262
|
-
}
|
|
65263
|
-
} }
|
|
65317
|
+
history: { fields: { batteryLevel: {
|
|
65318
|
+
kind: "gauge",
|
|
65319
|
+
unit: "%",
|
|
65320
|
+
deadband: 2
|
|
65321
|
+
} } }
|
|
65264
65322
|
};
|
|
65265
65323
|
var ValveStatusSchema = object({
|
|
65266
65324
|
/** Lifecycle state of the valve. */
|
|
@@ -69654,6 +69712,12 @@ Object.freeze({
|
|
|
69654
69712
|
addonId: null,
|
|
69655
69713
|
access: "create"
|
|
69656
69714
|
},
|
|
69715
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
69716
|
+
capName: "device-history",
|
|
69717
|
+
capScope: "system",
|
|
69718
|
+
addonId: null,
|
|
69719
|
+
access: "delete"
|
|
69720
|
+
},
|
|
69657
69721
|
"deviceHistory.getDeviceEnabled": {
|
|
69658
69722
|
capName: "device-history",
|
|
69659
69723
|
capScope: "system",
|
|
@@ -69672,6 +69736,12 @@ Object.freeze({
|
|
|
69672
69736
|
addonId: null,
|
|
69673
69737
|
access: "view"
|
|
69674
69738
|
},
|
|
69739
|
+
"deviceHistory.listOrphanSeries": {
|
|
69740
|
+
capName: "device-history",
|
|
69741
|
+
capScope: "system",
|
|
69742
|
+
addonId: null,
|
|
69743
|
+
access: "view"
|
|
69744
|
+
},
|
|
69675
69745
|
"deviceHistory.listSeries": {
|
|
69676
69746
|
capName: "device-history",
|
|
69677
69747
|
capScope: "system",
|
|
@@ -79677,7 +79747,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
79677
79747
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
79678
79748
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
79679
79749
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
79680
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
79750
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
79681
79751
|
([...RULE_TEXT], [...TANK]),
|
|
79682
79752
|
[...RULE_TEXT],
|
|
79683
79753
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
package/dist/addon.mjs
CHANGED
|
@@ -5603,7 +5603,7 @@ var ZodIssueCode = {
|
|
|
5603
5603
|
var ZodFirstPartyTypeKind;
|
|
5604
5604
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5605
5605
|
//#endregion
|
|
5606
|
-
//#region ../types/dist/sleep-
|
|
5606
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5607
5607
|
/**
|
|
5608
5608
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5609
5609
|
* window to float samples (D455).
|
|
@@ -8683,7 +8683,11 @@ var ContributionSectionSchema = object({
|
|
|
8683
8683
|
literal(4)
|
|
8684
8684
|
]).optional(),
|
|
8685
8685
|
tab: string().optional(),
|
|
8686
|
-
location: _enum([
|
|
8686
|
+
location: _enum([
|
|
8687
|
+
"settings",
|
|
8688
|
+
"top-tab",
|
|
8689
|
+
"hero"
|
|
8690
|
+
]).optional(),
|
|
8687
8691
|
order: number().optional(),
|
|
8688
8692
|
fields: array(any())
|
|
8689
8693
|
});
|
|
@@ -13752,7 +13756,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13752
13756
|
literal(4)
|
|
13753
13757
|
]).optional(),
|
|
13754
13758
|
tab: string().optional(),
|
|
13755
|
-
location: _enum([
|
|
13759
|
+
location: _enum([
|
|
13760
|
+
"settings",
|
|
13761
|
+
"top-tab",
|
|
13762
|
+
"hero"
|
|
13763
|
+
]).optional(),
|
|
13756
13764
|
order: number().optional(),
|
|
13757
13765
|
fields: array(any())
|
|
13758
13766
|
});
|
|
@@ -17681,6 +17689,52 @@ var TierStatusSchema = object({
|
|
|
17681
17689
|
countedAt: number().nullable()
|
|
17682
17690
|
});
|
|
17683
17691
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17692
|
+
/**
|
|
17693
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17694
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17695
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17696
|
+
*/
|
|
17697
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17698
|
+
/** Rows held per stored tier. */
|
|
17699
|
+
var TierRowsSchema = object({
|
|
17700
|
+
raw: number().int(),
|
|
17701
|
+
"5m": number().int(),
|
|
17702
|
+
"1h": number().int(),
|
|
17703
|
+
"1d": number().int()
|
|
17704
|
+
});
|
|
17705
|
+
var OrphanSeriesSchema = object({
|
|
17706
|
+
seriesId: number().int(),
|
|
17707
|
+
deviceId: number().int(),
|
|
17708
|
+
key: string(),
|
|
17709
|
+
scope: string(),
|
|
17710
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17711
|
+
displayName: string().nullable(),
|
|
17712
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17713
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17714
|
+
missingSince: number().nullable(),
|
|
17715
|
+
firstTs: number(),
|
|
17716
|
+
lastTs: number(),
|
|
17717
|
+
rows: TierRowsSchema
|
|
17718
|
+
});
|
|
17719
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17720
|
+
"not-found",
|
|
17721
|
+
"not-orphan",
|
|
17722
|
+
"failed"
|
|
17723
|
+
]);
|
|
17724
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17725
|
+
seriesId: number().int(),
|
|
17726
|
+
ok: literal(true),
|
|
17727
|
+
deleted: TierRowsSchema
|
|
17728
|
+
}), object({
|
|
17729
|
+
seriesId: number().int(),
|
|
17730
|
+
ok: literal(false),
|
|
17731
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17732
|
+
})]);
|
|
17733
|
+
var OrphanListSchema = object({
|
|
17734
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17735
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17736
|
+
truncated: boolean()
|
|
17737
|
+
});
|
|
17684
17738
|
var DeviceHistoryStatusSchema = object({
|
|
17685
17739
|
startedAt: number(),
|
|
17686
17740
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17778,7 +17832,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17778
17832
|
}), object({ enabled: boolean() }), {
|
|
17779
17833
|
kind: "mutation",
|
|
17780
17834
|
auth: "admin"
|
|
17781
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17835
|
+
}), 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() }), {
|
|
17836
|
+
kind: "mutation",
|
|
17837
|
+
auth: "admin"
|
|
17838
|
+
});
|
|
17782
17839
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17783
17840
|
object({ state: literal("absent") }),
|
|
17784
17841
|
object({
|
|
@@ -48506,7 +48563,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
48506
48563
|
modelId: string()
|
|
48507
48564
|
}),
|
|
48508
48565
|
object({ kind: literal("cpu-device") }),
|
|
48509
|
-
object({ kind: literal("coral-untouched") }),
|
|
48510
48566
|
object({ kind: literal("device-disabled") }),
|
|
48511
48567
|
object({ kind: literal("device-unavailable") }),
|
|
48512
48568
|
object({ kind: literal("node-offline") }),
|
|
@@ -48604,11 +48660,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
48604
48660
|
kind: literal("detector-store-unreadable"),
|
|
48605
48661
|
error: string()
|
|
48606
48662
|
}),
|
|
48607
|
-
object({
|
|
48608
|
-
kind: literal("coral-enabled"),
|
|
48609
|
-
nodeId: string(),
|
|
48610
|
-
deviceKey: string()
|
|
48611
|
-
}),
|
|
48612
48663
|
object({
|
|
48613
48664
|
kind: literal("custom-pin-kept"),
|
|
48614
48665
|
nodeId: string(),
|
|
@@ -55661,17 +55712,69 @@ var connectivityCapability = {
|
|
|
55661
55712
|
volatileStateFields: ["lastChangedAt"]
|
|
55662
55713
|
};
|
|
55663
55714
|
/**
|
|
55664
|
-
* Generic device-consumables capability —
|
|
55665
|
-
*
|
|
55666
|
-
* descaling cycles,
|
|
55667
|
-
*
|
|
55668
|
-
*
|
|
55669
|
-
*
|
|
55715
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
55716
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
55717
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
55718
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
55719
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
55720
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
55721
|
+
* its device tracks consumables registers it; the provider names each item
|
|
55722
|
+
* verbatim and says which `kind` it is.
|
|
55723
|
+
*
|
|
55724
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
55725
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
55726
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
55670
55727
|
*
|
|
55671
55728
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
55672
55729
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
55673
55730
|
* "No consumables reported" placeholder when `items` is empty.
|
|
55674
55731
|
*/
|
|
55732
|
+
/**
|
|
55733
|
+
* What an item IS, which decides which direction is bad:
|
|
55734
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
55735
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
55736
|
+
* salt, rinse aid); low or empty is bad.
|
|
55737
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
55738
|
+
* bad.
|
|
55739
|
+
* Absent = `wear`.
|
|
55740
|
+
*/
|
|
55741
|
+
var ConsumableKindSchema = _enum([
|
|
55742
|
+
"wear",
|
|
55743
|
+
"supply",
|
|
55744
|
+
"waste"
|
|
55745
|
+
]);
|
|
55746
|
+
/**
|
|
55747
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
55748
|
+
* of `kind`, which decides which direction is bad:
|
|
55749
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
55750
|
+
* remaining time and a reset.
|
|
55751
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
55752
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
55753
|
+
* a stepped level and "refill".
|
|
55754
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
55755
|
+
* that warns when full.
|
|
55756
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
55757
|
+
*/
|
|
55758
|
+
var ConsumableFormSchema = _enum([
|
|
55759
|
+
"part",
|
|
55760
|
+
"tank",
|
|
55761
|
+
"product",
|
|
55762
|
+
"bin"
|
|
55763
|
+
]);
|
|
55764
|
+
/** The provider's own discrete verdict on an item. */
|
|
55765
|
+
var ConsumableStatusSchema = _enum([
|
|
55766
|
+
"ok",
|
|
55767
|
+
"low",
|
|
55768
|
+
"empty",
|
|
55769
|
+
"full",
|
|
55770
|
+
"replace"
|
|
55771
|
+
]);
|
|
55772
|
+
_enum([
|
|
55773
|
+
"ok",
|
|
55774
|
+
"low",
|
|
55775
|
+
"empty",
|
|
55776
|
+
"full"
|
|
55777
|
+
]);
|
|
55675
55778
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
55676
55779
|
* each. */
|
|
55677
55780
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -55686,18 +55789,23 @@ var ConsumableRemainingSchema = object({
|
|
|
55686
55789
|
unit: ConsumableRemainingUnitSchema
|
|
55687
55790
|
});
|
|
55688
55791
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
55689
|
-
* life
|
|
55690
|
-
*
|
|
55691
|
-
* mutually exclusive; a provider may
|
|
55792
|
+
* life %, or fill % for a `supply` / `waste` item) or a discrete `status`
|
|
55793
|
+
* may be known — both may be null when a provider only knows the item
|
|
55794
|
+
* exists. `level` and `status` are not mutually exclusive; a provider may
|
|
55795
|
+
* report both. */
|
|
55692
55796
|
var ConsumableItemSchema = object({
|
|
55693
55797
|
/** Stable id, e.g. 'main-brush'. */
|
|
55694
55798
|
key: string().min(1),
|
|
55695
55799
|
/** Display name. */
|
|
55696
55800
|
label: string().min(1),
|
|
55697
|
-
/** Remaining life % when known (0..100). */
|
|
55801
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
55698
55802
|
level: number().min(0).max(100).nullable(),
|
|
55699
|
-
/**
|
|
55700
|
-
status:
|
|
55803
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
55804
|
+
status: ConsumableStatusSchema.nullable(),
|
|
55805
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
55806
|
+
kind: ConsumableKindSchema.optional(),
|
|
55807
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
55808
|
+
form: ConsumableFormSchema.optional(),
|
|
55701
55809
|
/** Ms epoch of the last replace, when known. */
|
|
55702
55810
|
lastResetAt: number().nullable(),
|
|
55703
55811
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -55720,7 +55828,7 @@ var consumablesCapability = {
|
|
|
55720
55828
|
kind: "widget",
|
|
55721
55829
|
widgetId: "host/consumables-panel",
|
|
55722
55830
|
tab: "consumables",
|
|
55723
|
-
|
|
55831
|
+
placement: "hero",
|
|
55724
55832
|
label: "Consumables",
|
|
55725
55833
|
order: 5
|
|
55726
55834
|
} },
|
|
@@ -55781,9 +55889,37 @@ reset: method(object({
|
|
|
55781
55889
|
*/
|
|
55782
55890
|
durability: "restored",
|
|
55783
55891
|
/**
|
|
55784
|
-
* History (D850):
|
|
55892
|
+
* History (D850, D917): one series per (item field, item `key`) — the item key
|
|
55893
|
+
* is the series scope, the item `label` names it. A vacuum tank's fill, a
|
|
55894
|
+
* brush's remaining life and a dishwasher's salt are each recorded the moment
|
|
55895
|
+
* their provider reports them; an item that appears later gets its series.
|
|
55785
55896
|
*/
|
|
55786
|
-
history:
|
|
55897
|
+
history: {
|
|
55898
|
+
fields: {},
|
|
55899
|
+
items: {
|
|
55900
|
+
path: "items",
|
|
55901
|
+
key: "key",
|
|
55902
|
+
label: "label",
|
|
55903
|
+
fields: {
|
|
55904
|
+
level: {
|
|
55905
|
+
kind: "gauge",
|
|
55906
|
+
unit: "%",
|
|
55907
|
+
deadband: 2,
|
|
55908
|
+
displayName: "Level"
|
|
55909
|
+
},
|
|
55910
|
+
status: {
|
|
55911
|
+
kind: "enum",
|
|
55912
|
+
displayName: "Status"
|
|
55913
|
+
},
|
|
55914
|
+
"remaining.value": {
|
|
55915
|
+
kind: "gauge",
|
|
55916
|
+
unitFrom: "remaining.unit",
|
|
55917
|
+
deadband: 1,
|
|
55918
|
+
displayName: "Remaining"
|
|
55919
|
+
}
|
|
55920
|
+
}
|
|
55921
|
+
}
|
|
55922
|
+
},
|
|
55787
55923
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
55788
55924
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
55789
55925
|
};
|
|
@@ -56198,8 +56334,9 @@ onStatusChanged: { data: object({
|
|
|
56198
56334
|
volatileStateFields: ["lastChangedAt"]
|
|
56199
56335
|
};
|
|
56200
56336
|
/**
|
|
56201
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56202
|
-
*
|
|
56337
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
56338
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
56339
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
56203
56340
|
*
|
|
56204
56341
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56205
56342
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56247,11 +56384,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56247
56384
|
"offline",
|
|
56248
56385
|
"description-missing"
|
|
56249
56386
|
]);
|
|
56250
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56251
|
-
"ok",
|
|
56252
|
-
"low",
|
|
56253
|
-
"empty"
|
|
56254
|
-
]);
|
|
56255
56387
|
var DishwasherStatusSchema = object({
|
|
56256
56388
|
availability: DishwasherAvailabilitySchema,
|
|
56257
56389
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56284,8 +56416,6 @@ var DishwasherStatusSchema = object({
|
|
|
56284
56416
|
powerOn: boolean().nullable(),
|
|
56285
56417
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56286
56418
|
powerState: string().nullable(),
|
|
56287
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56288
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56289
56419
|
/**
|
|
56290
56420
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56291
56421
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -65101,60 +65231,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65101
65231
|
auth: "admin",
|
|
65102
65232
|
access: "delete"
|
|
65103
65233
|
});
|
|
65104
|
-
/**
|
|
65105
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
65106
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
65107
|
-
* optional fan-speed selector.
|
|
65108
|
-
*
|
|
65109
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
65110
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
65111
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
65112
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
65113
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
65114
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
65115
|
-
*
|
|
65116
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
65117
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
65118
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
65119
|
-
*
|
|
65120
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
65121
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
65122
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
65123
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
65124
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
65125
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
65126
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
65127
|
-
* so the HA provider leaves all four `null`.
|
|
65128
|
-
*/
|
|
65129
|
-
var VacuumStateSchema = _enum([
|
|
65130
|
-
"idle",
|
|
65131
|
-
"cleaning",
|
|
65132
|
-
"paused",
|
|
65133
|
-
"returning",
|
|
65134
|
-
"docked",
|
|
65135
|
-
"drying",
|
|
65136
|
-
"error"
|
|
65137
|
-
]);
|
|
65138
|
-
/**
|
|
65139
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
65140
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
65141
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
65142
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
65143
|
-
* hardware has no such tank at all.
|
|
65144
|
-
*/
|
|
65145
|
-
var TankStatusSchema = object({
|
|
65146
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
65147
|
-
level: number().min(0).max(100).nullable(),
|
|
65148
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
65149
|
-
status: _enum([
|
|
65150
|
-
"ok",
|
|
65151
|
-
"low",
|
|
65152
|
-
"full"
|
|
65153
|
-
]).nullable()
|
|
65154
|
-
});
|
|
65155
65234
|
var VacuumControlStatusSchema = object({
|
|
65156
65235
|
/** Lifecycle state of the vacuum. */
|
|
65157
|
-
state:
|
|
65236
|
+
state: _enum([
|
|
65237
|
+
"idle",
|
|
65238
|
+
"cleaning",
|
|
65239
|
+
"paused",
|
|
65240
|
+
"returning",
|
|
65241
|
+
"docked",
|
|
65242
|
+
"drying",
|
|
65243
|
+
"error"
|
|
65244
|
+
]),
|
|
65158
65245
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
65159
65246
|
* reading. */
|
|
65160
65247
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -65163,14 +65250,6 @@ var VacuumControlStatusSchema = object({
|
|
|
65163
65250
|
fanSpeed: string().nullable(),
|
|
65164
65251
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
65165
65252
|
availableFanSpeeds: array(string()),
|
|
65166
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
65167
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
65168
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
65169
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
65170
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
65171
|
-
detergent: TankStatusSchema.nullable(),
|
|
65172
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
65173
|
-
dustBin: TankStatusSchema.nullable(),
|
|
65174
65253
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
65175
65254
|
progressPercent: number().min(0).max(100).nullable(),
|
|
65176
65255
|
/** Current error code (0 / null = no error). */
|
|
@@ -65232,35 +65311,14 @@ var vacuumControlCapability = {
|
|
|
65232
65311
|
*/
|
|
65233
65312
|
durability: "session",
|
|
65234
65313
|
/**
|
|
65235
|
-
* History (D850): recorded series.
|
|
65314
|
+
* History (D850): recorded series. The tanks moved to `consumables` (D915), whose
|
|
65315
|
+
* items are keyed by runtime ids and record no history.
|
|
65236
65316
|
*/
|
|
65237
|
-
history: { fields: {
|
|
65238
|
-
|
|
65239
|
-
|
|
65240
|
-
|
|
65241
|
-
|
|
65242
|
-
},
|
|
65243
|
-
"cleanWater.level": {
|
|
65244
|
-
kind: "gauge",
|
|
65245
|
-
unit: "%",
|
|
65246
|
-
deadband: 2
|
|
65247
|
-
},
|
|
65248
|
-
"dirtyWater.level": {
|
|
65249
|
-
kind: "gauge",
|
|
65250
|
-
unit: "%",
|
|
65251
|
-
deadband: 2
|
|
65252
|
-
},
|
|
65253
|
-
"detergent.level": {
|
|
65254
|
-
kind: "gauge",
|
|
65255
|
-
unit: "%",
|
|
65256
|
-
deadband: 2
|
|
65257
|
-
},
|
|
65258
|
-
"dustBin.level": {
|
|
65259
|
-
kind: "gauge",
|
|
65260
|
-
unit: "%",
|
|
65261
|
-
deadband: 2
|
|
65262
|
-
}
|
|
65263
|
-
} }
|
|
65317
|
+
history: { fields: { batteryLevel: {
|
|
65318
|
+
kind: "gauge",
|
|
65319
|
+
unit: "%",
|
|
65320
|
+
deadband: 2
|
|
65321
|
+
} } }
|
|
65264
65322
|
};
|
|
65265
65323
|
var ValveStatusSchema = object({
|
|
65266
65324
|
/** Lifecycle state of the valve. */
|
|
@@ -69654,6 +69712,12 @@ Object.freeze({
|
|
|
69654
69712
|
addonId: null,
|
|
69655
69713
|
access: "create"
|
|
69656
69714
|
},
|
|
69715
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
69716
|
+
capName: "device-history",
|
|
69717
|
+
capScope: "system",
|
|
69718
|
+
addonId: null,
|
|
69719
|
+
access: "delete"
|
|
69720
|
+
},
|
|
69657
69721
|
"deviceHistory.getDeviceEnabled": {
|
|
69658
69722
|
capName: "device-history",
|
|
69659
69723
|
capScope: "system",
|
|
@@ -69672,6 +69736,12 @@ Object.freeze({
|
|
|
69672
69736
|
addonId: null,
|
|
69673
69737
|
access: "view"
|
|
69674
69738
|
},
|
|
69739
|
+
"deviceHistory.listOrphanSeries": {
|
|
69740
|
+
capName: "device-history",
|
|
69741
|
+
capScope: "system",
|
|
69742
|
+
addonId: null,
|
|
69743
|
+
access: "view"
|
|
69744
|
+
},
|
|
69675
69745
|
"deviceHistory.listSeries": {
|
|
69676
69746
|
capName: "device-history",
|
|
69677
69747
|
capScope: "system",
|
|
@@ -79677,7 +79747,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
79677
79747
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
79678
79748
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
79679
79749
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
79680
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
79750
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
79681
79751
|
([...RULE_TEXT], [...TANK]),
|
|
79682
79752
|
[...RULE_TEXT],
|
|
79683
79753
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.145",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|