@camstack/addon-provider-homematic 1.2.137 → 1.2.139
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 +341 -37
- package/dist/addon.mjs +341 -37
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -8,7 +8,7 @@ let http = require("http");
|
|
|
8
8
|
let crypto$1 = require("crypto");
|
|
9
9
|
let fs_promises = require("fs/promises");
|
|
10
10
|
let path = require("path");
|
|
11
|
-
//#region ../types/dist/event-category-
|
|
11
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
12
12
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
13
13
|
EventCategory["SystemBoot"] = "system.boot";
|
|
14
14
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -87,9 +87,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
87
87
|
/**
|
|
88
88
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
89
89
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
90
|
-
* alert centre turns it into one
|
|
90
|
+
* alert centre turns it into one critical alert.
|
|
91
91
|
*/
|
|
92
92
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
93
|
+
/**
|
|
94
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
95
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
96
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
97
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
98
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
99
|
+
* event may be dropped (D8, D11).
|
|
100
|
+
*/
|
|
101
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
93
102
|
EventCategory["AddonError"] = "addon.error";
|
|
94
103
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
95
104
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5547,7 +5556,7 @@ var ZodIssueCode = {
|
|
|
5547
5556
|
var ZodFirstPartyTypeKind;
|
|
5548
5557
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5549
5558
|
//#endregion
|
|
5550
|
-
//#region ../types/dist/sleep-
|
|
5559
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5551
5560
|
/**
|
|
5552
5561
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5553
5562
|
* window to float samples (D455).
|
|
@@ -13510,7 +13519,14 @@ var AlertSeveritySchema = _enum([
|
|
|
13510
13519
|
]);
|
|
13511
13520
|
var AlertActionSchema = object({
|
|
13512
13521
|
label: string(),
|
|
13513
|
-
href: string().optional()
|
|
13522
|
+
href: string().optional(),
|
|
13523
|
+
/**
|
|
13524
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
13525
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
13526
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
13527
|
+
* the SPA has no such route and would bounce to the home page.
|
|
13528
|
+
*/
|
|
13529
|
+
navigation: _enum(["app", "server"]).optional()
|
|
13514
13530
|
});
|
|
13515
13531
|
var AlertStatusSchema = _enum([
|
|
13516
13532
|
"active",
|
|
@@ -18053,7 +18069,11 @@ var deviceDiscoveryCapability = {
|
|
|
18053
18069
|
};
|
|
18054
18070
|
/**
|
|
18055
18071
|
* `device-adoption` — generic discovery + adoption surface,
|
|
18056
|
-
* system-scoped
|
|
18072
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
18073
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
18074
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
18075
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
18076
|
+
* successor to `ha-discovery`:
|
|
18057
18077
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
18058
18078
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
18059
18079
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -18218,7 +18238,7 @@ var ResyncResultSchema = object({
|
|
|
18218
18238
|
var deviceAdoptionCapability = {
|
|
18219
18239
|
name: "device-adoption",
|
|
18220
18240
|
scope: "system",
|
|
18221
|
-
mode: "
|
|
18241
|
+
mode: "collection",
|
|
18222
18242
|
status: {
|
|
18223
18243
|
schema: AdoptionStatusSchema,
|
|
18224
18244
|
kind: "poll"
|
|
@@ -42401,6 +42421,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42401
42421
|
"server-updated",
|
|
42402
42422
|
"export-completed",
|
|
42403
42423
|
"backup-completed",
|
|
42424
|
+
"alert-critical",
|
|
42425
|
+
"alert-error",
|
|
42426
|
+
"alert-critical-resolved",
|
|
42404
42427
|
"camera-online",
|
|
42405
42428
|
"camera-offline",
|
|
42406
42429
|
"camera-disabled",
|
|
@@ -51477,7 +51500,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
51477
51500
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
51478
51501
|
kind: "mutation",
|
|
51479
51502
|
auth: "admin"
|
|
51480
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
51503
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
51504
|
+
clear: boolean(),
|
|
51505
|
+
repointLocationId: string().optional()
|
|
51506
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
51481
51507
|
kind: "mutation",
|
|
51482
51508
|
auth: "admin"
|
|
51483
51509
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -55733,6 +55759,11 @@ onStatusChanged: { data: object({
|
|
|
55733
55759
|
*
|
|
55734
55760
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
55735
55761
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
55762
|
+
*
|
|
55763
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
55764
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
55765
|
+
* the link is down, or the description does not carry it) and is never
|
|
55766
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
55736
55767
|
*/
|
|
55737
55768
|
var DishwasherStateSchema = _enum([
|
|
55738
55769
|
"idle",
|
|
@@ -55742,35 +55773,155 @@ var DishwasherStateSchema = _enum([
|
|
|
55742
55773
|
"error",
|
|
55743
55774
|
"unavailable"
|
|
55744
55775
|
]);
|
|
55776
|
+
/**
|
|
55777
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
55778
|
+
* view for compact surfaces; this is what the appliance said.
|
|
55779
|
+
*/
|
|
55780
|
+
var DishwasherOperationStateSchema = _enum([
|
|
55781
|
+
"Inactive",
|
|
55782
|
+
"Ready",
|
|
55783
|
+
"DelayedStart",
|
|
55784
|
+
"Run",
|
|
55785
|
+
"Pause",
|
|
55786
|
+
"ActionRequired",
|
|
55787
|
+
"Finished",
|
|
55788
|
+
"Error",
|
|
55789
|
+
"Aborting"
|
|
55790
|
+
]);
|
|
55791
|
+
/**
|
|
55792
|
+
* Why fields may be `null`:
|
|
55793
|
+
* - `available` — the link is up and the description is loaded;
|
|
55794
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
55795
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
55796
|
+
* be loaded, so its values cannot be decoded.
|
|
55797
|
+
*/
|
|
55798
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
55799
|
+
"available",
|
|
55800
|
+
"offline",
|
|
55801
|
+
"description-missing"
|
|
55802
|
+
]);
|
|
55745
55803
|
var DishwasherConsumableLevelSchema = _enum([
|
|
55746
55804
|
"ok",
|
|
55747
55805
|
"low",
|
|
55748
55806
|
"empty"
|
|
55749
55807
|
]);
|
|
55750
55808
|
var DishwasherStatusSchema = object({
|
|
55809
|
+
availability: DishwasherAvailabilitySchema,
|
|
55810
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
55751
55811
|
state: DishwasherStateSchema,
|
|
55752
|
-
/**
|
|
55812
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
55813
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
55814
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
55753
55815
|
program: string().nullable(),
|
|
55754
|
-
/**
|
|
55816
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
55817
|
+
selectedProgram: string().nullable(),
|
|
55818
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
55755
55819
|
availablePrograms: array(string()),
|
|
55756
|
-
/**
|
|
55757
|
-
|
|
55820
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
55821
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
55822
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
55823
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
55758
55824
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
55759
55825
|
progressPercent: number().min(0).max(100).nullable(),
|
|
55760
|
-
/** True when the door is reported open. */
|
|
55761
|
-
doorOpen: boolean(),
|
|
55762
|
-
/** True when
|
|
55763
|
-
|
|
55764
|
-
/**
|
|
55765
|
-
|
|
55826
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
55827
|
+
doorOpen: boolean().nullable(),
|
|
55828
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
55829
|
+
doorLocked: boolean().nullable(),
|
|
55830
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
55831
|
+
remoteStartAllowed: boolean().nullable(),
|
|
55832
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
55833
|
+
remoteControlActive: boolean().nullable(),
|
|
55834
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
55835
|
+
localControlActive: boolean().nullable(),
|
|
55836
|
+
/** Main power / switched-on state; null when not known. */
|
|
55837
|
+
powerOn: boolean().nullable(),
|
|
55838
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
55839
|
+
powerState: string().nullable(),
|
|
55766
55840
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55767
55841
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55768
|
-
|
|
55769
|
-
|
|
55842
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
55843
|
+
halfLoad: boolean().nullable(),
|
|
55844
|
+
hygienePlus: boolean().nullable(),
|
|
55845
|
+
/** Extra dry option when the appliance exposes it. */
|
|
55846
|
+
extraDry: boolean().nullable(),
|
|
55847
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
55848
|
+
intensiveZone: boolean().nullable(),
|
|
55849
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
55850
|
+
varioSpeedPlus: boolean().nullable(),
|
|
55851
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
55852
|
+
childLock: boolean().nullable(),
|
|
55853
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
55854
|
+
activeEvents: array(string()),
|
|
55855
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
55770
55856
|
errorCode: number().nullable(),
|
|
55857
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
55771
55858
|
errorLabel: string().nullable(),
|
|
55859
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
55772
55860
|
lastFetchedAt: number()
|
|
55773
55861
|
});
|
|
55862
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
55863
|
+
/** A value a program option or setting can take. */
|
|
55864
|
+
var DishwasherValueSchema = union([
|
|
55865
|
+
boolean(),
|
|
55866
|
+
string(),
|
|
55867
|
+
number()
|
|
55868
|
+
]);
|
|
55869
|
+
var DishwasherAccessSchema = _enum([
|
|
55870
|
+
"none",
|
|
55871
|
+
"read",
|
|
55872
|
+
"readWrite",
|
|
55873
|
+
"writeOnly",
|
|
55874
|
+
"readStatic"
|
|
55875
|
+
]);
|
|
55876
|
+
/**
|
|
55877
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
55878
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
55879
|
+
*/
|
|
55880
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
55881
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
55882
|
+
key: string(),
|
|
55883
|
+
/** Last segment of the key, for display. */
|
|
55884
|
+
name: string(),
|
|
55885
|
+
type: _enum([
|
|
55886
|
+
"boolean",
|
|
55887
|
+
"number",
|
|
55888
|
+
"enum",
|
|
55889
|
+
"string"
|
|
55890
|
+
]),
|
|
55891
|
+
access: DishwasherAccessSchema,
|
|
55892
|
+
/** The appliance reports this entity as currently available. */
|
|
55893
|
+
available: boolean(),
|
|
55894
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
55895
|
+
unit: string().nullable(),
|
|
55896
|
+
min: number().nullable(),
|
|
55897
|
+
max: number().nullable(),
|
|
55898
|
+
step: number().nullable(),
|
|
55899
|
+
/** Allowed members of an enum; null for other types. */
|
|
55900
|
+
enumValues: array(string()).nullable(),
|
|
55901
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
55902
|
+
});
|
|
55903
|
+
var DishwasherProgramSchema = object({
|
|
55904
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
55905
|
+
key: string(),
|
|
55906
|
+
name: string(),
|
|
55907
|
+
/** The appliance currently offers this program. */
|
|
55908
|
+
available: boolean(),
|
|
55909
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
55910
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
55911
|
+
});
|
|
55912
|
+
var DishwasherOptionsSchema = object({
|
|
55913
|
+
availability: DishwasherAvailabilitySchema,
|
|
55914
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
55915
|
+
supportsStart: boolean(),
|
|
55916
|
+
supportsPause: boolean(),
|
|
55917
|
+
supportsResume: boolean(),
|
|
55918
|
+
supportsStop: boolean(),
|
|
55919
|
+
supportsPower: boolean(),
|
|
55920
|
+
/** Every program the description lists, with its options. */
|
|
55921
|
+
programs: array(DishwasherProgramSchema),
|
|
55922
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
55923
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
55924
|
+
});
|
|
55774
55925
|
var dishwasherCapability = {
|
|
55775
55926
|
name: "dishwasher",
|
|
55776
55927
|
scope: "device",
|
|
@@ -55778,58 +55929,102 @@ var dishwasherCapability = {
|
|
|
55778
55929
|
mode: "singleton",
|
|
55779
55930
|
deviceTypes: [DeviceType.Dishwasher],
|
|
55780
55931
|
methods: {
|
|
55781
|
-
|
|
55932
|
+
/**
|
|
55933
|
+
* Start a program. Without `program` the selected one starts. `options` are
|
|
55934
|
+
* option feature keys; each is checked against the program's constraints.
|
|
55935
|
+
*/
|
|
55936
|
+
start: method(object({
|
|
55937
|
+
deviceId: DeviceIdSchema,
|
|
55938
|
+
program: string().min(1).optional(),
|
|
55939
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
55940
|
+
}), _void(), {
|
|
55782
55941
|
kind: "mutation",
|
|
55783
55942
|
auth: "protected"
|
|
55784
55943
|
}),
|
|
55785
|
-
pause: method(object({ deviceId:
|
|
55944
|
+
pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55786
55945
|
kind: "mutation",
|
|
55787
55946
|
auth: "protected"
|
|
55788
55947
|
}),
|
|
55789
|
-
|
|
55948
|
+
resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55790
55949
|
kind: "mutation",
|
|
55791
55950
|
auth: "protected"
|
|
55792
55951
|
}),
|
|
55952
|
+
stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55953
|
+
kind: "mutation",
|
|
55954
|
+
auth: "protected"
|
|
55955
|
+
}),
|
|
55956
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
55793
55957
|
setProgram: method(object({
|
|
55794
|
-
deviceId:
|
|
55958
|
+
deviceId: DeviceIdSchema,
|
|
55795
55959
|
program: string().min(1)
|
|
55796
55960
|
}), _void(), {
|
|
55797
55961
|
kind: "mutation",
|
|
55798
55962
|
auth: "protected"
|
|
55799
55963
|
}),
|
|
55800
55964
|
setPower: method(object({
|
|
55801
|
-
deviceId:
|
|
55965
|
+
deviceId: DeviceIdSchema,
|
|
55802
55966
|
on: boolean()
|
|
55803
55967
|
}), _void(), {
|
|
55804
55968
|
kind: "mutation",
|
|
55805
55969
|
auth: "protected"
|
|
55806
55970
|
}),
|
|
55807
55971
|
setHalfLoad: method(object({
|
|
55808
|
-
deviceId:
|
|
55972
|
+
deviceId: DeviceIdSchema,
|
|
55809
55973
|
on: boolean()
|
|
55810
55974
|
}), _void(), {
|
|
55811
55975
|
kind: "mutation",
|
|
55812
55976
|
auth: "protected"
|
|
55813
55977
|
}),
|
|
55814
55978
|
setHygienePlus: method(object({
|
|
55815
|
-
deviceId:
|
|
55979
|
+
deviceId: DeviceIdSchema,
|
|
55816
55980
|
on: boolean()
|
|
55817
55981
|
}), _void(), {
|
|
55818
55982
|
kind: "mutation",
|
|
55819
55983
|
auth: "protected"
|
|
55820
55984
|
}),
|
|
55985
|
+
setExtraDry: method(object({
|
|
55986
|
+
deviceId: DeviceIdSchema,
|
|
55987
|
+
on: boolean()
|
|
55988
|
+
}), _void(), {
|
|
55989
|
+
kind: "mutation",
|
|
55990
|
+
auth: "protected"
|
|
55991
|
+
}),
|
|
55992
|
+
setIntensiveZone: method(object({
|
|
55993
|
+
deviceId: DeviceIdSchema,
|
|
55994
|
+
on: boolean()
|
|
55995
|
+
}), _void(), {
|
|
55996
|
+
kind: "mutation",
|
|
55997
|
+
auth: "protected"
|
|
55998
|
+
}),
|
|
55999
|
+
setVarioSpeedPlus: method(object({
|
|
56000
|
+
deviceId: DeviceIdSchema,
|
|
56001
|
+
on: boolean()
|
|
56002
|
+
}), _void(), {
|
|
56003
|
+
kind: "mutation",
|
|
56004
|
+
auth: "protected"
|
|
56005
|
+
}),
|
|
56006
|
+
setChildLock: method(object({
|
|
56007
|
+
deviceId: DeviceIdSchema,
|
|
56008
|
+
on: boolean()
|
|
56009
|
+
}), _void(), {
|
|
56010
|
+
kind: "mutation",
|
|
56011
|
+
auth: "protected"
|
|
56012
|
+
}),
|
|
56013
|
+
/**
|
|
56014
|
+
* Write any option or setting by feature key. Refused when the description does
|
|
56015
|
+
* not list it, it is not writable or not available now, or the value is outside
|
|
56016
|
+
* its declared range / members.
|
|
56017
|
+
*/
|
|
55821
56018
|
setOption: method(object({
|
|
55822
|
-
deviceId:
|
|
56019
|
+
deviceId: DeviceIdSchema,
|
|
55823
56020
|
key: string().min(1),
|
|
55824
|
-
value:
|
|
55825
|
-
boolean(),
|
|
55826
|
-
string(),
|
|
55827
|
-
number()
|
|
55828
|
-
])
|
|
56021
|
+
value: DishwasherValueSchema
|
|
55829
56022
|
}), _void(), {
|
|
55830
56023
|
kind: "mutation",
|
|
55831
56024
|
auth: "protected"
|
|
55832
|
-
})
|
|
56025
|
+
}),
|
|
56026
|
+
/** What this appliance can do, from its own description — the UI is derived from it. */
|
|
56027
|
+
getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
|
|
55833
56028
|
},
|
|
55834
56029
|
status: {
|
|
55835
56030
|
schema: DishwasherStatusSchema,
|
|
@@ -69778,6 +69973,12 @@ Object.freeze({
|
|
|
69778
69973
|
addonId: null,
|
|
69779
69974
|
access: "view"
|
|
69780
69975
|
},
|
|
69976
|
+
"dishwasher.getOptions": {
|
|
69977
|
+
capName: "dishwasher",
|
|
69978
|
+
capScope: "device",
|
|
69979
|
+
addonId: null,
|
|
69980
|
+
access: "view"
|
|
69981
|
+
},
|
|
69781
69982
|
"dishwasher.getStatus": {
|
|
69782
69983
|
capName: "dishwasher",
|
|
69783
69984
|
capScope: "device",
|
|
@@ -69790,6 +69991,24 @@ Object.freeze({
|
|
|
69790
69991
|
addonId: null,
|
|
69791
69992
|
access: "create"
|
|
69792
69993
|
},
|
|
69994
|
+
"dishwasher.resume": {
|
|
69995
|
+
capName: "dishwasher",
|
|
69996
|
+
capScope: "device",
|
|
69997
|
+
addonId: null,
|
|
69998
|
+
access: "create"
|
|
69999
|
+
},
|
|
70000
|
+
"dishwasher.setChildLock": {
|
|
70001
|
+
capName: "dishwasher",
|
|
70002
|
+
capScope: "device",
|
|
70003
|
+
addonId: null,
|
|
70004
|
+
access: "create"
|
|
70005
|
+
},
|
|
70006
|
+
"dishwasher.setExtraDry": {
|
|
70007
|
+
capName: "dishwasher",
|
|
70008
|
+
capScope: "device",
|
|
70009
|
+
addonId: null,
|
|
70010
|
+
access: "create"
|
|
70011
|
+
},
|
|
69793
70012
|
"dishwasher.setHalfLoad": {
|
|
69794
70013
|
capName: "dishwasher",
|
|
69795
70014
|
capScope: "device",
|
|
@@ -69802,6 +70021,12 @@ Object.freeze({
|
|
|
69802
70021
|
addonId: null,
|
|
69803
70022
|
access: "create"
|
|
69804
70023
|
},
|
|
70024
|
+
"dishwasher.setIntensiveZone": {
|
|
70025
|
+
capName: "dishwasher",
|
|
70026
|
+
capScope: "device",
|
|
70027
|
+
addonId: null,
|
|
70028
|
+
access: "create"
|
|
70029
|
+
},
|
|
69805
70030
|
"dishwasher.setOption": {
|
|
69806
70031
|
capName: "dishwasher",
|
|
69807
70032
|
capScope: "device",
|
|
@@ -69820,6 +70045,12 @@ Object.freeze({
|
|
|
69820
70045
|
addonId: null,
|
|
69821
70046
|
access: "create"
|
|
69822
70047
|
},
|
|
70048
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
70049
|
+
capName: "dishwasher",
|
|
70050
|
+
capScope: "device",
|
|
70051
|
+
addonId: null,
|
|
70052
|
+
access: "create"
|
|
70053
|
+
},
|
|
69823
70054
|
"dishwasher.start": {
|
|
69824
70055
|
capName: "dishwasher",
|
|
69825
70056
|
capScope: "device",
|
|
@@ -74266,6 +74497,12 @@ Object.freeze({
|
|
|
74266
74497
|
addonId: null,
|
|
74267
74498
|
access: "view"
|
|
74268
74499
|
},
|
|
74500
|
+
"storageMigration.moverClearance": {
|
|
74501
|
+
capName: "storage-migration",
|
|
74502
|
+
capScope: "system",
|
|
74503
|
+
addonId: null,
|
|
74504
|
+
access: "view"
|
|
74505
|
+
},
|
|
74269
74506
|
"storageMigration.movers": {
|
|
74270
74507
|
capName: "storage-migration",
|
|
74271
74508
|
capScope: "system",
|
|
@@ -76459,6 +76696,11 @@ Object.freeze({
|
|
|
76459
76696
|
form: "single",
|
|
76460
76697
|
optional: false
|
|
76461
76698
|
}],
|
|
76699
|
+
"dishwasher.getOptions": [{
|
|
76700
|
+
name: "deviceId",
|
|
76701
|
+
form: "single",
|
|
76702
|
+
optional: false
|
|
76703
|
+
}],
|
|
76462
76704
|
"dishwasher.getStatus": [{
|
|
76463
76705
|
name: "deviceId",
|
|
76464
76706
|
form: "single",
|
|
@@ -76469,6 +76711,21 @@ Object.freeze({
|
|
|
76469
76711
|
form: "single",
|
|
76470
76712
|
optional: false
|
|
76471
76713
|
}],
|
|
76714
|
+
"dishwasher.resume": [{
|
|
76715
|
+
name: "deviceId",
|
|
76716
|
+
form: "single",
|
|
76717
|
+
optional: false
|
|
76718
|
+
}],
|
|
76719
|
+
"dishwasher.setChildLock": [{
|
|
76720
|
+
name: "deviceId",
|
|
76721
|
+
form: "single",
|
|
76722
|
+
optional: false
|
|
76723
|
+
}],
|
|
76724
|
+
"dishwasher.setExtraDry": [{
|
|
76725
|
+
name: "deviceId",
|
|
76726
|
+
form: "single",
|
|
76727
|
+
optional: false
|
|
76728
|
+
}],
|
|
76472
76729
|
"dishwasher.setHalfLoad": [{
|
|
76473
76730
|
name: "deviceId",
|
|
76474
76731
|
form: "single",
|
|
@@ -76479,6 +76736,11 @@ Object.freeze({
|
|
|
76479
76736
|
form: "single",
|
|
76480
76737
|
optional: false
|
|
76481
76738
|
}],
|
|
76739
|
+
"dishwasher.setIntensiveZone": [{
|
|
76740
|
+
name: "deviceId",
|
|
76741
|
+
form: "single",
|
|
76742
|
+
optional: false
|
|
76743
|
+
}],
|
|
76482
76744
|
"dishwasher.setOption": [{
|
|
76483
76745
|
name: "deviceId",
|
|
76484
76746
|
form: "single",
|
|
@@ -76494,6 +76756,11 @@ Object.freeze({
|
|
|
76494
76756
|
form: "single",
|
|
76495
76757
|
optional: false
|
|
76496
76758
|
}],
|
|
76759
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
76760
|
+
name: "deviceId",
|
|
76761
|
+
form: "single",
|
|
76762
|
+
optional: false
|
|
76763
|
+
}],
|
|
76497
76764
|
"dishwasher.start": [{
|
|
76498
76765
|
name: "deviceId",
|
|
76499
76766
|
form: "single",
|
|
@@ -78535,6 +78802,9 @@ new Map(Object.entries({
|
|
|
78535
78802
|
"wrapper-update-available": "system",
|
|
78536
78803
|
"backup-completed": "system",
|
|
78537
78804
|
"export-completed": "system",
|
|
78805
|
+
"alert-critical": "system",
|
|
78806
|
+
"alert-error": "system",
|
|
78807
|
+
"alert-critical-resolved": "system",
|
|
78538
78808
|
"storage-location-low": "system",
|
|
78539
78809
|
"storage-location-critical": "system",
|
|
78540
78810
|
"storage-location-ok": "system",
|
|
@@ -78659,6 +78929,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
78659
78929
|
"storage-location-ok"
|
|
78660
78930
|
]
|
|
78661
78931
|
},
|
|
78932
|
+
{
|
|
78933
|
+
id: "alerts",
|
|
78934
|
+
family: "system",
|
|
78935
|
+
label: "Alerts",
|
|
78936
|
+
kinds: [
|
|
78937
|
+
"alert-critical",
|
|
78938
|
+
"alert-error",
|
|
78939
|
+
"alert-critical-resolved"
|
|
78940
|
+
]
|
|
78941
|
+
},
|
|
78662
78942
|
{
|
|
78663
78943
|
id: "alarm",
|
|
78664
78944
|
family: "alarm",
|
|
@@ -78703,6 +78983,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
78703
78983
|
return [[descriptor.kind, field]];
|
|
78704
78984
|
})));
|
|
78705
78985
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
78986
|
+
object({
|
|
78987
|
+
phase: _enum(["raised", "resolved"]),
|
|
78988
|
+
episodeId: string().min(1),
|
|
78989
|
+
alertId: string().min(1),
|
|
78990
|
+
severity: AlertSeveritySchema,
|
|
78991
|
+
category: string(),
|
|
78992
|
+
title: string(),
|
|
78993
|
+
message: string(),
|
|
78994
|
+
sourceType: string().optional(),
|
|
78995
|
+
sourceId: string().optional(),
|
|
78996
|
+
nodeId: string().optional(),
|
|
78997
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
78998
|
+
actionUrl: string().optional(),
|
|
78999
|
+
at: number()
|
|
79000
|
+
});
|
|
78706
79001
|
var RULE_BODY_ONLY = ["body"];
|
|
78707
79002
|
var RULE_TEXT = ["title", "body"];
|
|
78708
79003
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -78712,6 +79007,11 @@ var TANK = [
|
|
|
78712
79007
|
"device-tank-full",
|
|
78713
79008
|
"device-tank-normal"
|
|
78714
79009
|
];
|
|
79010
|
+
var ALERT_EPISODE = [
|
|
79011
|
+
"alert-critical",
|
|
79012
|
+
"alert-error",
|
|
79013
|
+
"alert-critical-resolved"
|
|
79014
|
+
];
|
|
78715
79015
|
var UPDATES = [
|
|
78716
79016
|
"addon-update-available",
|
|
78717
79017
|
"server-update-available",
|
|
@@ -78904,14 +79204,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
78904
79204
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
78905
79205
|
([...RULE_TEXT], [...TANK]),
|
|
78906
79206
|
[...RULE_TEXT],
|
|
78907
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
78908
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
78909
|
-
[...RULE_TEXT],
|
|
79207
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79208
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
78910
79209
|
[...RULE_TEXT],
|
|
78911
79210
|
[...RULE_TEXT],
|
|
78912
79211
|
[...RULE_TEXT],
|
|
78913
79212
|
[...RULE_TEXT],
|
|
78914
79213
|
[...RULE_TEXT],
|
|
79214
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
78915
79215
|
[...RULE_TEXT],
|
|
78916
79216
|
[...RULE_TEXT],
|
|
78917
79217
|
[...RULE_TEXT],
|
|
@@ -78929,7 +79229,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
78929
79229
|
[...RULE_TEXT],
|
|
78930
79230
|
[...RULE_TEXT],
|
|
78931
79231
|
[...RULE_TEXT],
|
|
78932
|
-
[...RULE_TEXT],
|
|
79232
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79233
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79234
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79235
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79236
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
78933
79237
|
[...RULE_TEXT],
|
|
78934
79238
|
[...RULE_TEXT],
|
|
78935
79239
|
[...RULE_TEXT],
|
package/dist/addon.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { join } from "path";
|
|
|
9
9
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region ../types/dist/event-category-
|
|
12
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
13
13
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
14
14
|
EventCategory["SystemBoot"] = "system.boot";
|
|
15
15
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -88,9 +88,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
88
88
|
/**
|
|
89
89
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
90
90
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
91
|
-
* alert centre turns it into one
|
|
91
|
+
* alert centre turns it into one critical alert.
|
|
92
92
|
*/
|
|
93
93
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
94
|
+
/**
|
|
95
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
96
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
97
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
98
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
99
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
100
|
+
* event may be dropped (D8, D11).
|
|
101
|
+
*/
|
|
102
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
94
103
|
EventCategory["AddonError"] = "addon.error";
|
|
95
104
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
96
105
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5548,7 +5557,7 @@ var ZodIssueCode = {
|
|
|
5548
5557
|
var ZodFirstPartyTypeKind;
|
|
5549
5558
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5550
5559
|
//#endregion
|
|
5551
|
-
//#region ../types/dist/sleep-
|
|
5560
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5552
5561
|
/**
|
|
5553
5562
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5554
5563
|
* window to float samples (D455).
|
|
@@ -13511,7 +13520,14 @@ var AlertSeveritySchema = _enum([
|
|
|
13511
13520
|
]);
|
|
13512
13521
|
var AlertActionSchema = object({
|
|
13513
13522
|
label: string(),
|
|
13514
|
-
href: string().optional()
|
|
13523
|
+
href: string().optional(),
|
|
13524
|
+
/**
|
|
13525
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
13526
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
13527
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
13528
|
+
* the SPA has no such route and would bounce to the home page.
|
|
13529
|
+
*/
|
|
13530
|
+
navigation: _enum(["app", "server"]).optional()
|
|
13515
13531
|
});
|
|
13516
13532
|
var AlertStatusSchema = _enum([
|
|
13517
13533
|
"active",
|
|
@@ -18054,7 +18070,11 @@ var deviceDiscoveryCapability = {
|
|
|
18054
18070
|
};
|
|
18055
18071
|
/**
|
|
18056
18072
|
* `device-adoption` — generic discovery + adoption surface,
|
|
18057
|
-
* system-scoped
|
|
18073
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
18074
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
18075
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
18076
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
18077
|
+
* successor to `ha-discovery`:
|
|
18058
18078
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
18059
18079
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
18060
18080
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -18219,7 +18239,7 @@ var ResyncResultSchema = object({
|
|
|
18219
18239
|
var deviceAdoptionCapability = {
|
|
18220
18240
|
name: "device-adoption",
|
|
18221
18241
|
scope: "system",
|
|
18222
|
-
mode: "
|
|
18242
|
+
mode: "collection",
|
|
18223
18243
|
status: {
|
|
18224
18244
|
schema: AdoptionStatusSchema,
|
|
18225
18245
|
kind: "poll"
|
|
@@ -42402,6 +42422,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42402
42422
|
"server-updated",
|
|
42403
42423
|
"export-completed",
|
|
42404
42424
|
"backup-completed",
|
|
42425
|
+
"alert-critical",
|
|
42426
|
+
"alert-error",
|
|
42427
|
+
"alert-critical-resolved",
|
|
42405
42428
|
"camera-online",
|
|
42406
42429
|
"camera-offline",
|
|
42407
42430
|
"camera-disabled",
|
|
@@ -51478,7 +51501,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
51478
51501
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
51479
51502
|
kind: "mutation",
|
|
51480
51503
|
auth: "admin"
|
|
51481
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
51504
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
51505
|
+
clear: boolean(),
|
|
51506
|
+
repointLocationId: string().optional()
|
|
51507
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
51482
51508
|
kind: "mutation",
|
|
51483
51509
|
auth: "admin"
|
|
51484
51510
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -55734,6 +55760,11 @@ onStatusChanged: { data: object({
|
|
|
55734
55760
|
*
|
|
55735
55761
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
55736
55762
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
55763
|
+
*
|
|
55764
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
55765
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
55766
|
+
* the link is down, or the description does not carry it) and is never
|
|
55767
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
55737
55768
|
*/
|
|
55738
55769
|
var DishwasherStateSchema = _enum([
|
|
55739
55770
|
"idle",
|
|
@@ -55743,35 +55774,155 @@ var DishwasherStateSchema = _enum([
|
|
|
55743
55774
|
"error",
|
|
55744
55775
|
"unavailable"
|
|
55745
55776
|
]);
|
|
55777
|
+
/**
|
|
55778
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
55779
|
+
* view for compact surfaces; this is what the appliance said.
|
|
55780
|
+
*/
|
|
55781
|
+
var DishwasherOperationStateSchema = _enum([
|
|
55782
|
+
"Inactive",
|
|
55783
|
+
"Ready",
|
|
55784
|
+
"DelayedStart",
|
|
55785
|
+
"Run",
|
|
55786
|
+
"Pause",
|
|
55787
|
+
"ActionRequired",
|
|
55788
|
+
"Finished",
|
|
55789
|
+
"Error",
|
|
55790
|
+
"Aborting"
|
|
55791
|
+
]);
|
|
55792
|
+
/**
|
|
55793
|
+
* Why fields may be `null`:
|
|
55794
|
+
* - `available` — the link is up and the description is loaded;
|
|
55795
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
55796
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
55797
|
+
* be loaded, so its values cannot be decoded.
|
|
55798
|
+
*/
|
|
55799
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
55800
|
+
"available",
|
|
55801
|
+
"offline",
|
|
55802
|
+
"description-missing"
|
|
55803
|
+
]);
|
|
55746
55804
|
var DishwasherConsumableLevelSchema = _enum([
|
|
55747
55805
|
"ok",
|
|
55748
55806
|
"low",
|
|
55749
55807
|
"empty"
|
|
55750
55808
|
]);
|
|
55751
55809
|
var DishwasherStatusSchema = object({
|
|
55810
|
+
availability: DishwasherAvailabilitySchema,
|
|
55811
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
55752
55812
|
state: DishwasherStateSchema,
|
|
55753
|
-
/**
|
|
55813
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
55814
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
55815
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
55754
55816
|
program: string().nullable(),
|
|
55755
|
-
/**
|
|
55817
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
55818
|
+
selectedProgram: string().nullable(),
|
|
55819
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
55756
55820
|
availablePrograms: array(string()),
|
|
55757
|
-
/**
|
|
55758
|
-
|
|
55821
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
55822
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
55823
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
55824
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
55759
55825
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
55760
55826
|
progressPercent: number().min(0).max(100).nullable(),
|
|
55761
|
-
/** True when the door is reported open. */
|
|
55762
|
-
doorOpen: boolean(),
|
|
55763
|
-
/** True when
|
|
55764
|
-
|
|
55765
|
-
/**
|
|
55766
|
-
|
|
55827
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
55828
|
+
doorOpen: boolean().nullable(),
|
|
55829
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
55830
|
+
doorLocked: boolean().nullable(),
|
|
55831
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
55832
|
+
remoteStartAllowed: boolean().nullable(),
|
|
55833
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
55834
|
+
remoteControlActive: boolean().nullable(),
|
|
55835
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
55836
|
+
localControlActive: boolean().nullable(),
|
|
55837
|
+
/** Main power / switched-on state; null when not known. */
|
|
55838
|
+
powerOn: boolean().nullable(),
|
|
55839
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
55840
|
+
powerState: string().nullable(),
|
|
55767
55841
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55768
55842
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55769
|
-
|
|
55770
|
-
|
|
55843
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
55844
|
+
halfLoad: boolean().nullable(),
|
|
55845
|
+
hygienePlus: boolean().nullable(),
|
|
55846
|
+
/** Extra dry option when the appliance exposes it. */
|
|
55847
|
+
extraDry: boolean().nullable(),
|
|
55848
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
55849
|
+
intensiveZone: boolean().nullable(),
|
|
55850
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
55851
|
+
varioSpeedPlus: boolean().nullable(),
|
|
55852
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
55853
|
+
childLock: boolean().nullable(),
|
|
55854
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
55855
|
+
activeEvents: array(string()),
|
|
55856
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
55771
55857
|
errorCode: number().nullable(),
|
|
55858
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
55772
55859
|
errorLabel: string().nullable(),
|
|
55860
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
55773
55861
|
lastFetchedAt: number()
|
|
55774
55862
|
});
|
|
55863
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
55864
|
+
/** A value a program option or setting can take. */
|
|
55865
|
+
var DishwasherValueSchema = union([
|
|
55866
|
+
boolean(),
|
|
55867
|
+
string(),
|
|
55868
|
+
number()
|
|
55869
|
+
]);
|
|
55870
|
+
var DishwasherAccessSchema = _enum([
|
|
55871
|
+
"none",
|
|
55872
|
+
"read",
|
|
55873
|
+
"readWrite",
|
|
55874
|
+
"writeOnly",
|
|
55875
|
+
"readStatic"
|
|
55876
|
+
]);
|
|
55877
|
+
/**
|
|
55878
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
55879
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
55880
|
+
*/
|
|
55881
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
55882
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
55883
|
+
key: string(),
|
|
55884
|
+
/** Last segment of the key, for display. */
|
|
55885
|
+
name: string(),
|
|
55886
|
+
type: _enum([
|
|
55887
|
+
"boolean",
|
|
55888
|
+
"number",
|
|
55889
|
+
"enum",
|
|
55890
|
+
"string"
|
|
55891
|
+
]),
|
|
55892
|
+
access: DishwasherAccessSchema,
|
|
55893
|
+
/** The appliance reports this entity as currently available. */
|
|
55894
|
+
available: boolean(),
|
|
55895
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
55896
|
+
unit: string().nullable(),
|
|
55897
|
+
min: number().nullable(),
|
|
55898
|
+
max: number().nullable(),
|
|
55899
|
+
step: number().nullable(),
|
|
55900
|
+
/** Allowed members of an enum; null for other types. */
|
|
55901
|
+
enumValues: array(string()).nullable(),
|
|
55902
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
55903
|
+
});
|
|
55904
|
+
var DishwasherProgramSchema = object({
|
|
55905
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
55906
|
+
key: string(),
|
|
55907
|
+
name: string(),
|
|
55908
|
+
/** The appliance currently offers this program. */
|
|
55909
|
+
available: boolean(),
|
|
55910
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
55911
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
55912
|
+
});
|
|
55913
|
+
var DishwasherOptionsSchema = object({
|
|
55914
|
+
availability: DishwasherAvailabilitySchema,
|
|
55915
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
55916
|
+
supportsStart: boolean(),
|
|
55917
|
+
supportsPause: boolean(),
|
|
55918
|
+
supportsResume: boolean(),
|
|
55919
|
+
supportsStop: boolean(),
|
|
55920
|
+
supportsPower: boolean(),
|
|
55921
|
+
/** Every program the description lists, with its options. */
|
|
55922
|
+
programs: array(DishwasherProgramSchema),
|
|
55923
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
55924
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
55925
|
+
});
|
|
55775
55926
|
var dishwasherCapability = {
|
|
55776
55927
|
name: "dishwasher",
|
|
55777
55928
|
scope: "device",
|
|
@@ -55779,58 +55930,102 @@ var dishwasherCapability = {
|
|
|
55779
55930
|
mode: "singleton",
|
|
55780
55931
|
deviceTypes: [DeviceType.Dishwasher],
|
|
55781
55932
|
methods: {
|
|
55782
|
-
|
|
55933
|
+
/**
|
|
55934
|
+
* Start a program. Without `program` the selected one starts. `options` are
|
|
55935
|
+
* option feature keys; each is checked against the program's constraints.
|
|
55936
|
+
*/
|
|
55937
|
+
start: method(object({
|
|
55938
|
+
deviceId: DeviceIdSchema,
|
|
55939
|
+
program: string().min(1).optional(),
|
|
55940
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
55941
|
+
}), _void(), {
|
|
55783
55942
|
kind: "mutation",
|
|
55784
55943
|
auth: "protected"
|
|
55785
55944
|
}),
|
|
55786
|
-
pause: method(object({ deviceId:
|
|
55945
|
+
pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55787
55946
|
kind: "mutation",
|
|
55788
55947
|
auth: "protected"
|
|
55789
55948
|
}),
|
|
55790
|
-
|
|
55949
|
+
resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55791
55950
|
kind: "mutation",
|
|
55792
55951
|
auth: "protected"
|
|
55793
55952
|
}),
|
|
55953
|
+
stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55954
|
+
kind: "mutation",
|
|
55955
|
+
auth: "protected"
|
|
55956
|
+
}),
|
|
55957
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
55794
55958
|
setProgram: method(object({
|
|
55795
|
-
deviceId:
|
|
55959
|
+
deviceId: DeviceIdSchema,
|
|
55796
55960
|
program: string().min(1)
|
|
55797
55961
|
}), _void(), {
|
|
55798
55962
|
kind: "mutation",
|
|
55799
55963
|
auth: "protected"
|
|
55800
55964
|
}),
|
|
55801
55965
|
setPower: method(object({
|
|
55802
|
-
deviceId:
|
|
55966
|
+
deviceId: DeviceIdSchema,
|
|
55803
55967
|
on: boolean()
|
|
55804
55968
|
}), _void(), {
|
|
55805
55969
|
kind: "mutation",
|
|
55806
55970
|
auth: "protected"
|
|
55807
55971
|
}),
|
|
55808
55972
|
setHalfLoad: method(object({
|
|
55809
|
-
deviceId:
|
|
55973
|
+
deviceId: DeviceIdSchema,
|
|
55810
55974
|
on: boolean()
|
|
55811
55975
|
}), _void(), {
|
|
55812
55976
|
kind: "mutation",
|
|
55813
55977
|
auth: "protected"
|
|
55814
55978
|
}),
|
|
55815
55979
|
setHygienePlus: method(object({
|
|
55816
|
-
deviceId:
|
|
55980
|
+
deviceId: DeviceIdSchema,
|
|
55817
55981
|
on: boolean()
|
|
55818
55982
|
}), _void(), {
|
|
55819
55983
|
kind: "mutation",
|
|
55820
55984
|
auth: "protected"
|
|
55821
55985
|
}),
|
|
55986
|
+
setExtraDry: method(object({
|
|
55987
|
+
deviceId: DeviceIdSchema,
|
|
55988
|
+
on: boolean()
|
|
55989
|
+
}), _void(), {
|
|
55990
|
+
kind: "mutation",
|
|
55991
|
+
auth: "protected"
|
|
55992
|
+
}),
|
|
55993
|
+
setIntensiveZone: method(object({
|
|
55994
|
+
deviceId: DeviceIdSchema,
|
|
55995
|
+
on: boolean()
|
|
55996
|
+
}), _void(), {
|
|
55997
|
+
kind: "mutation",
|
|
55998
|
+
auth: "protected"
|
|
55999
|
+
}),
|
|
56000
|
+
setVarioSpeedPlus: method(object({
|
|
56001
|
+
deviceId: DeviceIdSchema,
|
|
56002
|
+
on: boolean()
|
|
56003
|
+
}), _void(), {
|
|
56004
|
+
kind: "mutation",
|
|
56005
|
+
auth: "protected"
|
|
56006
|
+
}),
|
|
56007
|
+
setChildLock: method(object({
|
|
56008
|
+
deviceId: DeviceIdSchema,
|
|
56009
|
+
on: boolean()
|
|
56010
|
+
}), _void(), {
|
|
56011
|
+
kind: "mutation",
|
|
56012
|
+
auth: "protected"
|
|
56013
|
+
}),
|
|
56014
|
+
/**
|
|
56015
|
+
* Write any option or setting by feature key. Refused when the description does
|
|
56016
|
+
* not list it, it is not writable or not available now, or the value is outside
|
|
56017
|
+
* its declared range / members.
|
|
56018
|
+
*/
|
|
55822
56019
|
setOption: method(object({
|
|
55823
|
-
deviceId:
|
|
56020
|
+
deviceId: DeviceIdSchema,
|
|
55824
56021
|
key: string().min(1),
|
|
55825
|
-
value:
|
|
55826
|
-
boolean(),
|
|
55827
|
-
string(),
|
|
55828
|
-
number()
|
|
55829
|
-
])
|
|
56022
|
+
value: DishwasherValueSchema
|
|
55830
56023
|
}), _void(), {
|
|
55831
56024
|
kind: "mutation",
|
|
55832
56025
|
auth: "protected"
|
|
55833
|
-
})
|
|
56026
|
+
}),
|
|
56027
|
+
/** What this appliance can do, from its own description — the UI is derived from it. */
|
|
56028
|
+
getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
|
|
55834
56029
|
},
|
|
55835
56030
|
status: {
|
|
55836
56031
|
schema: DishwasherStatusSchema,
|
|
@@ -69779,6 +69974,12 @@ Object.freeze({
|
|
|
69779
69974
|
addonId: null,
|
|
69780
69975
|
access: "view"
|
|
69781
69976
|
},
|
|
69977
|
+
"dishwasher.getOptions": {
|
|
69978
|
+
capName: "dishwasher",
|
|
69979
|
+
capScope: "device",
|
|
69980
|
+
addonId: null,
|
|
69981
|
+
access: "view"
|
|
69982
|
+
},
|
|
69782
69983
|
"dishwasher.getStatus": {
|
|
69783
69984
|
capName: "dishwasher",
|
|
69784
69985
|
capScope: "device",
|
|
@@ -69791,6 +69992,24 @@ Object.freeze({
|
|
|
69791
69992
|
addonId: null,
|
|
69792
69993
|
access: "create"
|
|
69793
69994
|
},
|
|
69995
|
+
"dishwasher.resume": {
|
|
69996
|
+
capName: "dishwasher",
|
|
69997
|
+
capScope: "device",
|
|
69998
|
+
addonId: null,
|
|
69999
|
+
access: "create"
|
|
70000
|
+
},
|
|
70001
|
+
"dishwasher.setChildLock": {
|
|
70002
|
+
capName: "dishwasher",
|
|
70003
|
+
capScope: "device",
|
|
70004
|
+
addonId: null,
|
|
70005
|
+
access: "create"
|
|
70006
|
+
},
|
|
70007
|
+
"dishwasher.setExtraDry": {
|
|
70008
|
+
capName: "dishwasher",
|
|
70009
|
+
capScope: "device",
|
|
70010
|
+
addonId: null,
|
|
70011
|
+
access: "create"
|
|
70012
|
+
},
|
|
69794
70013
|
"dishwasher.setHalfLoad": {
|
|
69795
70014
|
capName: "dishwasher",
|
|
69796
70015
|
capScope: "device",
|
|
@@ -69803,6 +70022,12 @@ Object.freeze({
|
|
|
69803
70022
|
addonId: null,
|
|
69804
70023
|
access: "create"
|
|
69805
70024
|
},
|
|
70025
|
+
"dishwasher.setIntensiveZone": {
|
|
70026
|
+
capName: "dishwasher",
|
|
70027
|
+
capScope: "device",
|
|
70028
|
+
addonId: null,
|
|
70029
|
+
access: "create"
|
|
70030
|
+
},
|
|
69806
70031
|
"dishwasher.setOption": {
|
|
69807
70032
|
capName: "dishwasher",
|
|
69808
70033
|
capScope: "device",
|
|
@@ -69821,6 +70046,12 @@ Object.freeze({
|
|
|
69821
70046
|
addonId: null,
|
|
69822
70047
|
access: "create"
|
|
69823
70048
|
},
|
|
70049
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
70050
|
+
capName: "dishwasher",
|
|
70051
|
+
capScope: "device",
|
|
70052
|
+
addonId: null,
|
|
70053
|
+
access: "create"
|
|
70054
|
+
},
|
|
69824
70055
|
"dishwasher.start": {
|
|
69825
70056
|
capName: "dishwasher",
|
|
69826
70057
|
capScope: "device",
|
|
@@ -74267,6 +74498,12 @@ Object.freeze({
|
|
|
74267
74498
|
addonId: null,
|
|
74268
74499
|
access: "view"
|
|
74269
74500
|
},
|
|
74501
|
+
"storageMigration.moverClearance": {
|
|
74502
|
+
capName: "storage-migration",
|
|
74503
|
+
capScope: "system",
|
|
74504
|
+
addonId: null,
|
|
74505
|
+
access: "view"
|
|
74506
|
+
},
|
|
74270
74507
|
"storageMigration.movers": {
|
|
74271
74508
|
capName: "storage-migration",
|
|
74272
74509
|
capScope: "system",
|
|
@@ -76460,6 +76697,11 @@ Object.freeze({
|
|
|
76460
76697
|
form: "single",
|
|
76461
76698
|
optional: false
|
|
76462
76699
|
}],
|
|
76700
|
+
"dishwasher.getOptions": [{
|
|
76701
|
+
name: "deviceId",
|
|
76702
|
+
form: "single",
|
|
76703
|
+
optional: false
|
|
76704
|
+
}],
|
|
76463
76705
|
"dishwasher.getStatus": [{
|
|
76464
76706
|
name: "deviceId",
|
|
76465
76707
|
form: "single",
|
|
@@ -76470,6 +76712,21 @@ Object.freeze({
|
|
|
76470
76712
|
form: "single",
|
|
76471
76713
|
optional: false
|
|
76472
76714
|
}],
|
|
76715
|
+
"dishwasher.resume": [{
|
|
76716
|
+
name: "deviceId",
|
|
76717
|
+
form: "single",
|
|
76718
|
+
optional: false
|
|
76719
|
+
}],
|
|
76720
|
+
"dishwasher.setChildLock": [{
|
|
76721
|
+
name: "deviceId",
|
|
76722
|
+
form: "single",
|
|
76723
|
+
optional: false
|
|
76724
|
+
}],
|
|
76725
|
+
"dishwasher.setExtraDry": [{
|
|
76726
|
+
name: "deviceId",
|
|
76727
|
+
form: "single",
|
|
76728
|
+
optional: false
|
|
76729
|
+
}],
|
|
76473
76730
|
"dishwasher.setHalfLoad": [{
|
|
76474
76731
|
name: "deviceId",
|
|
76475
76732
|
form: "single",
|
|
@@ -76480,6 +76737,11 @@ Object.freeze({
|
|
|
76480
76737
|
form: "single",
|
|
76481
76738
|
optional: false
|
|
76482
76739
|
}],
|
|
76740
|
+
"dishwasher.setIntensiveZone": [{
|
|
76741
|
+
name: "deviceId",
|
|
76742
|
+
form: "single",
|
|
76743
|
+
optional: false
|
|
76744
|
+
}],
|
|
76483
76745
|
"dishwasher.setOption": [{
|
|
76484
76746
|
name: "deviceId",
|
|
76485
76747
|
form: "single",
|
|
@@ -76495,6 +76757,11 @@ Object.freeze({
|
|
|
76495
76757
|
form: "single",
|
|
76496
76758
|
optional: false
|
|
76497
76759
|
}],
|
|
76760
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
76761
|
+
name: "deviceId",
|
|
76762
|
+
form: "single",
|
|
76763
|
+
optional: false
|
|
76764
|
+
}],
|
|
76498
76765
|
"dishwasher.start": [{
|
|
76499
76766
|
name: "deviceId",
|
|
76500
76767
|
form: "single",
|
|
@@ -78536,6 +78803,9 @@ new Map(Object.entries({
|
|
|
78536
78803
|
"wrapper-update-available": "system",
|
|
78537
78804
|
"backup-completed": "system",
|
|
78538
78805
|
"export-completed": "system",
|
|
78806
|
+
"alert-critical": "system",
|
|
78807
|
+
"alert-error": "system",
|
|
78808
|
+
"alert-critical-resolved": "system",
|
|
78539
78809
|
"storage-location-low": "system",
|
|
78540
78810
|
"storage-location-critical": "system",
|
|
78541
78811
|
"storage-location-ok": "system",
|
|
@@ -78660,6 +78930,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
78660
78930
|
"storage-location-ok"
|
|
78661
78931
|
]
|
|
78662
78932
|
},
|
|
78933
|
+
{
|
|
78934
|
+
id: "alerts",
|
|
78935
|
+
family: "system",
|
|
78936
|
+
label: "Alerts",
|
|
78937
|
+
kinds: [
|
|
78938
|
+
"alert-critical",
|
|
78939
|
+
"alert-error",
|
|
78940
|
+
"alert-critical-resolved"
|
|
78941
|
+
]
|
|
78942
|
+
},
|
|
78663
78943
|
{
|
|
78664
78944
|
id: "alarm",
|
|
78665
78945
|
family: "alarm",
|
|
@@ -78704,6 +78984,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
78704
78984
|
return [[descriptor.kind, field]];
|
|
78705
78985
|
})));
|
|
78706
78986
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
78987
|
+
object({
|
|
78988
|
+
phase: _enum(["raised", "resolved"]),
|
|
78989
|
+
episodeId: string().min(1),
|
|
78990
|
+
alertId: string().min(1),
|
|
78991
|
+
severity: AlertSeveritySchema,
|
|
78992
|
+
category: string(),
|
|
78993
|
+
title: string(),
|
|
78994
|
+
message: string(),
|
|
78995
|
+
sourceType: string().optional(),
|
|
78996
|
+
sourceId: string().optional(),
|
|
78997
|
+
nodeId: string().optional(),
|
|
78998
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
78999
|
+
actionUrl: string().optional(),
|
|
79000
|
+
at: number()
|
|
79001
|
+
});
|
|
78707
79002
|
var RULE_BODY_ONLY = ["body"];
|
|
78708
79003
|
var RULE_TEXT = ["title", "body"];
|
|
78709
79004
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -78713,6 +79008,11 @@ var TANK = [
|
|
|
78713
79008
|
"device-tank-full",
|
|
78714
79009
|
"device-tank-normal"
|
|
78715
79010
|
];
|
|
79011
|
+
var ALERT_EPISODE = [
|
|
79012
|
+
"alert-critical",
|
|
79013
|
+
"alert-error",
|
|
79014
|
+
"alert-critical-resolved"
|
|
79015
|
+
];
|
|
78716
79016
|
var UPDATES = [
|
|
78717
79017
|
"addon-update-available",
|
|
78718
79018
|
"server-update-available",
|
|
@@ -78905,14 +79205,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
78905
79205
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
78906
79206
|
([...RULE_TEXT], [...TANK]),
|
|
78907
79207
|
[...RULE_TEXT],
|
|
78908
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
78909
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
78910
|
-
[...RULE_TEXT],
|
|
79208
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79209
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
78911
79210
|
[...RULE_TEXT],
|
|
78912
79211
|
[...RULE_TEXT],
|
|
78913
79212
|
[...RULE_TEXT],
|
|
78914
79213
|
[...RULE_TEXT],
|
|
78915
79214
|
[...RULE_TEXT],
|
|
79215
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
78916
79216
|
[...RULE_TEXT],
|
|
78917
79217
|
[...RULE_TEXT],
|
|
78918
79218
|
[...RULE_TEXT],
|
|
@@ -78930,7 +79230,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
78930
79230
|
[...RULE_TEXT],
|
|
78931
79231
|
[...RULE_TEXT],
|
|
78932
79232
|
[...RULE_TEXT],
|
|
78933
|
-
[...RULE_TEXT],
|
|
79233
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79234
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79235
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79236
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79237
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
78934
79238
|
[...RULE_TEXT],
|
|
78935
79239
|
[...RULE_TEXT],
|
|
78936
79240
|
[...RULE_TEXT],
|
package/package.json
CHANGED