@camstack/addon-export-hap 1.2.159 → 1.2.161
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/hap-export.addon.js +521 -15
- package/dist/hap-export.addon.mjs +521 -15
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -49,7 +49,7 @@ let node_fs_promises = require("node:fs/promises");
|
|
|
49
49
|
node_fs_promises = __toESM(node_fs_promises, 1);
|
|
50
50
|
let node_events = require("node:events");
|
|
51
51
|
let node_dgram = require("node:dgram");
|
|
52
|
-
//#region ../types/dist/event-category-
|
|
52
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
53
53
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
54
54
|
EventCategory["SystemBoot"] = "system.boot";
|
|
55
55
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -128,9 +128,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
128
128
|
/**
|
|
129
129
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
130
130
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
131
|
-
* alert centre turns it into one
|
|
131
|
+
* alert centre turns it into one critical alert.
|
|
132
132
|
*/
|
|
133
133
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
134
|
+
/**
|
|
135
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
136
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
137
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
138
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
139
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
140
|
+
* event may be dropped (D8, D11).
|
|
141
|
+
*/
|
|
142
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
134
143
|
EventCategory["AddonError"] = "addon.error";
|
|
135
144
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
136
145
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5455,7 +5464,7 @@ var ZodIssueCode = {
|
|
|
5455
5464
|
var ZodFirstPartyTypeKind;
|
|
5456
5465
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5457
5466
|
//#endregion
|
|
5458
|
-
//#region ../types/dist/sleep-
|
|
5467
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5459
5468
|
/**
|
|
5460
5469
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5461
5470
|
* window to float samples (D455).
|
|
@@ -8462,7 +8471,7 @@ object({
|
|
|
8462
8471
|
params: record(string(), union([string(), number()])).optional()
|
|
8463
8472
|
});
|
|
8464
8473
|
//#endregion
|
|
8465
|
-
//#region ../types/dist/err-msg
|
|
8474
|
+
//#region ../types/dist/err-msg-BXKzRBwg.mjs
|
|
8466
8475
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
8467
8476
|
DeviceType["Camera"] = "camera";
|
|
8468
8477
|
DeviceType["Hub"] = "hub";
|
|
@@ -8554,6 +8563,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
8554
8563
|
* native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
|
|
8555
8564
|
* integrations sharing the same food/desiccant/hopper surface. */
|
|
8556
8565
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
8566
|
+
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
8567
|
+
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
8568
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations. */
|
|
8569
|
+
DeviceType["Dishwasher"] = "dishwasher";
|
|
8557
8570
|
return DeviceType;
|
|
8558
8571
|
}({});
|
|
8559
8572
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -8811,7 +8824,7 @@ function errMsg$16(err) {
|
|
|
8811
8824
|
return String(err);
|
|
8812
8825
|
}
|
|
8813
8826
|
//#endregion
|
|
8814
|
-
//#region ../types/dist/composition-
|
|
8827
|
+
//#region ../types/dist/composition-CB6PMT9p.mjs
|
|
8815
8828
|
var AUDIO_ENCODER_BY_CODEC = {
|
|
8816
8829
|
opus: "libopus",
|
|
8817
8830
|
aac: "aac",
|
|
@@ -14016,8 +14029,20 @@ var AlertSeveritySchema = _enum([
|
|
|
14016
14029
|
"info",
|
|
14017
14030
|
"success",
|
|
14018
14031
|
"warning",
|
|
14019
|
-
"error"
|
|
14032
|
+
"error",
|
|
14033
|
+
"critical"
|
|
14020
14034
|
]);
|
|
14035
|
+
var AlertActionSchema = object({
|
|
14036
|
+
label: string(),
|
|
14037
|
+
href: string().optional(),
|
|
14038
|
+
/**
|
|
14039
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
14040
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
14041
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
14042
|
+
* the SPA has no such route and would bounce to the home page.
|
|
14043
|
+
*/
|
|
14044
|
+
navigation: _enum(["app", "server"]).optional()
|
|
14045
|
+
});
|
|
14021
14046
|
var AlertStatusSchema = _enum([
|
|
14022
14047
|
"active",
|
|
14023
14048
|
"in-progress",
|
|
@@ -14035,6 +14060,7 @@ var AlertSchema = object({
|
|
|
14035
14060
|
severity: AlertSeveritySchema,
|
|
14036
14061
|
title: string(),
|
|
14037
14062
|
message: string(),
|
|
14063
|
+
action: AlertActionSchema.optional(),
|
|
14038
14064
|
status: AlertStatusSchema,
|
|
14039
14065
|
progress: number().optional(),
|
|
14040
14066
|
read: boolean(),
|
|
@@ -18235,7 +18261,11 @@ DeviceType.Hub, DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int
|
|
|
18235
18261
|
});
|
|
18236
18262
|
/**
|
|
18237
18263
|
* `device-adoption` — generic discovery + adoption surface,
|
|
18238
|
-
* system-scoped
|
|
18264
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
18265
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
18266
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
18267
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
18268
|
+
* successor to `ha-discovery`:
|
|
18239
18269
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
18240
18270
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
18241
18271
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -42468,6 +42498,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42468
42498
|
"server-updated",
|
|
42469
42499
|
"export-completed",
|
|
42470
42500
|
"backup-completed",
|
|
42501
|
+
"alert-critical",
|
|
42502
|
+
"alert-error",
|
|
42503
|
+
"alert-critical-resolved",
|
|
42471
42504
|
"camera-online",
|
|
42472
42505
|
"camera-offline",
|
|
42473
42506
|
"camera-disabled",
|
|
@@ -51500,7 +51533,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
51500
51533
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
51501
51534
|
kind: "mutation",
|
|
51502
51535
|
auth: "admin"
|
|
51503
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
51536
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
51537
|
+
clear: boolean(),
|
|
51538
|
+
repointLocationId: string().optional()
|
|
51539
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
51504
51540
|
kind: "mutation",
|
|
51505
51541
|
auth: "admin"
|
|
51506
51542
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -54247,7 +54283,7 @@ var BatteryStatusSchema = object({
|
|
|
54247
54283
|
*/
|
|
54248
54284
|
binary: boolean().optional()
|
|
54249
54285
|
});
|
|
54250
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, method(object({
|
|
54286
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, method(object({
|
|
54251
54287
|
deviceId: number(),
|
|
54252
54288
|
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
54253
54289
|
timeoutMs: number().int().min(500).max(3e4).default(8e3)
|
|
@@ -55139,6 +55175,250 @@ object({
|
|
|
55139
55175
|
deviceId: number(),
|
|
55140
55176
|
status: DeviceStatusSchema
|
|
55141
55177
|
});
|
|
55178
|
+
/**
|
|
55179
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates,
|
|
55180
|
+
* consumable levels (salt, rinse aid) and common program options.
|
|
55181
|
+
*
|
|
55182
|
+
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
55183
|
+
* by any integration that exposes the same program / option surface.
|
|
55184
|
+
*
|
|
55185
|
+
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
55186
|
+
* provider refreshes the slice on an interval and eagerly after commands.
|
|
55187
|
+
*
|
|
55188
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
55189
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
55190
|
+
* the link is down, or the description does not carry it) and is never
|
|
55191
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
55192
|
+
*/
|
|
55193
|
+
var DishwasherStateSchema = _enum([
|
|
55194
|
+
"idle",
|
|
55195
|
+
"running",
|
|
55196
|
+
"paused",
|
|
55197
|
+
"finished",
|
|
55198
|
+
"error",
|
|
55199
|
+
"unavailable"
|
|
55200
|
+
]);
|
|
55201
|
+
/**
|
|
55202
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
55203
|
+
* view for compact surfaces; this is what the appliance said.
|
|
55204
|
+
*/
|
|
55205
|
+
var DishwasherOperationStateSchema = _enum([
|
|
55206
|
+
"Inactive",
|
|
55207
|
+
"Ready",
|
|
55208
|
+
"DelayedStart",
|
|
55209
|
+
"Run",
|
|
55210
|
+
"Pause",
|
|
55211
|
+
"ActionRequired",
|
|
55212
|
+
"Finished",
|
|
55213
|
+
"Error",
|
|
55214
|
+
"Aborting"
|
|
55215
|
+
]);
|
|
55216
|
+
/**
|
|
55217
|
+
* Why fields may be `null`:
|
|
55218
|
+
* - `available` — the link is up and the description is loaded;
|
|
55219
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
55220
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
55221
|
+
* be loaded, so its values cannot be decoded.
|
|
55222
|
+
*/
|
|
55223
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
55224
|
+
"available",
|
|
55225
|
+
"offline",
|
|
55226
|
+
"description-missing"
|
|
55227
|
+
]);
|
|
55228
|
+
var DishwasherConsumableLevelSchema = _enum([
|
|
55229
|
+
"ok",
|
|
55230
|
+
"low",
|
|
55231
|
+
"empty"
|
|
55232
|
+
]);
|
|
55233
|
+
object({
|
|
55234
|
+
availability: DishwasherAvailabilitySchema,
|
|
55235
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
55236
|
+
state: DishwasherStateSchema,
|
|
55237
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
55238
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
55239
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
55240
|
+
program: string().nullable(),
|
|
55241
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
55242
|
+
selectedProgram: string().nullable(),
|
|
55243
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
55244
|
+
availablePrograms: array(string()),
|
|
55245
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
55246
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
55247
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
55248
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
55249
|
+
/** Cycle completion 0..100, or null when not applicable. */
|
|
55250
|
+
progressPercent: number().min(0).max(100).nullable(),
|
|
55251
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
55252
|
+
doorOpen: boolean().nullable(),
|
|
55253
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
55254
|
+
doorLocked: boolean().nullable(),
|
|
55255
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
55256
|
+
remoteStartAllowed: boolean().nullable(),
|
|
55257
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
55258
|
+
remoteControlActive: boolean().nullable(),
|
|
55259
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
55260
|
+
localControlActive: boolean().nullable(),
|
|
55261
|
+
/** Main power / switched-on state; null when not known. */
|
|
55262
|
+
powerOn: boolean().nullable(),
|
|
55263
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
55264
|
+
powerState: string().nullable(),
|
|
55265
|
+
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55266
|
+
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55267
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
55268
|
+
halfLoad: boolean().nullable(),
|
|
55269
|
+
hygienePlus: boolean().nullable(),
|
|
55270
|
+
/** Extra dry option when the appliance exposes it. */
|
|
55271
|
+
extraDry: boolean().nullable(),
|
|
55272
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
55273
|
+
intensiveZone: boolean().nullable(),
|
|
55274
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
55275
|
+
varioSpeedPlus: boolean().nullable(),
|
|
55276
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
55277
|
+
childLock: boolean().nullable(),
|
|
55278
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
55279
|
+
activeEvents: array(string()),
|
|
55280
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
55281
|
+
errorCode: number().nullable(),
|
|
55282
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
55283
|
+
errorLabel: string().nullable(),
|
|
55284
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
55285
|
+
lastFetchedAt: number()
|
|
55286
|
+
});
|
|
55287
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
55288
|
+
/** A value a program option or setting can take. */
|
|
55289
|
+
var DishwasherValueSchema = union([
|
|
55290
|
+
boolean(),
|
|
55291
|
+
string(),
|
|
55292
|
+
number()
|
|
55293
|
+
]);
|
|
55294
|
+
var DishwasherAccessSchema = _enum([
|
|
55295
|
+
"none",
|
|
55296
|
+
"read",
|
|
55297
|
+
"readWrite",
|
|
55298
|
+
"writeOnly",
|
|
55299
|
+
"readStatic"
|
|
55300
|
+
]);
|
|
55301
|
+
/**
|
|
55302
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
55303
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
55304
|
+
*/
|
|
55305
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
55306
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
55307
|
+
key: string(),
|
|
55308
|
+
/** Last segment of the key, for display. */
|
|
55309
|
+
name: string(),
|
|
55310
|
+
type: _enum([
|
|
55311
|
+
"boolean",
|
|
55312
|
+
"number",
|
|
55313
|
+
"enum",
|
|
55314
|
+
"string"
|
|
55315
|
+
]),
|
|
55316
|
+
access: DishwasherAccessSchema,
|
|
55317
|
+
/** The appliance reports this entity as currently available. */
|
|
55318
|
+
available: boolean(),
|
|
55319
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
55320
|
+
unit: string().nullable(),
|
|
55321
|
+
min: number().nullable(),
|
|
55322
|
+
max: number().nullable(),
|
|
55323
|
+
step: number().nullable(),
|
|
55324
|
+
/** Allowed members of an enum; null for other types. */
|
|
55325
|
+
enumValues: array(string()).nullable(),
|
|
55326
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
55327
|
+
});
|
|
55328
|
+
var DishwasherProgramSchema = object({
|
|
55329
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
55330
|
+
key: string(),
|
|
55331
|
+
name: string(),
|
|
55332
|
+
/** The appliance currently offers this program. */
|
|
55333
|
+
available: boolean(),
|
|
55334
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
55335
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
55336
|
+
});
|
|
55337
|
+
var DishwasherOptionsSchema = object({
|
|
55338
|
+
availability: DishwasherAvailabilitySchema,
|
|
55339
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
55340
|
+
supportsStart: boolean(),
|
|
55341
|
+
supportsPause: boolean(),
|
|
55342
|
+
supportsResume: boolean(),
|
|
55343
|
+
supportsStop: boolean(),
|
|
55344
|
+
supportsPower: boolean(),
|
|
55345
|
+
/** Every program the description lists, with its options. */
|
|
55346
|
+
programs: array(DishwasherProgramSchema),
|
|
55347
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
55348
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
55349
|
+
});
|
|
55350
|
+
DeviceType.Dishwasher, method(object({
|
|
55351
|
+
deviceId: DeviceIdSchema,
|
|
55352
|
+
program: string().min(1).optional(),
|
|
55353
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
55354
|
+
}), _void(), {
|
|
55355
|
+
kind: "mutation",
|
|
55356
|
+
auth: "protected"
|
|
55357
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55358
|
+
kind: "mutation",
|
|
55359
|
+
auth: "protected"
|
|
55360
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55361
|
+
kind: "mutation",
|
|
55362
|
+
auth: "protected"
|
|
55363
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55364
|
+
kind: "mutation",
|
|
55365
|
+
auth: "protected"
|
|
55366
|
+
}), method(object({
|
|
55367
|
+
deviceId: DeviceIdSchema,
|
|
55368
|
+
program: string().min(1)
|
|
55369
|
+
}), _void(), {
|
|
55370
|
+
kind: "mutation",
|
|
55371
|
+
auth: "protected"
|
|
55372
|
+
}), method(object({
|
|
55373
|
+
deviceId: DeviceIdSchema,
|
|
55374
|
+
on: boolean()
|
|
55375
|
+
}), _void(), {
|
|
55376
|
+
kind: "mutation",
|
|
55377
|
+
auth: "protected"
|
|
55378
|
+
}), method(object({
|
|
55379
|
+
deviceId: DeviceIdSchema,
|
|
55380
|
+
on: boolean()
|
|
55381
|
+
}), _void(), {
|
|
55382
|
+
kind: "mutation",
|
|
55383
|
+
auth: "protected"
|
|
55384
|
+
}), method(object({
|
|
55385
|
+
deviceId: DeviceIdSchema,
|
|
55386
|
+
on: boolean()
|
|
55387
|
+
}), _void(), {
|
|
55388
|
+
kind: "mutation",
|
|
55389
|
+
auth: "protected"
|
|
55390
|
+
}), method(object({
|
|
55391
|
+
deviceId: DeviceIdSchema,
|
|
55392
|
+
on: boolean()
|
|
55393
|
+
}), _void(), {
|
|
55394
|
+
kind: "mutation",
|
|
55395
|
+
auth: "protected"
|
|
55396
|
+
}), method(object({
|
|
55397
|
+
deviceId: DeviceIdSchema,
|
|
55398
|
+
on: boolean()
|
|
55399
|
+
}), _void(), {
|
|
55400
|
+
kind: "mutation",
|
|
55401
|
+
auth: "protected"
|
|
55402
|
+
}), method(object({
|
|
55403
|
+
deviceId: DeviceIdSchema,
|
|
55404
|
+
on: boolean()
|
|
55405
|
+
}), _void(), {
|
|
55406
|
+
kind: "mutation",
|
|
55407
|
+
auth: "protected"
|
|
55408
|
+
}), method(object({
|
|
55409
|
+
deviceId: DeviceIdSchema,
|
|
55410
|
+
on: boolean()
|
|
55411
|
+
}), _void(), {
|
|
55412
|
+
kind: "mutation",
|
|
55413
|
+
auth: "protected"
|
|
55414
|
+
}), method(object({
|
|
55415
|
+
deviceId: DeviceIdSchema,
|
|
55416
|
+
key: string().min(1),
|
|
55417
|
+
value: DishwasherValueSchema
|
|
55418
|
+
}), _void(), {
|
|
55419
|
+
kind: "mutation",
|
|
55420
|
+
auth: "protected"
|
|
55421
|
+
}), method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" });
|
|
55142
55422
|
object({
|
|
55143
55423
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
55144
55424
|
lastPressedAt: number().nullable(),
|
|
@@ -55712,6 +55992,13 @@ object({
|
|
|
55712
55992
|
lastChangedAt: number()
|
|
55713
55993
|
});
|
|
55714
55994
|
DeviceType.Sensor;
|
|
55995
|
+
object({
|
|
55996
|
+
/** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
|
|
55997
|
+
position: number().min(0).max(100).nullable(),
|
|
55998
|
+
/** Ms epoch when the slice was last updated (push or poll). */
|
|
55999
|
+
lastFetchedAt: number()
|
|
56000
|
+
});
|
|
56001
|
+
DeviceType.Thermostat;
|
|
55715
56002
|
object({
|
|
55716
56003
|
/** Whether the humidifier is currently on. */
|
|
55717
56004
|
on: boolean(),
|
|
@@ -62811,7 +63098,7 @@ var AccessoryKind = {
|
|
|
62811
63098
|
PrivacyMask: DeviceRole.PrivacyMask
|
|
62812
63099
|
};
|
|
62813
63100
|
AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
|
|
62814
|
-
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder;
|
|
63101
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher;
|
|
62815
63102
|
new Set(Object.values(DeviceType));
|
|
62816
63103
|
Object.freeze({
|
|
62817
63104
|
"accessories.getStatus": {
|
|
@@ -65232,6 +65519,96 @@ Object.freeze({
|
|
|
65232
65519
|
addonId: null,
|
|
65233
65520
|
access: "view"
|
|
65234
65521
|
},
|
|
65522
|
+
"dishwasher.getOptions": {
|
|
65523
|
+
capName: "dishwasher",
|
|
65524
|
+
capScope: "device",
|
|
65525
|
+
addonId: null,
|
|
65526
|
+
access: "view"
|
|
65527
|
+
},
|
|
65528
|
+
"dishwasher.getStatus": {
|
|
65529
|
+
capName: "dishwasher",
|
|
65530
|
+
capScope: "device",
|
|
65531
|
+
addonId: null,
|
|
65532
|
+
access: "view"
|
|
65533
|
+
},
|
|
65534
|
+
"dishwasher.pause": {
|
|
65535
|
+
capName: "dishwasher",
|
|
65536
|
+
capScope: "device",
|
|
65537
|
+
addonId: null,
|
|
65538
|
+
access: "create"
|
|
65539
|
+
},
|
|
65540
|
+
"dishwasher.resume": {
|
|
65541
|
+
capName: "dishwasher",
|
|
65542
|
+
capScope: "device",
|
|
65543
|
+
addonId: null,
|
|
65544
|
+
access: "create"
|
|
65545
|
+
},
|
|
65546
|
+
"dishwasher.setChildLock": {
|
|
65547
|
+
capName: "dishwasher",
|
|
65548
|
+
capScope: "device",
|
|
65549
|
+
addonId: null,
|
|
65550
|
+
access: "create"
|
|
65551
|
+
},
|
|
65552
|
+
"dishwasher.setExtraDry": {
|
|
65553
|
+
capName: "dishwasher",
|
|
65554
|
+
capScope: "device",
|
|
65555
|
+
addonId: null,
|
|
65556
|
+
access: "create"
|
|
65557
|
+
},
|
|
65558
|
+
"dishwasher.setHalfLoad": {
|
|
65559
|
+
capName: "dishwasher",
|
|
65560
|
+
capScope: "device",
|
|
65561
|
+
addonId: null,
|
|
65562
|
+
access: "create"
|
|
65563
|
+
},
|
|
65564
|
+
"dishwasher.setHygienePlus": {
|
|
65565
|
+
capName: "dishwasher",
|
|
65566
|
+
capScope: "device",
|
|
65567
|
+
addonId: null,
|
|
65568
|
+
access: "create"
|
|
65569
|
+
},
|
|
65570
|
+
"dishwasher.setIntensiveZone": {
|
|
65571
|
+
capName: "dishwasher",
|
|
65572
|
+
capScope: "device",
|
|
65573
|
+
addonId: null,
|
|
65574
|
+
access: "create"
|
|
65575
|
+
},
|
|
65576
|
+
"dishwasher.setOption": {
|
|
65577
|
+
capName: "dishwasher",
|
|
65578
|
+
capScope: "device",
|
|
65579
|
+
addonId: null,
|
|
65580
|
+
access: "create"
|
|
65581
|
+
},
|
|
65582
|
+
"dishwasher.setPower": {
|
|
65583
|
+
capName: "dishwasher",
|
|
65584
|
+
capScope: "device",
|
|
65585
|
+
addonId: null,
|
|
65586
|
+
access: "create"
|
|
65587
|
+
},
|
|
65588
|
+
"dishwasher.setProgram": {
|
|
65589
|
+
capName: "dishwasher",
|
|
65590
|
+
capScope: "device",
|
|
65591
|
+
addonId: null,
|
|
65592
|
+
access: "create"
|
|
65593
|
+
},
|
|
65594
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
65595
|
+
capName: "dishwasher",
|
|
65596
|
+
capScope: "device",
|
|
65597
|
+
addonId: null,
|
|
65598
|
+
access: "create"
|
|
65599
|
+
},
|
|
65600
|
+
"dishwasher.start": {
|
|
65601
|
+
capName: "dishwasher",
|
|
65602
|
+
capScope: "device",
|
|
65603
|
+
addonId: null,
|
|
65604
|
+
access: "create"
|
|
65605
|
+
},
|
|
65606
|
+
"dishwasher.stop": {
|
|
65607
|
+
capName: "dishwasher",
|
|
65608
|
+
capScope: "device",
|
|
65609
|
+
addonId: null,
|
|
65610
|
+
access: "create"
|
|
65611
|
+
},
|
|
65235
65612
|
"doorbell.getStatus": {
|
|
65236
65613
|
capName: "doorbell",
|
|
65237
65614
|
capScope: "device",
|
|
@@ -65442,6 +65819,12 @@ Object.freeze({
|
|
|
65442
65819
|
addonId: null,
|
|
65443
65820
|
access: "view"
|
|
65444
65821
|
},
|
|
65822
|
+
"heatingValve.getStatus": {
|
|
65823
|
+
capName: "heating-valve",
|
|
65824
|
+
capScope: "device",
|
|
65825
|
+
addonId: null,
|
|
65826
|
+
access: "view"
|
|
65827
|
+
},
|
|
65445
65828
|
"humidifier.getStatus": {
|
|
65446
65829
|
capName: "humidifier",
|
|
65447
65830
|
capScope: "device",
|
|
@@ -69660,6 +70043,12 @@ Object.freeze({
|
|
|
69660
70043
|
addonId: null,
|
|
69661
70044
|
access: "view"
|
|
69662
70045
|
},
|
|
70046
|
+
"storageMigration.moverClearance": {
|
|
70047
|
+
capName: "storage-migration",
|
|
70048
|
+
capScope: "system",
|
|
70049
|
+
addonId: null,
|
|
70050
|
+
access: "view"
|
|
70051
|
+
},
|
|
69663
70052
|
"storageMigration.movers": {
|
|
69664
70053
|
capName: "storage-migration",
|
|
69665
70054
|
capScope: "system",
|
|
@@ -71029,7 +71418,7 @@ Object.freeze({
|
|
|
71029
71418
|
access: "create"
|
|
71030
71419
|
}
|
|
71031
71420
|
});
|
|
71032
|
-
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder;
|
|
71421
|
+
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher;
|
|
71033
71422
|
DeviceFeature.BatteryOperated;
|
|
71034
71423
|
Object.freeze({
|
|
71035
71424
|
"accessories.getStatus": [{
|
|
@@ -71853,6 +72242,81 @@ Object.freeze({
|
|
|
71853
72242
|
form: "single",
|
|
71854
72243
|
optional: false
|
|
71855
72244
|
}],
|
|
72245
|
+
"dishwasher.getOptions": [{
|
|
72246
|
+
name: "deviceId",
|
|
72247
|
+
form: "single",
|
|
72248
|
+
optional: false
|
|
72249
|
+
}],
|
|
72250
|
+
"dishwasher.getStatus": [{
|
|
72251
|
+
name: "deviceId",
|
|
72252
|
+
form: "single",
|
|
72253
|
+
optional: false
|
|
72254
|
+
}],
|
|
72255
|
+
"dishwasher.pause": [{
|
|
72256
|
+
name: "deviceId",
|
|
72257
|
+
form: "single",
|
|
72258
|
+
optional: false
|
|
72259
|
+
}],
|
|
72260
|
+
"dishwasher.resume": [{
|
|
72261
|
+
name: "deviceId",
|
|
72262
|
+
form: "single",
|
|
72263
|
+
optional: false
|
|
72264
|
+
}],
|
|
72265
|
+
"dishwasher.setChildLock": [{
|
|
72266
|
+
name: "deviceId",
|
|
72267
|
+
form: "single",
|
|
72268
|
+
optional: false
|
|
72269
|
+
}],
|
|
72270
|
+
"dishwasher.setExtraDry": [{
|
|
72271
|
+
name: "deviceId",
|
|
72272
|
+
form: "single",
|
|
72273
|
+
optional: false
|
|
72274
|
+
}],
|
|
72275
|
+
"dishwasher.setHalfLoad": [{
|
|
72276
|
+
name: "deviceId",
|
|
72277
|
+
form: "single",
|
|
72278
|
+
optional: false
|
|
72279
|
+
}],
|
|
72280
|
+
"dishwasher.setHygienePlus": [{
|
|
72281
|
+
name: "deviceId",
|
|
72282
|
+
form: "single",
|
|
72283
|
+
optional: false
|
|
72284
|
+
}],
|
|
72285
|
+
"dishwasher.setIntensiveZone": [{
|
|
72286
|
+
name: "deviceId",
|
|
72287
|
+
form: "single",
|
|
72288
|
+
optional: false
|
|
72289
|
+
}],
|
|
72290
|
+
"dishwasher.setOption": [{
|
|
72291
|
+
name: "deviceId",
|
|
72292
|
+
form: "single",
|
|
72293
|
+
optional: false
|
|
72294
|
+
}],
|
|
72295
|
+
"dishwasher.setPower": [{
|
|
72296
|
+
name: "deviceId",
|
|
72297
|
+
form: "single",
|
|
72298
|
+
optional: false
|
|
72299
|
+
}],
|
|
72300
|
+
"dishwasher.setProgram": [{
|
|
72301
|
+
name: "deviceId",
|
|
72302
|
+
form: "single",
|
|
72303
|
+
optional: false
|
|
72304
|
+
}],
|
|
72305
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
72306
|
+
name: "deviceId",
|
|
72307
|
+
form: "single",
|
|
72308
|
+
optional: false
|
|
72309
|
+
}],
|
|
72310
|
+
"dishwasher.start": [{
|
|
72311
|
+
name: "deviceId",
|
|
72312
|
+
form: "single",
|
|
72313
|
+
optional: false
|
|
72314
|
+
}],
|
|
72315
|
+
"dishwasher.stop": [{
|
|
72316
|
+
name: "deviceId",
|
|
72317
|
+
form: "single",
|
|
72318
|
+
optional: false
|
|
72319
|
+
}],
|
|
71856
72320
|
"doorbell.getStatus": [{
|
|
71857
72321
|
name: "deviceId",
|
|
71858
72322
|
form: "single",
|
|
@@ -71922,6 +72386,11 @@ Object.freeze({
|
|
|
71922
72386
|
form: "single",
|
|
71923
72387
|
optional: false
|
|
71924
72388
|
}],
|
|
72389
|
+
"heatingValve.getStatus": [{
|
|
72390
|
+
name: "deviceId",
|
|
72391
|
+
form: "single",
|
|
72392
|
+
optional: false
|
|
72393
|
+
}],
|
|
71925
72394
|
"humidifier.getStatus": [{
|
|
71926
72395
|
name: "deviceId",
|
|
71927
72396
|
form: "single",
|
|
@@ -73879,6 +74348,9 @@ new Map(Object.entries({
|
|
|
73879
74348
|
"wrapper-update-available": "system",
|
|
73880
74349
|
"backup-completed": "system",
|
|
73881
74350
|
"export-completed": "system",
|
|
74351
|
+
"alert-critical": "system",
|
|
74352
|
+
"alert-error": "system",
|
|
74353
|
+
"alert-critical-resolved": "system",
|
|
73882
74354
|
"storage-location-low": "system",
|
|
73883
74355
|
"storage-location-critical": "system",
|
|
73884
74356
|
"storage-location-ok": "system",
|
|
@@ -74003,6 +74475,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
74003
74475
|
"storage-location-ok"
|
|
74004
74476
|
]
|
|
74005
74477
|
},
|
|
74478
|
+
{
|
|
74479
|
+
id: "alerts",
|
|
74480
|
+
family: "system",
|
|
74481
|
+
label: "Alerts",
|
|
74482
|
+
kinds: [
|
|
74483
|
+
"alert-critical",
|
|
74484
|
+
"alert-error",
|
|
74485
|
+
"alert-critical-resolved"
|
|
74486
|
+
]
|
|
74487
|
+
},
|
|
74006
74488
|
{
|
|
74007
74489
|
id: "alarm",
|
|
74008
74490
|
family: "alarm",
|
|
@@ -74047,6 +74529,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
74047
74529
|
return [[descriptor.kind, field]];
|
|
74048
74530
|
})));
|
|
74049
74531
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
74532
|
+
object({
|
|
74533
|
+
phase: _enum(["raised", "resolved"]),
|
|
74534
|
+
episodeId: string().min(1),
|
|
74535
|
+
alertId: string().min(1),
|
|
74536
|
+
severity: AlertSeveritySchema,
|
|
74537
|
+
category: string(),
|
|
74538
|
+
title: string(),
|
|
74539
|
+
message: string(),
|
|
74540
|
+
sourceType: string().optional(),
|
|
74541
|
+
sourceId: string().optional(),
|
|
74542
|
+
nodeId: string().optional(),
|
|
74543
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
74544
|
+
actionUrl: string().optional(),
|
|
74545
|
+
at: number()
|
|
74546
|
+
});
|
|
74050
74547
|
var RULE_BODY_ONLY = ["body"];
|
|
74051
74548
|
var RULE_TEXT = ["title", "body"];
|
|
74052
74549
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -74056,6 +74553,11 @@ var TANK = [
|
|
|
74056
74553
|
"device-tank-full",
|
|
74057
74554
|
"device-tank-normal"
|
|
74058
74555
|
];
|
|
74556
|
+
var ALERT_EPISODE = [
|
|
74557
|
+
"alert-critical",
|
|
74558
|
+
"alert-error",
|
|
74559
|
+
"alert-critical-resolved"
|
|
74560
|
+
];
|
|
74059
74561
|
var UPDATES = [
|
|
74060
74562
|
"addon-update-available",
|
|
74061
74563
|
"server-update-available",
|
|
@@ -74248,14 +74750,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
74248
74750
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
74249
74751
|
([...RULE_TEXT], [...TANK]),
|
|
74250
74752
|
[...RULE_TEXT],
|
|
74251
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
74252
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
74253
|
-
[...RULE_TEXT],
|
|
74753
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
74754
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
74254
74755
|
[...RULE_TEXT],
|
|
74255
74756
|
[...RULE_TEXT],
|
|
74256
74757
|
[...RULE_TEXT],
|
|
74257
74758
|
[...RULE_TEXT],
|
|
74258
74759
|
[...RULE_TEXT],
|
|
74760
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74259
74761
|
[...RULE_TEXT],
|
|
74260
74762
|
[...RULE_TEXT],
|
|
74261
74763
|
[...RULE_TEXT],
|
|
@@ -74273,7 +74775,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
74273
74775
|
[...RULE_TEXT],
|
|
74274
74776
|
[...RULE_TEXT],
|
|
74275
74777
|
[...RULE_TEXT],
|
|
74276
|
-
[...RULE_TEXT],
|
|
74778
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74779
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74780
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74781
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74782
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74277
74783
|
[...RULE_TEXT],
|
|
74278
74784
|
[...RULE_TEXT],
|
|
74279
74785
|
[...RULE_TEXT],
|