@camstack/addon-provider-amcrest 0.2.138 → 0.2.140
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 +340 -36
- package/dist/addon.mjs +340 -36
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -35,7 +35,7 @@ let node_stream_promises = require("node:stream/promises");
|
|
|
35
35
|
let node_child_process = require("node:child_process");
|
|
36
36
|
require("node:zlib");
|
|
37
37
|
let node_os = require("node:os");
|
|
38
|
-
//#region ../types/dist/event-category-
|
|
38
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
39
39
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
40
40
|
EventCategory["SystemBoot"] = "system.boot";
|
|
41
41
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -114,9 +114,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
114
114
|
/**
|
|
115
115
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
116
116
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
117
|
-
* alert centre turns it into one
|
|
117
|
+
* alert centre turns it into one critical alert.
|
|
118
118
|
*/
|
|
119
119
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
120
|
+
/**
|
|
121
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
122
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
123
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
124
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
125
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
126
|
+
* event may be dropped (D8, D11).
|
|
127
|
+
*/
|
|
128
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
120
129
|
EventCategory["AddonError"] = "addon.error";
|
|
121
130
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
122
131
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5441,7 +5450,7 @@ var ZodIssueCode = {
|
|
|
5441
5450
|
var ZodFirstPartyTypeKind;
|
|
5442
5451
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5443
5452
|
//#endregion
|
|
5444
|
-
//#region ../types/dist/sleep-
|
|
5453
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5445
5454
|
/**
|
|
5446
5455
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5447
5456
|
* window to float samples (D455).
|
|
@@ -13228,7 +13237,14 @@ var AlertSeveritySchema = _enum([
|
|
|
13228
13237
|
]);
|
|
13229
13238
|
var AlertActionSchema = object({
|
|
13230
13239
|
label: string(),
|
|
13231
|
-
href: string().optional()
|
|
13240
|
+
href: string().optional(),
|
|
13241
|
+
/**
|
|
13242
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
13243
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
13244
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
13245
|
+
* the SPA has no such route and would bounce to the home page.
|
|
13246
|
+
*/
|
|
13247
|
+
navigation: _enum(["app", "server"]).optional()
|
|
13232
13248
|
});
|
|
13233
13249
|
var AlertStatusSchema = _enum([
|
|
13234
13250
|
"active",
|
|
@@ -17722,7 +17738,11 @@ var deviceDiscoveryCapability = {
|
|
|
17722
17738
|
};
|
|
17723
17739
|
/**
|
|
17724
17740
|
* `device-adoption` — generic discovery + adoption surface,
|
|
17725
|
-
* system-scoped
|
|
17741
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
17742
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
17743
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
17744
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
17745
|
+
* successor to `ha-discovery`:
|
|
17726
17746
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
17727
17747
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
17728
17748
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -42053,6 +42073,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42053
42073
|
"server-updated",
|
|
42054
42074
|
"export-completed",
|
|
42055
42075
|
"backup-completed",
|
|
42076
|
+
"alert-critical",
|
|
42077
|
+
"alert-error",
|
|
42078
|
+
"alert-critical-resolved",
|
|
42056
42079
|
"camera-online",
|
|
42057
42080
|
"camera-offline",
|
|
42058
42081
|
"camera-disabled",
|
|
@@ -51233,7 +51256,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
51233
51256
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
51234
51257
|
kind: "mutation",
|
|
51235
51258
|
auth: "admin"
|
|
51236
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
51259
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
51260
|
+
clear: boolean(),
|
|
51261
|
+
repointLocationId: string().optional()
|
|
51262
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
51237
51263
|
kind: "mutation",
|
|
51238
51264
|
auth: "admin"
|
|
51239
51265
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -55898,6 +55924,11 @@ onStatusChanged: { data: object({
|
|
|
55898
55924
|
*
|
|
55899
55925
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
55900
55926
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
55927
|
+
*
|
|
55928
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
55929
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
55930
|
+
* the link is down, or the description does not carry it) and is never
|
|
55931
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
55901
55932
|
*/
|
|
55902
55933
|
var DishwasherStateSchema = _enum([
|
|
55903
55934
|
"idle",
|
|
@@ -55907,35 +55938,155 @@ var DishwasherStateSchema = _enum([
|
|
|
55907
55938
|
"error",
|
|
55908
55939
|
"unavailable"
|
|
55909
55940
|
]);
|
|
55941
|
+
/**
|
|
55942
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
55943
|
+
* view for compact surfaces; this is what the appliance said.
|
|
55944
|
+
*/
|
|
55945
|
+
var DishwasherOperationStateSchema = _enum([
|
|
55946
|
+
"Inactive",
|
|
55947
|
+
"Ready",
|
|
55948
|
+
"DelayedStart",
|
|
55949
|
+
"Run",
|
|
55950
|
+
"Pause",
|
|
55951
|
+
"ActionRequired",
|
|
55952
|
+
"Finished",
|
|
55953
|
+
"Error",
|
|
55954
|
+
"Aborting"
|
|
55955
|
+
]);
|
|
55956
|
+
/**
|
|
55957
|
+
* Why fields may be `null`:
|
|
55958
|
+
* - `available` — the link is up and the description is loaded;
|
|
55959
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
55960
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
55961
|
+
* be loaded, so its values cannot be decoded.
|
|
55962
|
+
*/
|
|
55963
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
55964
|
+
"available",
|
|
55965
|
+
"offline",
|
|
55966
|
+
"description-missing"
|
|
55967
|
+
]);
|
|
55910
55968
|
var DishwasherConsumableLevelSchema = _enum([
|
|
55911
55969
|
"ok",
|
|
55912
55970
|
"low",
|
|
55913
55971
|
"empty"
|
|
55914
55972
|
]);
|
|
55915
55973
|
var DishwasherStatusSchema = object({
|
|
55974
|
+
availability: DishwasherAvailabilitySchema,
|
|
55975
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
55916
55976
|
state: DishwasherStateSchema,
|
|
55917
|
-
/**
|
|
55977
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
55978
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
55979
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
55918
55980
|
program: string().nullable(),
|
|
55919
|
-
/**
|
|
55981
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
55982
|
+
selectedProgram: string().nullable(),
|
|
55983
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
55920
55984
|
availablePrograms: array(string()),
|
|
55921
|
-
/**
|
|
55922
|
-
|
|
55985
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
55986
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
55987
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
55988
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
55923
55989
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
55924
55990
|
progressPercent: number().min(0).max(100).nullable(),
|
|
55925
|
-
/** True when the door is reported open. */
|
|
55926
|
-
doorOpen: boolean(),
|
|
55927
|
-
/** True when
|
|
55928
|
-
|
|
55929
|
-
/**
|
|
55930
|
-
|
|
55991
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
55992
|
+
doorOpen: boolean().nullable(),
|
|
55993
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
55994
|
+
doorLocked: boolean().nullable(),
|
|
55995
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
55996
|
+
remoteStartAllowed: boolean().nullable(),
|
|
55997
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
55998
|
+
remoteControlActive: boolean().nullable(),
|
|
55999
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
56000
|
+
localControlActive: boolean().nullable(),
|
|
56001
|
+
/** Main power / switched-on state; null when not known. */
|
|
56002
|
+
powerOn: boolean().nullable(),
|
|
56003
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56004
|
+
powerState: string().nullable(),
|
|
55931
56005
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55932
56006
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55933
|
-
|
|
55934
|
-
|
|
56007
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
56008
|
+
halfLoad: boolean().nullable(),
|
|
56009
|
+
hygienePlus: boolean().nullable(),
|
|
56010
|
+
/** Extra dry option when the appliance exposes it. */
|
|
56011
|
+
extraDry: boolean().nullable(),
|
|
56012
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
56013
|
+
intensiveZone: boolean().nullable(),
|
|
56014
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
56015
|
+
varioSpeedPlus: boolean().nullable(),
|
|
56016
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
56017
|
+
childLock: boolean().nullable(),
|
|
56018
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
56019
|
+
activeEvents: array(string()),
|
|
56020
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
55935
56021
|
errorCode: number().nullable(),
|
|
56022
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
55936
56023
|
errorLabel: string().nullable(),
|
|
56024
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
55937
56025
|
lastFetchedAt: number()
|
|
55938
56026
|
});
|
|
56027
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
56028
|
+
/** A value a program option or setting can take. */
|
|
56029
|
+
var DishwasherValueSchema = union([
|
|
56030
|
+
boolean(),
|
|
56031
|
+
string(),
|
|
56032
|
+
number()
|
|
56033
|
+
]);
|
|
56034
|
+
var DishwasherAccessSchema = _enum([
|
|
56035
|
+
"none",
|
|
56036
|
+
"read",
|
|
56037
|
+
"readWrite",
|
|
56038
|
+
"writeOnly",
|
|
56039
|
+
"readStatic"
|
|
56040
|
+
]);
|
|
56041
|
+
/**
|
|
56042
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
56043
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
56044
|
+
*/
|
|
56045
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
56046
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
56047
|
+
key: string(),
|
|
56048
|
+
/** Last segment of the key, for display. */
|
|
56049
|
+
name: string(),
|
|
56050
|
+
type: _enum([
|
|
56051
|
+
"boolean",
|
|
56052
|
+
"number",
|
|
56053
|
+
"enum",
|
|
56054
|
+
"string"
|
|
56055
|
+
]),
|
|
56056
|
+
access: DishwasherAccessSchema,
|
|
56057
|
+
/** The appliance reports this entity as currently available. */
|
|
56058
|
+
available: boolean(),
|
|
56059
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
56060
|
+
unit: string().nullable(),
|
|
56061
|
+
min: number().nullable(),
|
|
56062
|
+
max: number().nullable(),
|
|
56063
|
+
step: number().nullable(),
|
|
56064
|
+
/** Allowed members of an enum; null for other types. */
|
|
56065
|
+
enumValues: array(string()).nullable(),
|
|
56066
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
56067
|
+
});
|
|
56068
|
+
var DishwasherProgramSchema = object({
|
|
56069
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
56070
|
+
key: string(),
|
|
56071
|
+
name: string(),
|
|
56072
|
+
/** The appliance currently offers this program. */
|
|
56073
|
+
available: boolean(),
|
|
56074
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
56075
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56076
|
+
});
|
|
56077
|
+
var DishwasherOptionsSchema = object({
|
|
56078
|
+
availability: DishwasherAvailabilitySchema,
|
|
56079
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
56080
|
+
supportsStart: boolean(),
|
|
56081
|
+
supportsPause: boolean(),
|
|
56082
|
+
supportsResume: boolean(),
|
|
56083
|
+
supportsStop: boolean(),
|
|
56084
|
+
supportsPower: boolean(),
|
|
56085
|
+
/** Every program the description lists, with its options. */
|
|
56086
|
+
programs: array(DishwasherProgramSchema),
|
|
56087
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
56088
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56089
|
+
});
|
|
55939
56090
|
var dishwasherCapability = {
|
|
55940
56091
|
name: "dishwasher",
|
|
55941
56092
|
scope: "device",
|
|
@@ -55943,58 +56094,102 @@ var dishwasherCapability = {
|
|
|
55943
56094
|
mode: "singleton",
|
|
55944
56095
|
deviceTypes: [DeviceType.Dishwasher],
|
|
55945
56096
|
methods: {
|
|
55946
|
-
|
|
56097
|
+
/**
|
|
56098
|
+
* Start a program. Without `program` the selected one starts. `options` are
|
|
56099
|
+
* option feature keys; each is checked against the program's constraints.
|
|
56100
|
+
*/
|
|
56101
|
+
start: method(object({
|
|
56102
|
+
deviceId: DeviceIdSchema,
|
|
56103
|
+
program: string().min(1).optional(),
|
|
56104
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
56105
|
+
}), _void(), {
|
|
55947
56106
|
kind: "mutation",
|
|
55948
56107
|
auth: "protected"
|
|
55949
56108
|
}),
|
|
55950
|
-
pause: method(object({ deviceId:
|
|
56109
|
+
pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55951
56110
|
kind: "mutation",
|
|
55952
56111
|
auth: "protected"
|
|
55953
56112
|
}),
|
|
55954
|
-
|
|
56113
|
+
resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55955
56114
|
kind: "mutation",
|
|
55956
56115
|
auth: "protected"
|
|
55957
56116
|
}),
|
|
56117
|
+
stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56118
|
+
kind: "mutation",
|
|
56119
|
+
auth: "protected"
|
|
56120
|
+
}),
|
|
56121
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
55958
56122
|
setProgram: method(object({
|
|
55959
|
-
deviceId:
|
|
56123
|
+
deviceId: DeviceIdSchema,
|
|
55960
56124
|
program: string().min(1)
|
|
55961
56125
|
}), _void(), {
|
|
55962
56126
|
kind: "mutation",
|
|
55963
56127
|
auth: "protected"
|
|
55964
56128
|
}),
|
|
55965
56129
|
setPower: method(object({
|
|
55966
|
-
deviceId:
|
|
56130
|
+
deviceId: DeviceIdSchema,
|
|
55967
56131
|
on: boolean()
|
|
55968
56132
|
}), _void(), {
|
|
55969
56133
|
kind: "mutation",
|
|
55970
56134
|
auth: "protected"
|
|
55971
56135
|
}),
|
|
55972
56136
|
setHalfLoad: method(object({
|
|
55973
|
-
deviceId:
|
|
56137
|
+
deviceId: DeviceIdSchema,
|
|
55974
56138
|
on: boolean()
|
|
55975
56139
|
}), _void(), {
|
|
55976
56140
|
kind: "mutation",
|
|
55977
56141
|
auth: "protected"
|
|
55978
56142
|
}),
|
|
55979
56143
|
setHygienePlus: method(object({
|
|
55980
|
-
deviceId:
|
|
56144
|
+
deviceId: DeviceIdSchema,
|
|
56145
|
+
on: boolean()
|
|
56146
|
+
}), _void(), {
|
|
56147
|
+
kind: "mutation",
|
|
56148
|
+
auth: "protected"
|
|
56149
|
+
}),
|
|
56150
|
+
setExtraDry: method(object({
|
|
56151
|
+
deviceId: DeviceIdSchema,
|
|
56152
|
+
on: boolean()
|
|
56153
|
+
}), _void(), {
|
|
56154
|
+
kind: "mutation",
|
|
56155
|
+
auth: "protected"
|
|
56156
|
+
}),
|
|
56157
|
+
setIntensiveZone: method(object({
|
|
56158
|
+
deviceId: DeviceIdSchema,
|
|
56159
|
+
on: boolean()
|
|
56160
|
+
}), _void(), {
|
|
56161
|
+
kind: "mutation",
|
|
56162
|
+
auth: "protected"
|
|
56163
|
+
}),
|
|
56164
|
+
setVarioSpeedPlus: method(object({
|
|
56165
|
+
deviceId: DeviceIdSchema,
|
|
56166
|
+
on: boolean()
|
|
56167
|
+
}), _void(), {
|
|
56168
|
+
kind: "mutation",
|
|
56169
|
+
auth: "protected"
|
|
56170
|
+
}),
|
|
56171
|
+
setChildLock: method(object({
|
|
56172
|
+
deviceId: DeviceIdSchema,
|
|
55981
56173
|
on: boolean()
|
|
55982
56174
|
}), _void(), {
|
|
55983
56175
|
kind: "mutation",
|
|
55984
56176
|
auth: "protected"
|
|
55985
56177
|
}),
|
|
56178
|
+
/**
|
|
56179
|
+
* Write any option or setting by feature key. Refused when the description does
|
|
56180
|
+
* not list it, it is not writable or not available now, or the value is outside
|
|
56181
|
+
* its declared range / members.
|
|
56182
|
+
*/
|
|
55986
56183
|
setOption: method(object({
|
|
55987
|
-
deviceId:
|
|
56184
|
+
deviceId: DeviceIdSchema,
|
|
55988
56185
|
key: string().min(1),
|
|
55989
|
-
value:
|
|
55990
|
-
boolean(),
|
|
55991
|
-
string(),
|
|
55992
|
-
number()
|
|
55993
|
-
])
|
|
56186
|
+
value: DishwasherValueSchema
|
|
55994
56187
|
}), _void(), {
|
|
55995
56188
|
kind: "mutation",
|
|
55996
56189
|
auth: "protected"
|
|
55997
|
-
})
|
|
56190
|
+
}),
|
|
56191
|
+
/** What this appliance can do, from its own description — the UI is derived from it. */
|
|
56192
|
+
getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
|
|
55998
56193
|
},
|
|
55999
56194
|
status: {
|
|
56000
56195
|
schema: DishwasherStatusSchema,
|
|
@@ -70409,6 +70604,12 @@ Object.freeze({
|
|
|
70409
70604
|
addonId: null,
|
|
70410
70605
|
access: "view"
|
|
70411
70606
|
},
|
|
70607
|
+
"dishwasher.getOptions": {
|
|
70608
|
+
capName: "dishwasher",
|
|
70609
|
+
capScope: "device",
|
|
70610
|
+
addonId: null,
|
|
70611
|
+
access: "view"
|
|
70612
|
+
},
|
|
70412
70613
|
"dishwasher.getStatus": {
|
|
70413
70614
|
capName: "dishwasher",
|
|
70414
70615
|
capScope: "device",
|
|
@@ -70421,6 +70622,24 @@ Object.freeze({
|
|
|
70421
70622
|
addonId: null,
|
|
70422
70623
|
access: "create"
|
|
70423
70624
|
},
|
|
70625
|
+
"dishwasher.resume": {
|
|
70626
|
+
capName: "dishwasher",
|
|
70627
|
+
capScope: "device",
|
|
70628
|
+
addonId: null,
|
|
70629
|
+
access: "create"
|
|
70630
|
+
},
|
|
70631
|
+
"dishwasher.setChildLock": {
|
|
70632
|
+
capName: "dishwasher",
|
|
70633
|
+
capScope: "device",
|
|
70634
|
+
addonId: null,
|
|
70635
|
+
access: "create"
|
|
70636
|
+
},
|
|
70637
|
+
"dishwasher.setExtraDry": {
|
|
70638
|
+
capName: "dishwasher",
|
|
70639
|
+
capScope: "device",
|
|
70640
|
+
addonId: null,
|
|
70641
|
+
access: "create"
|
|
70642
|
+
},
|
|
70424
70643
|
"dishwasher.setHalfLoad": {
|
|
70425
70644
|
capName: "dishwasher",
|
|
70426
70645
|
capScope: "device",
|
|
@@ -70433,6 +70652,12 @@ Object.freeze({
|
|
|
70433
70652
|
addonId: null,
|
|
70434
70653
|
access: "create"
|
|
70435
70654
|
},
|
|
70655
|
+
"dishwasher.setIntensiveZone": {
|
|
70656
|
+
capName: "dishwasher",
|
|
70657
|
+
capScope: "device",
|
|
70658
|
+
addonId: null,
|
|
70659
|
+
access: "create"
|
|
70660
|
+
},
|
|
70436
70661
|
"dishwasher.setOption": {
|
|
70437
70662
|
capName: "dishwasher",
|
|
70438
70663
|
capScope: "device",
|
|
@@ -70451,6 +70676,12 @@ Object.freeze({
|
|
|
70451
70676
|
addonId: null,
|
|
70452
70677
|
access: "create"
|
|
70453
70678
|
},
|
|
70679
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
70680
|
+
capName: "dishwasher",
|
|
70681
|
+
capScope: "device",
|
|
70682
|
+
addonId: null,
|
|
70683
|
+
access: "create"
|
|
70684
|
+
},
|
|
70454
70685
|
"dishwasher.start": {
|
|
70455
70686
|
capName: "dishwasher",
|
|
70456
70687
|
capScope: "device",
|
|
@@ -74897,6 +75128,12 @@ Object.freeze({
|
|
|
74897
75128
|
addonId: null,
|
|
74898
75129
|
access: "view"
|
|
74899
75130
|
},
|
|
75131
|
+
"storageMigration.moverClearance": {
|
|
75132
|
+
capName: "storage-migration",
|
|
75133
|
+
capScope: "system",
|
|
75134
|
+
addonId: null,
|
|
75135
|
+
access: "view"
|
|
75136
|
+
},
|
|
74900
75137
|
"storageMigration.movers": {
|
|
74901
75138
|
capName: "storage-migration",
|
|
74902
75139
|
capScope: "system",
|
|
@@ -77296,6 +77533,11 @@ Object.freeze({
|
|
|
77296
77533
|
form: "single",
|
|
77297
77534
|
optional: false
|
|
77298
77535
|
}],
|
|
77536
|
+
"dishwasher.getOptions": [{
|
|
77537
|
+
name: "deviceId",
|
|
77538
|
+
form: "single",
|
|
77539
|
+
optional: false
|
|
77540
|
+
}],
|
|
77299
77541
|
"dishwasher.getStatus": [{
|
|
77300
77542
|
name: "deviceId",
|
|
77301
77543
|
form: "single",
|
|
@@ -77306,6 +77548,21 @@ Object.freeze({
|
|
|
77306
77548
|
form: "single",
|
|
77307
77549
|
optional: false
|
|
77308
77550
|
}],
|
|
77551
|
+
"dishwasher.resume": [{
|
|
77552
|
+
name: "deviceId",
|
|
77553
|
+
form: "single",
|
|
77554
|
+
optional: false
|
|
77555
|
+
}],
|
|
77556
|
+
"dishwasher.setChildLock": [{
|
|
77557
|
+
name: "deviceId",
|
|
77558
|
+
form: "single",
|
|
77559
|
+
optional: false
|
|
77560
|
+
}],
|
|
77561
|
+
"dishwasher.setExtraDry": [{
|
|
77562
|
+
name: "deviceId",
|
|
77563
|
+
form: "single",
|
|
77564
|
+
optional: false
|
|
77565
|
+
}],
|
|
77309
77566
|
"dishwasher.setHalfLoad": [{
|
|
77310
77567
|
name: "deviceId",
|
|
77311
77568
|
form: "single",
|
|
@@ -77316,6 +77573,11 @@ Object.freeze({
|
|
|
77316
77573
|
form: "single",
|
|
77317
77574
|
optional: false
|
|
77318
77575
|
}],
|
|
77576
|
+
"dishwasher.setIntensiveZone": [{
|
|
77577
|
+
name: "deviceId",
|
|
77578
|
+
form: "single",
|
|
77579
|
+
optional: false
|
|
77580
|
+
}],
|
|
77319
77581
|
"dishwasher.setOption": [{
|
|
77320
77582
|
name: "deviceId",
|
|
77321
77583
|
form: "single",
|
|
@@ -77331,6 +77593,11 @@ Object.freeze({
|
|
|
77331
77593
|
form: "single",
|
|
77332
77594
|
optional: false
|
|
77333
77595
|
}],
|
|
77596
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
77597
|
+
name: "deviceId",
|
|
77598
|
+
form: "single",
|
|
77599
|
+
optional: false
|
|
77600
|
+
}],
|
|
77334
77601
|
"dishwasher.start": [{
|
|
77335
77602
|
name: "deviceId",
|
|
77336
77603
|
form: "single",
|
|
@@ -79372,6 +79639,9 @@ new Map(Object.entries({
|
|
|
79372
79639
|
"wrapper-update-available": "system",
|
|
79373
79640
|
"backup-completed": "system",
|
|
79374
79641
|
"export-completed": "system",
|
|
79642
|
+
"alert-critical": "system",
|
|
79643
|
+
"alert-error": "system",
|
|
79644
|
+
"alert-critical-resolved": "system",
|
|
79375
79645
|
"storage-location-low": "system",
|
|
79376
79646
|
"storage-location-critical": "system",
|
|
79377
79647
|
"storage-location-ok": "system",
|
|
@@ -79496,6 +79766,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
79496
79766
|
"storage-location-ok"
|
|
79497
79767
|
]
|
|
79498
79768
|
},
|
|
79769
|
+
{
|
|
79770
|
+
id: "alerts",
|
|
79771
|
+
family: "system",
|
|
79772
|
+
label: "Alerts",
|
|
79773
|
+
kinds: [
|
|
79774
|
+
"alert-critical",
|
|
79775
|
+
"alert-error",
|
|
79776
|
+
"alert-critical-resolved"
|
|
79777
|
+
]
|
|
79778
|
+
},
|
|
79499
79779
|
{
|
|
79500
79780
|
id: "alarm",
|
|
79501
79781
|
family: "alarm",
|
|
@@ -79540,6 +79820,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
79540
79820
|
return [[descriptor.kind, field]];
|
|
79541
79821
|
})));
|
|
79542
79822
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
79823
|
+
object({
|
|
79824
|
+
phase: _enum(["raised", "resolved"]),
|
|
79825
|
+
episodeId: string().min(1),
|
|
79826
|
+
alertId: string().min(1),
|
|
79827
|
+
severity: AlertSeveritySchema,
|
|
79828
|
+
category: string(),
|
|
79829
|
+
title: string(),
|
|
79830
|
+
message: string(),
|
|
79831
|
+
sourceType: string().optional(),
|
|
79832
|
+
sourceId: string().optional(),
|
|
79833
|
+
nodeId: string().optional(),
|
|
79834
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
79835
|
+
actionUrl: string().optional(),
|
|
79836
|
+
at: number()
|
|
79837
|
+
});
|
|
79543
79838
|
var RULE_BODY_ONLY = ["body"];
|
|
79544
79839
|
var RULE_TEXT = ["title", "body"];
|
|
79545
79840
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -79549,6 +79844,11 @@ var TANK = [
|
|
|
79549
79844
|
"device-tank-full",
|
|
79550
79845
|
"device-tank-normal"
|
|
79551
79846
|
];
|
|
79847
|
+
var ALERT_EPISODE = [
|
|
79848
|
+
"alert-critical",
|
|
79849
|
+
"alert-error",
|
|
79850
|
+
"alert-critical-resolved"
|
|
79851
|
+
];
|
|
79552
79852
|
var UPDATES = [
|
|
79553
79853
|
"addon-update-available",
|
|
79554
79854
|
"server-update-available",
|
|
@@ -79741,14 +80041,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
79741
80041
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
79742
80042
|
([...RULE_TEXT], [...TANK]),
|
|
79743
80043
|
[...RULE_TEXT],
|
|
79744
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79745
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79746
|
-
[...RULE_TEXT],
|
|
80044
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
80045
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79747
80046
|
[...RULE_TEXT],
|
|
79748
80047
|
[...RULE_TEXT],
|
|
79749
80048
|
[...RULE_TEXT],
|
|
79750
80049
|
[...RULE_TEXT],
|
|
79751
80050
|
[...RULE_TEXT],
|
|
80051
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79752
80052
|
[...RULE_TEXT],
|
|
79753
80053
|
[...RULE_TEXT],
|
|
79754
80054
|
[...RULE_TEXT],
|
|
@@ -79766,7 +80066,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
79766
80066
|
[...RULE_TEXT],
|
|
79767
80067
|
[...RULE_TEXT],
|
|
79768
80068
|
[...RULE_TEXT],
|
|
79769
|
-
[...RULE_TEXT],
|
|
80069
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80070
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80071
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80072
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80073
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79770
80074
|
[...RULE_TEXT],
|
|
79771
80075
|
[...RULE_TEXT],
|
|
79772
80076
|
[...RULE_TEXT],
|
package/dist/addon.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { networkInterfaces } from "node:os";
|
|
|
14
14
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
15
15
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region ../types/dist/event-category-
|
|
17
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
18
18
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
19
19
|
EventCategory["SystemBoot"] = "system.boot";
|
|
20
20
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -93,9 +93,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
93
93
|
/**
|
|
94
94
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
95
95
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
96
|
-
* alert centre turns it into one
|
|
96
|
+
* alert centre turns it into one critical alert.
|
|
97
97
|
*/
|
|
98
98
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
99
|
+
/**
|
|
100
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
101
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
102
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
103
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
104
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
105
|
+
* event may be dropped (D8, D11).
|
|
106
|
+
*/
|
|
107
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
99
108
|
EventCategory["AddonError"] = "addon.error";
|
|
100
109
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
101
110
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5420,7 +5429,7 @@ var ZodIssueCode = {
|
|
|
5420
5429
|
var ZodFirstPartyTypeKind;
|
|
5421
5430
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5422
5431
|
//#endregion
|
|
5423
|
-
//#region ../types/dist/sleep-
|
|
5432
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5424
5433
|
/**
|
|
5425
5434
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5426
5435
|
* window to float samples (D455).
|
|
@@ -13207,7 +13216,14 @@ var AlertSeveritySchema = _enum([
|
|
|
13207
13216
|
]);
|
|
13208
13217
|
var AlertActionSchema = object({
|
|
13209
13218
|
label: string(),
|
|
13210
|
-
href: string().optional()
|
|
13219
|
+
href: string().optional(),
|
|
13220
|
+
/**
|
|
13221
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
13222
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
13223
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
13224
|
+
* the SPA has no such route and would bounce to the home page.
|
|
13225
|
+
*/
|
|
13226
|
+
navigation: _enum(["app", "server"]).optional()
|
|
13211
13227
|
});
|
|
13212
13228
|
var AlertStatusSchema = _enum([
|
|
13213
13229
|
"active",
|
|
@@ -17701,7 +17717,11 @@ var deviceDiscoveryCapability = {
|
|
|
17701
17717
|
};
|
|
17702
17718
|
/**
|
|
17703
17719
|
* `device-adoption` — generic discovery + adoption surface,
|
|
17704
|
-
* system-scoped
|
|
17720
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
17721
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
17722
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
17723
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
17724
|
+
* successor to `ha-discovery`:
|
|
17705
17725
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
17706
17726
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
17707
17727
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -42032,6 +42052,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42032
42052
|
"server-updated",
|
|
42033
42053
|
"export-completed",
|
|
42034
42054
|
"backup-completed",
|
|
42055
|
+
"alert-critical",
|
|
42056
|
+
"alert-error",
|
|
42057
|
+
"alert-critical-resolved",
|
|
42035
42058
|
"camera-online",
|
|
42036
42059
|
"camera-offline",
|
|
42037
42060
|
"camera-disabled",
|
|
@@ -51212,7 +51235,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
51212
51235
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
51213
51236
|
kind: "mutation",
|
|
51214
51237
|
auth: "admin"
|
|
51215
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
51238
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
51239
|
+
clear: boolean(),
|
|
51240
|
+
repointLocationId: string().optional()
|
|
51241
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
51216
51242
|
kind: "mutation",
|
|
51217
51243
|
auth: "admin"
|
|
51218
51244
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -55877,6 +55903,11 @@ onStatusChanged: { data: object({
|
|
|
55877
55903
|
*
|
|
55878
55904
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
55879
55905
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
55906
|
+
*
|
|
55907
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
55908
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
55909
|
+
* the link is down, or the description does not carry it) and is never
|
|
55910
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
55880
55911
|
*/
|
|
55881
55912
|
var DishwasherStateSchema = _enum([
|
|
55882
55913
|
"idle",
|
|
@@ -55886,35 +55917,155 @@ var DishwasherStateSchema = _enum([
|
|
|
55886
55917
|
"error",
|
|
55887
55918
|
"unavailable"
|
|
55888
55919
|
]);
|
|
55920
|
+
/**
|
|
55921
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
55922
|
+
* view for compact surfaces; this is what the appliance said.
|
|
55923
|
+
*/
|
|
55924
|
+
var DishwasherOperationStateSchema = _enum([
|
|
55925
|
+
"Inactive",
|
|
55926
|
+
"Ready",
|
|
55927
|
+
"DelayedStart",
|
|
55928
|
+
"Run",
|
|
55929
|
+
"Pause",
|
|
55930
|
+
"ActionRequired",
|
|
55931
|
+
"Finished",
|
|
55932
|
+
"Error",
|
|
55933
|
+
"Aborting"
|
|
55934
|
+
]);
|
|
55935
|
+
/**
|
|
55936
|
+
* Why fields may be `null`:
|
|
55937
|
+
* - `available` — the link is up and the description is loaded;
|
|
55938
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
55939
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
55940
|
+
* be loaded, so its values cannot be decoded.
|
|
55941
|
+
*/
|
|
55942
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
55943
|
+
"available",
|
|
55944
|
+
"offline",
|
|
55945
|
+
"description-missing"
|
|
55946
|
+
]);
|
|
55889
55947
|
var DishwasherConsumableLevelSchema = _enum([
|
|
55890
55948
|
"ok",
|
|
55891
55949
|
"low",
|
|
55892
55950
|
"empty"
|
|
55893
55951
|
]);
|
|
55894
55952
|
var DishwasherStatusSchema = object({
|
|
55953
|
+
availability: DishwasherAvailabilitySchema,
|
|
55954
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
55895
55955
|
state: DishwasherStateSchema,
|
|
55896
|
-
/**
|
|
55956
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
55957
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
55958
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
55897
55959
|
program: string().nullable(),
|
|
55898
|
-
/**
|
|
55960
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
55961
|
+
selectedProgram: string().nullable(),
|
|
55962
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
55899
55963
|
availablePrograms: array(string()),
|
|
55900
|
-
/**
|
|
55901
|
-
|
|
55964
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
55965
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
55966
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
55967
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
55902
55968
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
55903
55969
|
progressPercent: number().min(0).max(100).nullable(),
|
|
55904
|
-
/** True when the door is reported open. */
|
|
55905
|
-
doorOpen: boolean(),
|
|
55906
|
-
/** True when
|
|
55907
|
-
|
|
55908
|
-
/**
|
|
55909
|
-
|
|
55970
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
55971
|
+
doorOpen: boolean().nullable(),
|
|
55972
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
55973
|
+
doorLocked: boolean().nullable(),
|
|
55974
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
55975
|
+
remoteStartAllowed: boolean().nullable(),
|
|
55976
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
55977
|
+
remoteControlActive: boolean().nullable(),
|
|
55978
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
55979
|
+
localControlActive: boolean().nullable(),
|
|
55980
|
+
/** Main power / switched-on state; null when not known. */
|
|
55981
|
+
powerOn: boolean().nullable(),
|
|
55982
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
55983
|
+
powerState: string().nullable(),
|
|
55910
55984
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55911
55985
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55912
|
-
|
|
55913
|
-
|
|
55986
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
55987
|
+
halfLoad: boolean().nullable(),
|
|
55988
|
+
hygienePlus: boolean().nullable(),
|
|
55989
|
+
/** Extra dry option when the appliance exposes it. */
|
|
55990
|
+
extraDry: boolean().nullable(),
|
|
55991
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
55992
|
+
intensiveZone: boolean().nullable(),
|
|
55993
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
55994
|
+
varioSpeedPlus: boolean().nullable(),
|
|
55995
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
55996
|
+
childLock: boolean().nullable(),
|
|
55997
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
55998
|
+
activeEvents: array(string()),
|
|
55999
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
55914
56000
|
errorCode: number().nullable(),
|
|
56001
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
55915
56002
|
errorLabel: string().nullable(),
|
|
56003
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
55916
56004
|
lastFetchedAt: number()
|
|
55917
56005
|
});
|
|
56006
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
56007
|
+
/** A value a program option or setting can take. */
|
|
56008
|
+
var DishwasherValueSchema = union([
|
|
56009
|
+
boolean(),
|
|
56010
|
+
string(),
|
|
56011
|
+
number()
|
|
56012
|
+
]);
|
|
56013
|
+
var DishwasherAccessSchema = _enum([
|
|
56014
|
+
"none",
|
|
56015
|
+
"read",
|
|
56016
|
+
"readWrite",
|
|
56017
|
+
"writeOnly",
|
|
56018
|
+
"readStatic"
|
|
56019
|
+
]);
|
|
56020
|
+
/**
|
|
56021
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
56022
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
56023
|
+
*/
|
|
56024
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
56025
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
56026
|
+
key: string(),
|
|
56027
|
+
/** Last segment of the key, for display. */
|
|
56028
|
+
name: string(),
|
|
56029
|
+
type: _enum([
|
|
56030
|
+
"boolean",
|
|
56031
|
+
"number",
|
|
56032
|
+
"enum",
|
|
56033
|
+
"string"
|
|
56034
|
+
]),
|
|
56035
|
+
access: DishwasherAccessSchema,
|
|
56036
|
+
/** The appliance reports this entity as currently available. */
|
|
56037
|
+
available: boolean(),
|
|
56038
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
56039
|
+
unit: string().nullable(),
|
|
56040
|
+
min: number().nullable(),
|
|
56041
|
+
max: number().nullable(),
|
|
56042
|
+
step: number().nullable(),
|
|
56043
|
+
/** Allowed members of an enum; null for other types. */
|
|
56044
|
+
enumValues: array(string()).nullable(),
|
|
56045
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
56046
|
+
});
|
|
56047
|
+
var DishwasherProgramSchema = object({
|
|
56048
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
56049
|
+
key: string(),
|
|
56050
|
+
name: string(),
|
|
56051
|
+
/** The appliance currently offers this program. */
|
|
56052
|
+
available: boolean(),
|
|
56053
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
56054
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56055
|
+
});
|
|
56056
|
+
var DishwasherOptionsSchema = object({
|
|
56057
|
+
availability: DishwasherAvailabilitySchema,
|
|
56058
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
56059
|
+
supportsStart: boolean(),
|
|
56060
|
+
supportsPause: boolean(),
|
|
56061
|
+
supportsResume: boolean(),
|
|
56062
|
+
supportsStop: boolean(),
|
|
56063
|
+
supportsPower: boolean(),
|
|
56064
|
+
/** Every program the description lists, with its options. */
|
|
56065
|
+
programs: array(DishwasherProgramSchema),
|
|
56066
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
56067
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56068
|
+
});
|
|
55918
56069
|
var dishwasherCapability = {
|
|
55919
56070
|
name: "dishwasher",
|
|
55920
56071
|
scope: "device",
|
|
@@ -55922,58 +56073,102 @@ var dishwasherCapability = {
|
|
|
55922
56073
|
mode: "singleton",
|
|
55923
56074
|
deviceTypes: [DeviceType.Dishwasher],
|
|
55924
56075
|
methods: {
|
|
55925
|
-
|
|
56076
|
+
/**
|
|
56077
|
+
* Start a program. Without `program` the selected one starts. `options` are
|
|
56078
|
+
* option feature keys; each is checked against the program's constraints.
|
|
56079
|
+
*/
|
|
56080
|
+
start: method(object({
|
|
56081
|
+
deviceId: DeviceIdSchema,
|
|
56082
|
+
program: string().min(1).optional(),
|
|
56083
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
56084
|
+
}), _void(), {
|
|
55926
56085
|
kind: "mutation",
|
|
55927
56086
|
auth: "protected"
|
|
55928
56087
|
}),
|
|
55929
|
-
pause: method(object({ deviceId:
|
|
56088
|
+
pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55930
56089
|
kind: "mutation",
|
|
55931
56090
|
auth: "protected"
|
|
55932
56091
|
}),
|
|
55933
|
-
|
|
56092
|
+
resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55934
56093
|
kind: "mutation",
|
|
55935
56094
|
auth: "protected"
|
|
55936
56095
|
}),
|
|
56096
|
+
stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56097
|
+
kind: "mutation",
|
|
56098
|
+
auth: "protected"
|
|
56099
|
+
}),
|
|
56100
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
55937
56101
|
setProgram: method(object({
|
|
55938
|
-
deviceId:
|
|
56102
|
+
deviceId: DeviceIdSchema,
|
|
55939
56103
|
program: string().min(1)
|
|
55940
56104
|
}), _void(), {
|
|
55941
56105
|
kind: "mutation",
|
|
55942
56106
|
auth: "protected"
|
|
55943
56107
|
}),
|
|
55944
56108
|
setPower: method(object({
|
|
55945
|
-
deviceId:
|
|
56109
|
+
deviceId: DeviceIdSchema,
|
|
55946
56110
|
on: boolean()
|
|
55947
56111
|
}), _void(), {
|
|
55948
56112
|
kind: "mutation",
|
|
55949
56113
|
auth: "protected"
|
|
55950
56114
|
}),
|
|
55951
56115
|
setHalfLoad: method(object({
|
|
55952
|
-
deviceId:
|
|
56116
|
+
deviceId: DeviceIdSchema,
|
|
55953
56117
|
on: boolean()
|
|
55954
56118
|
}), _void(), {
|
|
55955
56119
|
kind: "mutation",
|
|
55956
56120
|
auth: "protected"
|
|
55957
56121
|
}),
|
|
55958
56122
|
setHygienePlus: method(object({
|
|
55959
|
-
deviceId:
|
|
56123
|
+
deviceId: DeviceIdSchema,
|
|
56124
|
+
on: boolean()
|
|
56125
|
+
}), _void(), {
|
|
56126
|
+
kind: "mutation",
|
|
56127
|
+
auth: "protected"
|
|
56128
|
+
}),
|
|
56129
|
+
setExtraDry: method(object({
|
|
56130
|
+
deviceId: DeviceIdSchema,
|
|
56131
|
+
on: boolean()
|
|
56132
|
+
}), _void(), {
|
|
56133
|
+
kind: "mutation",
|
|
56134
|
+
auth: "protected"
|
|
56135
|
+
}),
|
|
56136
|
+
setIntensiveZone: method(object({
|
|
56137
|
+
deviceId: DeviceIdSchema,
|
|
56138
|
+
on: boolean()
|
|
56139
|
+
}), _void(), {
|
|
56140
|
+
kind: "mutation",
|
|
56141
|
+
auth: "protected"
|
|
56142
|
+
}),
|
|
56143
|
+
setVarioSpeedPlus: method(object({
|
|
56144
|
+
deviceId: DeviceIdSchema,
|
|
56145
|
+
on: boolean()
|
|
56146
|
+
}), _void(), {
|
|
56147
|
+
kind: "mutation",
|
|
56148
|
+
auth: "protected"
|
|
56149
|
+
}),
|
|
56150
|
+
setChildLock: method(object({
|
|
56151
|
+
deviceId: DeviceIdSchema,
|
|
55960
56152
|
on: boolean()
|
|
55961
56153
|
}), _void(), {
|
|
55962
56154
|
kind: "mutation",
|
|
55963
56155
|
auth: "protected"
|
|
55964
56156
|
}),
|
|
56157
|
+
/**
|
|
56158
|
+
* Write any option or setting by feature key. Refused when the description does
|
|
56159
|
+
* not list it, it is not writable or not available now, or the value is outside
|
|
56160
|
+
* its declared range / members.
|
|
56161
|
+
*/
|
|
55965
56162
|
setOption: method(object({
|
|
55966
|
-
deviceId:
|
|
56163
|
+
deviceId: DeviceIdSchema,
|
|
55967
56164
|
key: string().min(1),
|
|
55968
|
-
value:
|
|
55969
|
-
boolean(),
|
|
55970
|
-
string(),
|
|
55971
|
-
number()
|
|
55972
|
-
])
|
|
56165
|
+
value: DishwasherValueSchema
|
|
55973
56166
|
}), _void(), {
|
|
55974
56167
|
kind: "mutation",
|
|
55975
56168
|
auth: "protected"
|
|
55976
|
-
})
|
|
56169
|
+
}),
|
|
56170
|
+
/** What this appliance can do, from its own description — the UI is derived from it. */
|
|
56171
|
+
getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
|
|
55977
56172
|
},
|
|
55978
56173
|
status: {
|
|
55979
56174
|
schema: DishwasherStatusSchema,
|
|
@@ -70388,6 +70583,12 @@ Object.freeze({
|
|
|
70388
70583
|
addonId: null,
|
|
70389
70584
|
access: "view"
|
|
70390
70585
|
},
|
|
70586
|
+
"dishwasher.getOptions": {
|
|
70587
|
+
capName: "dishwasher",
|
|
70588
|
+
capScope: "device",
|
|
70589
|
+
addonId: null,
|
|
70590
|
+
access: "view"
|
|
70591
|
+
},
|
|
70391
70592
|
"dishwasher.getStatus": {
|
|
70392
70593
|
capName: "dishwasher",
|
|
70393
70594
|
capScope: "device",
|
|
@@ -70400,6 +70601,24 @@ Object.freeze({
|
|
|
70400
70601
|
addonId: null,
|
|
70401
70602
|
access: "create"
|
|
70402
70603
|
},
|
|
70604
|
+
"dishwasher.resume": {
|
|
70605
|
+
capName: "dishwasher",
|
|
70606
|
+
capScope: "device",
|
|
70607
|
+
addonId: null,
|
|
70608
|
+
access: "create"
|
|
70609
|
+
},
|
|
70610
|
+
"dishwasher.setChildLock": {
|
|
70611
|
+
capName: "dishwasher",
|
|
70612
|
+
capScope: "device",
|
|
70613
|
+
addonId: null,
|
|
70614
|
+
access: "create"
|
|
70615
|
+
},
|
|
70616
|
+
"dishwasher.setExtraDry": {
|
|
70617
|
+
capName: "dishwasher",
|
|
70618
|
+
capScope: "device",
|
|
70619
|
+
addonId: null,
|
|
70620
|
+
access: "create"
|
|
70621
|
+
},
|
|
70403
70622
|
"dishwasher.setHalfLoad": {
|
|
70404
70623
|
capName: "dishwasher",
|
|
70405
70624
|
capScope: "device",
|
|
@@ -70412,6 +70631,12 @@ Object.freeze({
|
|
|
70412
70631
|
addonId: null,
|
|
70413
70632
|
access: "create"
|
|
70414
70633
|
},
|
|
70634
|
+
"dishwasher.setIntensiveZone": {
|
|
70635
|
+
capName: "dishwasher",
|
|
70636
|
+
capScope: "device",
|
|
70637
|
+
addonId: null,
|
|
70638
|
+
access: "create"
|
|
70639
|
+
},
|
|
70415
70640
|
"dishwasher.setOption": {
|
|
70416
70641
|
capName: "dishwasher",
|
|
70417
70642
|
capScope: "device",
|
|
@@ -70430,6 +70655,12 @@ Object.freeze({
|
|
|
70430
70655
|
addonId: null,
|
|
70431
70656
|
access: "create"
|
|
70432
70657
|
},
|
|
70658
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
70659
|
+
capName: "dishwasher",
|
|
70660
|
+
capScope: "device",
|
|
70661
|
+
addonId: null,
|
|
70662
|
+
access: "create"
|
|
70663
|
+
},
|
|
70433
70664
|
"dishwasher.start": {
|
|
70434
70665
|
capName: "dishwasher",
|
|
70435
70666
|
capScope: "device",
|
|
@@ -74876,6 +75107,12 @@ Object.freeze({
|
|
|
74876
75107
|
addonId: null,
|
|
74877
75108
|
access: "view"
|
|
74878
75109
|
},
|
|
75110
|
+
"storageMigration.moverClearance": {
|
|
75111
|
+
capName: "storage-migration",
|
|
75112
|
+
capScope: "system",
|
|
75113
|
+
addonId: null,
|
|
75114
|
+
access: "view"
|
|
75115
|
+
},
|
|
74879
75116
|
"storageMigration.movers": {
|
|
74880
75117
|
capName: "storage-migration",
|
|
74881
75118
|
capScope: "system",
|
|
@@ -77275,6 +77512,11 @@ Object.freeze({
|
|
|
77275
77512
|
form: "single",
|
|
77276
77513
|
optional: false
|
|
77277
77514
|
}],
|
|
77515
|
+
"dishwasher.getOptions": [{
|
|
77516
|
+
name: "deviceId",
|
|
77517
|
+
form: "single",
|
|
77518
|
+
optional: false
|
|
77519
|
+
}],
|
|
77278
77520
|
"dishwasher.getStatus": [{
|
|
77279
77521
|
name: "deviceId",
|
|
77280
77522
|
form: "single",
|
|
@@ -77285,6 +77527,21 @@ Object.freeze({
|
|
|
77285
77527
|
form: "single",
|
|
77286
77528
|
optional: false
|
|
77287
77529
|
}],
|
|
77530
|
+
"dishwasher.resume": [{
|
|
77531
|
+
name: "deviceId",
|
|
77532
|
+
form: "single",
|
|
77533
|
+
optional: false
|
|
77534
|
+
}],
|
|
77535
|
+
"dishwasher.setChildLock": [{
|
|
77536
|
+
name: "deviceId",
|
|
77537
|
+
form: "single",
|
|
77538
|
+
optional: false
|
|
77539
|
+
}],
|
|
77540
|
+
"dishwasher.setExtraDry": [{
|
|
77541
|
+
name: "deviceId",
|
|
77542
|
+
form: "single",
|
|
77543
|
+
optional: false
|
|
77544
|
+
}],
|
|
77288
77545
|
"dishwasher.setHalfLoad": [{
|
|
77289
77546
|
name: "deviceId",
|
|
77290
77547
|
form: "single",
|
|
@@ -77295,6 +77552,11 @@ Object.freeze({
|
|
|
77295
77552
|
form: "single",
|
|
77296
77553
|
optional: false
|
|
77297
77554
|
}],
|
|
77555
|
+
"dishwasher.setIntensiveZone": [{
|
|
77556
|
+
name: "deviceId",
|
|
77557
|
+
form: "single",
|
|
77558
|
+
optional: false
|
|
77559
|
+
}],
|
|
77298
77560
|
"dishwasher.setOption": [{
|
|
77299
77561
|
name: "deviceId",
|
|
77300
77562
|
form: "single",
|
|
@@ -77310,6 +77572,11 @@ Object.freeze({
|
|
|
77310
77572
|
form: "single",
|
|
77311
77573
|
optional: false
|
|
77312
77574
|
}],
|
|
77575
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
77576
|
+
name: "deviceId",
|
|
77577
|
+
form: "single",
|
|
77578
|
+
optional: false
|
|
77579
|
+
}],
|
|
77313
77580
|
"dishwasher.start": [{
|
|
77314
77581
|
name: "deviceId",
|
|
77315
77582
|
form: "single",
|
|
@@ -79351,6 +79618,9 @@ new Map(Object.entries({
|
|
|
79351
79618
|
"wrapper-update-available": "system",
|
|
79352
79619
|
"backup-completed": "system",
|
|
79353
79620
|
"export-completed": "system",
|
|
79621
|
+
"alert-critical": "system",
|
|
79622
|
+
"alert-error": "system",
|
|
79623
|
+
"alert-critical-resolved": "system",
|
|
79354
79624
|
"storage-location-low": "system",
|
|
79355
79625
|
"storage-location-critical": "system",
|
|
79356
79626
|
"storage-location-ok": "system",
|
|
@@ -79475,6 +79745,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
79475
79745
|
"storage-location-ok"
|
|
79476
79746
|
]
|
|
79477
79747
|
},
|
|
79748
|
+
{
|
|
79749
|
+
id: "alerts",
|
|
79750
|
+
family: "system",
|
|
79751
|
+
label: "Alerts",
|
|
79752
|
+
kinds: [
|
|
79753
|
+
"alert-critical",
|
|
79754
|
+
"alert-error",
|
|
79755
|
+
"alert-critical-resolved"
|
|
79756
|
+
]
|
|
79757
|
+
},
|
|
79478
79758
|
{
|
|
79479
79759
|
id: "alarm",
|
|
79480
79760
|
family: "alarm",
|
|
@@ -79519,6 +79799,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
79519
79799
|
return [[descriptor.kind, field]];
|
|
79520
79800
|
})));
|
|
79521
79801
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
79802
|
+
object({
|
|
79803
|
+
phase: _enum(["raised", "resolved"]),
|
|
79804
|
+
episodeId: string().min(1),
|
|
79805
|
+
alertId: string().min(1),
|
|
79806
|
+
severity: AlertSeveritySchema,
|
|
79807
|
+
category: string(),
|
|
79808
|
+
title: string(),
|
|
79809
|
+
message: string(),
|
|
79810
|
+
sourceType: string().optional(),
|
|
79811
|
+
sourceId: string().optional(),
|
|
79812
|
+
nodeId: string().optional(),
|
|
79813
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
79814
|
+
actionUrl: string().optional(),
|
|
79815
|
+
at: number()
|
|
79816
|
+
});
|
|
79522
79817
|
var RULE_BODY_ONLY = ["body"];
|
|
79523
79818
|
var RULE_TEXT = ["title", "body"];
|
|
79524
79819
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -79528,6 +79823,11 @@ var TANK = [
|
|
|
79528
79823
|
"device-tank-full",
|
|
79529
79824
|
"device-tank-normal"
|
|
79530
79825
|
];
|
|
79826
|
+
var ALERT_EPISODE = [
|
|
79827
|
+
"alert-critical",
|
|
79828
|
+
"alert-error",
|
|
79829
|
+
"alert-critical-resolved"
|
|
79830
|
+
];
|
|
79531
79831
|
var UPDATES = [
|
|
79532
79832
|
"addon-update-available",
|
|
79533
79833
|
"server-update-available",
|
|
@@ -79720,14 +80020,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
79720
80020
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
79721
80021
|
([...RULE_TEXT], [...TANK]),
|
|
79722
80022
|
[...RULE_TEXT],
|
|
79723
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79724
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79725
|
-
[...RULE_TEXT],
|
|
80023
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
80024
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79726
80025
|
[...RULE_TEXT],
|
|
79727
80026
|
[...RULE_TEXT],
|
|
79728
80027
|
[...RULE_TEXT],
|
|
79729
80028
|
[...RULE_TEXT],
|
|
79730
80029
|
[...RULE_TEXT],
|
|
80030
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79731
80031
|
[...RULE_TEXT],
|
|
79732
80032
|
[...RULE_TEXT],
|
|
79733
80033
|
[...RULE_TEXT],
|
|
@@ -79745,7 +80045,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
79745
80045
|
[...RULE_TEXT],
|
|
79746
80046
|
[...RULE_TEXT],
|
|
79747
80047
|
[...RULE_TEXT],
|
|
79748
|
-
[...RULE_TEXT],
|
|
80048
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80049
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80050
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80051
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80052
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79749
80053
|
[...RULE_TEXT],
|
|
79750
80054
|
[...RULE_TEXT],
|
|
79751
80055
|
[...RULE_TEXT],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-amcrest",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.140",
|
|
4
4
|
"description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|