@camstack/addon-import-alexa 0.2.144 → 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 -117
- package/dist/addon.mjs +193 -117
- 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({
|
|
@@ -55655,17 +55712,69 @@ var connectivityCapability = {
|
|
|
55655
55712
|
volatileStateFields: ["lastChangedAt"]
|
|
55656
55713
|
};
|
|
55657
55714
|
/**
|
|
55658
|
-
* Generic device-consumables capability —
|
|
55659
|
-
*
|
|
55660
|
-
* descaling cycles,
|
|
55661
|
-
*
|
|
55662
|
-
*
|
|
55663
|
-
*
|
|
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).
|
|
55664
55727
|
*
|
|
55665
55728
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
55666
55729
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
55667
55730
|
* "No consumables reported" placeholder when `items` is empty.
|
|
55668
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
|
+
]);
|
|
55669
55778
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
55670
55779
|
* each. */
|
|
55671
55780
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -55680,18 +55789,23 @@ var ConsumableRemainingSchema = object({
|
|
|
55680
55789
|
unit: ConsumableRemainingUnitSchema
|
|
55681
55790
|
});
|
|
55682
55791
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
55683
|
-
* life
|
|
55684
|
-
*
|
|
55685
|
-
* 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. */
|
|
55686
55796
|
var ConsumableItemSchema = object({
|
|
55687
55797
|
/** Stable id, e.g. 'main-brush'. */
|
|
55688
55798
|
key: string().min(1),
|
|
55689
55799
|
/** Display name. */
|
|
55690
55800
|
label: string().min(1),
|
|
55691
|
-
/** Remaining life % when known (0..100). */
|
|
55801
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
55692
55802
|
level: number().min(0).max(100).nullable(),
|
|
55693
|
-
/**
|
|
55694
|
-
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(),
|
|
55695
55809
|
/** Ms epoch of the last replace, when known. */
|
|
55696
55810
|
lastResetAt: number().nullable(),
|
|
55697
55811
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -55714,7 +55828,7 @@ var consumablesCapability = {
|
|
|
55714
55828
|
kind: "widget",
|
|
55715
55829
|
widgetId: "host/consumables-panel",
|
|
55716
55830
|
tab: "consumables",
|
|
55717
|
-
|
|
55831
|
+
placement: "hero",
|
|
55718
55832
|
label: "Consumables",
|
|
55719
55833
|
order: 5
|
|
55720
55834
|
} },
|
|
@@ -55775,9 +55889,37 @@ reset: method(object({
|
|
|
55775
55889
|
*/
|
|
55776
55890
|
durability: "restored",
|
|
55777
55891
|
/**
|
|
55778
|
-
* 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.
|
|
55779
55896
|
*/
|
|
55780
|
-
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
|
+
},
|
|
55781
55923
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
55782
55924
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
55783
55925
|
};
|
|
@@ -56192,8 +56334,9 @@ onStatusChanged: { data: object({
|
|
|
56192
56334
|
volatileStateFields: ["lastChangedAt"]
|
|
56193
56335
|
};
|
|
56194
56336
|
/**
|
|
56195
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56196
|
-
*
|
|
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).
|
|
56197
56340
|
*
|
|
56198
56341
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56199
56342
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56241,11 +56384,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56241
56384
|
"offline",
|
|
56242
56385
|
"description-missing"
|
|
56243
56386
|
]);
|
|
56244
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56245
|
-
"ok",
|
|
56246
|
-
"low",
|
|
56247
|
-
"empty"
|
|
56248
|
-
]);
|
|
56249
56387
|
var DishwasherStatusSchema = object({
|
|
56250
56388
|
availability: DishwasherAvailabilitySchema,
|
|
56251
56389
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56278,8 +56416,6 @@ var DishwasherStatusSchema = object({
|
|
|
56278
56416
|
powerOn: boolean().nullable(),
|
|
56279
56417
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56280
56418
|
powerState: string().nullable(),
|
|
56281
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56282
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56283
56419
|
/**
|
|
56284
56420
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56285
56421
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -65095,60 +65231,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65095
65231
|
auth: "admin",
|
|
65096
65232
|
access: "delete"
|
|
65097
65233
|
});
|
|
65098
|
-
/**
|
|
65099
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
65100
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
65101
|
-
* optional fan-speed selector.
|
|
65102
|
-
*
|
|
65103
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
65104
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
65105
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
65106
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
65107
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
65108
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
65109
|
-
*
|
|
65110
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
65111
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
65112
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
65113
|
-
*
|
|
65114
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
65115
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
65116
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
65117
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
65118
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
65119
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
65120
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
65121
|
-
* so the HA provider leaves all four `null`.
|
|
65122
|
-
*/
|
|
65123
|
-
var VacuumStateSchema = _enum([
|
|
65124
|
-
"idle",
|
|
65125
|
-
"cleaning",
|
|
65126
|
-
"paused",
|
|
65127
|
-
"returning",
|
|
65128
|
-
"docked",
|
|
65129
|
-
"drying",
|
|
65130
|
-
"error"
|
|
65131
|
-
]);
|
|
65132
|
-
/**
|
|
65133
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
65134
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
65135
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
65136
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
65137
|
-
* hardware has no such tank at all.
|
|
65138
|
-
*/
|
|
65139
|
-
var TankStatusSchema = object({
|
|
65140
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
65141
|
-
level: number().min(0).max(100).nullable(),
|
|
65142
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
65143
|
-
status: _enum([
|
|
65144
|
-
"ok",
|
|
65145
|
-
"low",
|
|
65146
|
-
"full"
|
|
65147
|
-
]).nullable()
|
|
65148
|
-
});
|
|
65149
65234
|
var VacuumControlStatusSchema = object({
|
|
65150
65235
|
/** Lifecycle state of the vacuum. */
|
|
65151
|
-
state:
|
|
65236
|
+
state: _enum([
|
|
65237
|
+
"idle",
|
|
65238
|
+
"cleaning",
|
|
65239
|
+
"paused",
|
|
65240
|
+
"returning",
|
|
65241
|
+
"docked",
|
|
65242
|
+
"drying",
|
|
65243
|
+
"error"
|
|
65244
|
+
]),
|
|
65152
65245
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
65153
65246
|
* reading. */
|
|
65154
65247
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -65157,14 +65250,6 @@ var VacuumControlStatusSchema = object({
|
|
|
65157
65250
|
fanSpeed: string().nullable(),
|
|
65158
65251
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
65159
65252
|
availableFanSpeeds: array(string()),
|
|
65160
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
65161
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
65162
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
65163
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
65164
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
65165
|
-
detergent: TankStatusSchema.nullable(),
|
|
65166
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
65167
|
-
dustBin: TankStatusSchema.nullable(),
|
|
65168
65253
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
65169
65254
|
progressPercent: number().min(0).max(100).nullable(),
|
|
65170
65255
|
/** Current error code (0 / null = no error). */
|
|
@@ -65226,35 +65311,14 @@ var vacuumControlCapability = {
|
|
|
65226
65311
|
*/
|
|
65227
65312
|
durability: "session",
|
|
65228
65313
|
/**
|
|
65229
|
-
* 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.
|
|
65230
65316
|
*/
|
|
65231
|
-
history: { fields: {
|
|
65232
|
-
|
|
65233
|
-
|
|
65234
|
-
|
|
65235
|
-
|
|
65236
|
-
},
|
|
65237
|
-
"cleanWater.level": {
|
|
65238
|
-
kind: "gauge",
|
|
65239
|
-
unit: "%",
|
|
65240
|
-
deadband: 2
|
|
65241
|
-
},
|
|
65242
|
-
"dirtyWater.level": {
|
|
65243
|
-
kind: "gauge",
|
|
65244
|
-
unit: "%",
|
|
65245
|
-
deadband: 2
|
|
65246
|
-
},
|
|
65247
|
-
"detergent.level": {
|
|
65248
|
-
kind: "gauge",
|
|
65249
|
-
unit: "%",
|
|
65250
|
-
deadband: 2
|
|
65251
|
-
},
|
|
65252
|
-
"dustBin.level": {
|
|
65253
|
-
kind: "gauge",
|
|
65254
|
-
unit: "%",
|
|
65255
|
-
deadband: 2
|
|
65256
|
-
}
|
|
65257
|
-
} }
|
|
65317
|
+
history: { fields: { batteryLevel: {
|
|
65318
|
+
kind: "gauge",
|
|
65319
|
+
unit: "%",
|
|
65320
|
+
deadband: 2
|
|
65321
|
+
} } }
|
|
65258
65322
|
};
|
|
65259
65323
|
var ValveStatusSchema = object({
|
|
65260
65324
|
/** Lifecycle state of the valve. */
|
|
@@ -69648,6 +69712,12 @@ Object.freeze({
|
|
|
69648
69712
|
addonId: null,
|
|
69649
69713
|
access: "create"
|
|
69650
69714
|
},
|
|
69715
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
69716
|
+
capName: "device-history",
|
|
69717
|
+
capScope: "system",
|
|
69718
|
+
addonId: null,
|
|
69719
|
+
access: "delete"
|
|
69720
|
+
},
|
|
69651
69721
|
"deviceHistory.getDeviceEnabled": {
|
|
69652
69722
|
capName: "device-history",
|
|
69653
69723
|
capScope: "system",
|
|
@@ -69666,6 +69736,12 @@ Object.freeze({
|
|
|
69666
69736
|
addonId: null,
|
|
69667
69737
|
access: "view"
|
|
69668
69738
|
},
|
|
69739
|
+
"deviceHistory.listOrphanSeries": {
|
|
69740
|
+
capName: "device-history",
|
|
69741
|
+
capScope: "system",
|
|
69742
|
+
addonId: null,
|
|
69743
|
+
access: "view"
|
|
69744
|
+
},
|
|
69669
69745
|
"deviceHistory.listSeries": {
|
|
69670
69746
|
capName: "device-history",
|
|
69671
69747
|
capScope: "system",
|
|
@@ -79671,7 +79747,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
79671
79747
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
79672
79748
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
79673
79749
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
79674
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
79750
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
79675
79751
|
([...RULE_TEXT], [...TANK]),
|
|
79676
79752
|
[...RULE_TEXT],
|
|
79677
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({
|
|
@@ -55655,17 +55712,69 @@ var connectivityCapability = {
|
|
|
55655
55712
|
volatileStateFields: ["lastChangedAt"]
|
|
55656
55713
|
};
|
|
55657
55714
|
/**
|
|
55658
|
-
* Generic device-consumables capability —
|
|
55659
|
-
*
|
|
55660
|
-
* descaling cycles,
|
|
55661
|
-
*
|
|
55662
|
-
*
|
|
55663
|
-
*
|
|
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).
|
|
55664
55727
|
*
|
|
55665
55728
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
55666
55729
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
55667
55730
|
* "No consumables reported" placeholder when `items` is empty.
|
|
55668
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
|
+
]);
|
|
55669
55778
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
55670
55779
|
* each. */
|
|
55671
55780
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -55680,18 +55789,23 @@ var ConsumableRemainingSchema = object({
|
|
|
55680
55789
|
unit: ConsumableRemainingUnitSchema
|
|
55681
55790
|
});
|
|
55682
55791
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
55683
|
-
* life
|
|
55684
|
-
*
|
|
55685
|
-
* 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. */
|
|
55686
55796
|
var ConsumableItemSchema = object({
|
|
55687
55797
|
/** Stable id, e.g. 'main-brush'. */
|
|
55688
55798
|
key: string().min(1),
|
|
55689
55799
|
/** Display name. */
|
|
55690
55800
|
label: string().min(1),
|
|
55691
|
-
/** Remaining life % when known (0..100). */
|
|
55801
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
55692
55802
|
level: number().min(0).max(100).nullable(),
|
|
55693
|
-
/**
|
|
55694
|
-
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(),
|
|
55695
55809
|
/** Ms epoch of the last replace, when known. */
|
|
55696
55810
|
lastResetAt: number().nullable(),
|
|
55697
55811
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -55714,7 +55828,7 @@ var consumablesCapability = {
|
|
|
55714
55828
|
kind: "widget",
|
|
55715
55829
|
widgetId: "host/consumables-panel",
|
|
55716
55830
|
tab: "consumables",
|
|
55717
|
-
|
|
55831
|
+
placement: "hero",
|
|
55718
55832
|
label: "Consumables",
|
|
55719
55833
|
order: 5
|
|
55720
55834
|
} },
|
|
@@ -55775,9 +55889,37 @@ reset: method(object({
|
|
|
55775
55889
|
*/
|
|
55776
55890
|
durability: "restored",
|
|
55777
55891
|
/**
|
|
55778
|
-
* 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.
|
|
55779
55896
|
*/
|
|
55780
|
-
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
|
+
},
|
|
55781
55923
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
55782
55924
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
55783
55925
|
};
|
|
@@ -56192,8 +56334,9 @@ onStatusChanged: { data: object({
|
|
|
56192
56334
|
volatileStateFields: ["lastChangedAt"]
|
|
56193
56335
|
};
|
|
56194
56336
|
/**
|
|
56195
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56196
|
-
*
|
|
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).
|
|
56197
56340
|
*
|
|
56198
56341
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56199
56342
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56241,11 +56384,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56241
56384
|
"offline",
|
|
56242
56385
|
"description-missing"
|
|
56243
56386
|
]);
|
|
56244
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56245
|
-
"ok",
|
|
56246
|
-
"low",
|
|
56247
|
-
"empty"
|
|
56248
|
-
]);
|
|
56249
56387
|
var DishwasherStatusSchema = object({
|
|
56250
56388
|
availability: DishwasherAvailabilitySchema,
|
|
56251
56389
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56278,8 +56416,6 @@ var DishwasherStatusSchema = object({
|
|
|
56278
56416
|
powerOn: boolean().nullable(),
|
|
56279
56417
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56280
56418
|
powerState: string().nullable(),
|
|
56281
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56282
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56283
56419
|
/**
|
|
56284
56420
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56285
56421
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -65095,60 +65231,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65095
65231
|
auth: "admin",
|
|
65096
65232
|
access: "delete"
|
|
65097
65233
|
});
|
|
65098
|
-
/**
|
|
65099
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
65100
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
65101
|
-
* optional fan-speed selector.
|
|
65102
|
-
*
|
|
65103
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
65104
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
65105
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
65106
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
65107
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
65108
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
65109
|
-
*
|
|
65110
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
65111
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
65112
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
65113
|
-
*
|
|
65114
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
65115
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
65116
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
65117
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
65118
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
65119
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
65120
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
65121
|
-
* so the HA provider leaves all four `null`.
|
|
65122
|
-
*/
|
|
65123
|
-
var VacuumStateSchema = _enum([
|
|
65124
|
-
"idle",
|
|
65125
|
-
"cleaning",
|
|
65126
|
-
"paused",
|
|
65127
|
-
"returning",
|
|
65128
|
-
"docked",
|
|
65129
|
-
"drying",
|
|
65130
|
-
"error"
|
|
65131
|
-
]);
|
|
65132
|
-
/**
|
|
65133
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
65134
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
65135
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
65136
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
65137
|
-
* hardware has no such tank at all.
|
|
65138
|
-
*/
|
|
65139
|
-
var TankStatusSchema = object({
|
|
65140
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
65141
|
-
level: number().min(0).max(100).nullable(),
|
|
65142
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
65143
|
-
status: _enum([
|
|
65144
|
-
"ok",
|
|
65145
|
-
"low",
|
|
65146
|
-
"full"
|
|
65147
|
-
]).nullable()
|
|
65148
|
-
});
|
|
65149
65234
|
var VacuumControlStatusSchema = object({
|
|
65150
65235
|
/** Lifecycle state of the vacuum. */
|
|
65151
|
-
state:
|
|
65236
|
+
state: _enum([
|
|
65237
|
+
"idle",
|
|
65238
|
+
"cleaning",
|
|
65239
|
+
"paused",
|
|
65240
|
+
"returning",
|
|
65241
|
+
"docked",
|
|
65242
|
+
"drying",
|
|
65243
|
+
"error"
|
|
65244
|
+
]),
|
|
65152
65245
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
65153
65246
|
* reading. */
|
|
65154
65247
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -65157,14 +65250,6 @@ var VacuumControlStatusSchema = object({
|
|
|
65157
65250
|
fanSpeed: string().nullable(),
|
|
65158
65251
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
65159
65252
|
availableFanSpeeds: array(string()),
|
|
65160
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
65161
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
65162
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
65163
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
65164
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
65165
|
-
detergent: TankStatusSchema.nullable(),
|
|
65166
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
65167
|
-
dustBin: TankStatusSchema.nullable(),
|
|
65168
65253
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
65169
65254
|
progressPercent: number().min(0).max(100).nullable(),
|
|
65170
65255
|
/** Current error code (0 / null = no error). */
|
|
@@ -65226,35 +65311,14 @@ var vacuumControlCapability = {
|
|
|
65226
65311
|
*/
|
|
65227
65312
|
durability: "session",
|
|
65228
65313
|
/**
|
|
65229
|
-
* 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.
|
|
65230
65316
|
*/
|
|
65231
|
-
history: { fields: {
|
|
65232
|
-
|
|
65233
|
-
|
|
65234
|
-
|
|
65235
|
-
|
|
65236
|
-
},
|
|
65237
|
-
"cleanWater.level": {
|
|
65238
|
-
kind: "gauge",
|
|
65239
|
-
unit: "%",
|
|
65240
|
-
deadband: 2
|
|
65241
|
-
},
|
|
65242
|
-
"dirtyWater.level": {
|
|
65243
|
-
kind: "gauge",
|
|
65244
|
-
unit: "%",
|
|
65245
|
-
deadband: 2
|
|
65246
|
-
},
|
|
65247
|
-
"detergent.level": {
|
|
65248
|
-
kind: "gauge",
|
|
65249
|
-
unit: "%",
|
|
65250
|
-
deadband: 2
|
|
65251
|
-
},
|
|
65252
|
-
"dustBin.level": {
|
|
65253
|
-
kind: "gauge",
|
|
65254
|
-
unit: "%",
|
|
65255
|
-
deadband: 2
|
|
65256
|
-
}
|
|
65257
|
-
} }
|
|
65317
|
+
history: { fields: { batteryLevel: {
|
|
65318
|
+
kind: "gauge",
|
|
65319
|
+
unit: "%",
|
|
65320
|
+
deadband: 2
|
|
65321
|
+
} } }
|
|
65258
65322
|
};
|
|
65259
65323
|
var ValveStatusSchema = object({
|
|
65260
65324
|
/** Lifecycle state of the valve. */
|
|
@@ -69648,6 +69712,12 @@ Object.freeze({
|
|
|
69648
69712
|
addonId: null,
|
|
69649
69713
|
access: "create"
|
|
69650
69714
|
},
|
|
69715
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
69716
|
+
capName: "device-history",
|
|
69717
|
+
capScope: "system",
|
|
69718
|
+
addonId: null,
|
|
69719
|
+
access: "delete"
|
|
69720
|
+
},
|
|
69651
69721
|
"deviceHistory.getDeviceEnabled": {
|
|
69652
69722
|
capName: "device-history",
|
|
69653
69723
|
capScope: "system",
|
|
@@ -69666,6 +69736,12 @@ Object.freeze({
|
|
|
69666
69736
|
addonId: null,
|
|
69667
69737
|
access: "view"
|
|
69668
69738
|
},
|
|
69739
|
+
"deviceHistory.listOrphanSeries": {
|
|
69740
|
+
capName: "device-history",
|
|
69741
|
+
capScope: "system",
|
|
69742
|
+
addonId: null,
|
|
69743
|
+
access: "view"
|
|
69744
|
+
},
|
|
69669
69745
|
"deviceHistory.listSeries": {
|
|
69670
69746
|
capName: "device-history",
|
|
69671
69747
|
capScope: "system",
|
|
@@ -79671,7 +79747,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
79671
79747
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
79672
79748
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
79673
79749
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
79674
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
79750
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
79675
79751
|
([...RULE_TEXT], [...TANK]),
|
|
79676
79752
|
[...RULE_TEXT],
|
|
79677
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",
|