@camstack/addon-provider-velux 0.2.128 → 0.2.129

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.
Files changed (3) hide show
  1. package/dist/addon.js +264 -44
  2. package/dist/addon.mjs +264 -44
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region ../types/dist/event-category-BvOFi6PY.mjs
2
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -78,9 +78,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
78
78
  /**
79
79
  * The node's one-shot runner boot check (D877): planned runners against the
80
80
  * process service, `degraded` when any is failed, refused or missing. The
81
- * alert centre turns it into one alert and a direct critical push.
81
+ * alert centre turns it into one critical alert.
82
82
  */
83
83
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
84
+ /**
85
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
86
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
87
+ * centre sends no notification of its own: Notification Center turns this
88
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
89
+ * system-event kinds, and reconciles from the alerts store because a bus
90
+ * event may be dropped (D8, D11).
91
+ */
92
+ EventCategory["AlertEpisode"] = "alert.episode";
84
93
  EventCategory["AddonError"] = "addon.error";
85
94
  EventCategory["AddonPageReady"] = "addon.page-ready";
86
95
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5405,7 +5414,7 @@ var ZodIssueCode = {
5405
5414
  var ZodFirstPartyTypeKind;
5406
5415
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5407
5416
  //#endregion
5408
- //#region ../types/dist/sleep-BegKjwUu.mjs
5417
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5409
5418
  /**
5410
5419
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5411
5420
  * window to float samples (D455).
@@ -13182,7 +13191,14 @@ var AlertSeveritySchema = _enum([
13182
13191
  ]);
13183
13192
  var AlertActionSchema = object({
13184
13193
  label: string(),
13185
- href: string().optional()
13194
+ href: string().optional(),
13195
+ /**
13196
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13197
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13198
+ * start) — the browser must leave the SPA with a full navigation, because
13199
+ * the SPA has no such route and would bounce to the home page.
13200
+ */
13201
+ navigation: _enum(["app", "server"]).optional()
13186
13202
  });
13187
13203
  var AlertStatusSchema = _enum([
13188
13204
  "active",
@@ -42011,6 +42027,9 @@ var NcSystemEventKindSchema = _enum([
42011
42027
  "server-updated",
42012
42028
  "export-completed",
42013
42029
  "backup-completed",
42030
+ "alert-critical",
42031
+ "alert-error",
42032
+ "alert-critical-resolved",
42014
42033
  "camera-online",
42015
42034
  "camera-offline",
42016
42035
  "camera-disabled",
@@ -51087,7 +51106,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
51087
51106
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
51088
51107
  kind: "mutation",
51089
51108
  auth: "admin"
51090
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51109
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
51110
+ clear: boolean(),
51111
+ repointLocationId: string().optional()
51112
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51091
51113
  kind: "mutation",
51092
51114
  auth: "admin"
51093
51115
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -55343,6 +55365,11 @@ onStatusChanged: { data: object({
55343
55365
  *
55344
55366
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
55345
55367
  * provider refreshes the slice on an interval and eagerly after commands.
55368
+ *
55369
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
55370
+ * nullable: `null` means "not known right now" (the appliance has not said,
55371
+ * the link is down, or the description does not carry it) and is never
55372
+ * rendered or exported as `false` / `0`. `availability` says why.
55346
55373
  */
55347
55374
  var DishwasherStateSchema = _enum([
55348
55375
  "idle",
@@ -55352,43 +55379,155 @@ var DishwasherStateSchema = _enum([
55352
55379
  "error",
55353
55380
  "unavailable"
55354
55381
  ]);
55382
+ /**
55383
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
55384
+ * view for compact surfaces; this is what the appliance said.
55385
+ */
55386
+ var DishwasherOperationStateSchema = _enum([
55387
+ "Inactive",
55388
+ "Ready",
55389
+ "DelayedStart",
55390
+ "Run",
55391
+ "Pause",
55392
+ "ActionRequired",
55393
+ "Finished",
55394
+ "Error",
55395
+ "Aborting"
55396
+ ]);
55397
+ /**
55398
+ * Why fields may be `null`:
55399
+ * - `available` — the link is up and the description is loaded;
55400
+ * - `offline` — the local link is down (values are unknown, not last-known);
55401
+ * - `description-missing` — the link is up but the appliance's description could not
55402
+ * be loaded, so its values cannot be decoded.
55403
+ */
55404
+ var DishwasherAvailabilitySchema = _enum([
55405
+ "available",
55406
+ "offline",
55407
+ "description-missing"
55408
+ ]);
55355
55409
  var DishwasherConsumableLevelSchema = _enum([
55356
55410
  "ok",
55357
55411
  "low",
55358
55412
  "empty"
55359
55413
  ]);
55360
55414
  var DishwasherStatusSchema = object({
55415
+ availability: DishwasherAvailabilitySchema,
55416
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
55361
55417
  state: DishwasherStateSchema,
55362
- /** Active program id/name, or null when none selected / unknown. */
55418
+ /** The appliance's operation state as reported; null when not known. */
55419
+ operationState: DishwasherOperationStateSchema.nullable(),
55420
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
55363
55421
  program: string().nullable(),
55364
- /** Program tokens the hardware accepts — drives the UI selector. */
55422
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
55423
+ selectedProgram: string().nullable(),
55424
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
55365
55425
  availablePrograms: array(string()),
55366
- /** Minutes remaining on the active cycle, or null when not running. */
55367
- remainingMinutes: number().int().nonnegative().nullable(),
55426
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
55427
+ remainingSeconds: number().int().nonnegative().nullable(),
55428
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
55429
+ delayedStartSeconds: number().int().nonnegative().nullable(),
55368
55430
  /** Cycle completion 0..100, or null when not applicable. */
55369
55431
  progressPercent: number().min(0).max(100).nullable(),
55370
- /** True when the door is reported open. */
55371
- doorOpen: boolean(),
55372
- /** True when remote start is allowed (door closed, power on, etc.). */
55373
- remoteStartAllowed: boolean(),
55374
- /** Main power / switched-on state. */
55375
- powerOn: boolean(),
55432
+ /** True when the door is reported open; null when the door state is not known. */
55433
+ doorOpen: boolean().nullable(),
55434
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
55435
+ doorLocked: boolean().nullable(),
55436
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
55437
+ remoteStartAllowed: boolean().nullable(),
55438
+ /** True when the appliance accepts remote control now; null when not known. */
55439
+ remoteControlActive: boolean().nullable(),
55440
+ /** True while somebody operates the appliance at its panel; null when not reported. */
55441
+ localControlActive: boolean().nullable(),
55442
+ /** Main power / switched-on state; null when not known. */
55443
+ powerOn: boolean().nullable(),
55444
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55445
+ powerState: string().nullable(),
55376
55446
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55377
55447
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55378
- halfLoad: boolean(),
55379
- hygienePlus: boolean(),
55448
+ /** Option states: null when the appliance does not expose the option or has not said. */
55449
+ halfLoad: boolean().nullable(),
55450
+ hygienePlus: boolean().nullable(),
55380
55451
  /** Extra dry option when the appliance exposes it. */
55381
- extraDry: boolean(),
55452
+ extraDry: boolean().nullable(),
55382
55453
  /** Intensive zone (lower basket) when the appliance exposes it. */
55383
- intensiveZone: boolean(),
55454
+ intensiveZone: boolean().nullable(),
55384
55455
  /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
55385
- varioSpeedPlus: boolean(),
55386
- /** Child lock (controls disabled on the appliance). */
55387
- childLock: boolean(),
55456
+ varioSpeedPlus: boolean().nullable(),
55457
+ /** Child lock (controls disabled on the appliance); null when not known. */
55458
+ childLock: boolean().nullable(),
55459
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
55460
+ activeEvents: array(string()),
55461
+ /** Numeric error code when the appliance reports one; null otherwise. */
55388
55462
  errorCode: number().nullable(),
55463
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
55389
55464
  errorLabel: string().nullable(),
55465
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
55390
55466
  lastFetchedAt: number()
55391
55467
  });
55468
+ var DeviceIdSchema = number().int().nonnegative();
55469
+ /** A value a program option or setting can take. */
55470
+ var DishwasherValueSchema = union([
55471
+ boolean(),
55472
+ string(),
55473
+ number()
55474
+ ]);
55475
+ var DishwasherAccessSchema = _enum([
55476
+ "none",
55477
+ "read",
55478
+ "readWrite",
55479
+ "writeOnly",
55480
+ "readStatic"
55481
+ ]);
55482
+ /**
55483
+ * One option or setting the appliance declares, with the constraints its description
55484
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
55485
+ */
55486
+ var DishwasherOptionDescriptorSchema = object({
55487
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
55488
+ key: string(),
55489
+ /** Last segment of the key, for display. */
55490
+ name: string(),
55491
+ type: _enum([
55492
+ "boolean",
55493
+ "number",
55494
+ "enum",
55495
+ "string"
55496
+ ]),
55497
+ access: DishwasherAccessSchema,
55498
+ /** The appliance reports this entity as currently available. */
55499
+ available: boolean(),
55500
+ /** Unit the description declares for a number; null when it declares none. */
55501
+ unit: string().nullable(),
55502
+ min: number().nullable(),
55503
+ max: number().nullable(),
55504
+ step: number().nullable(),
55505
+ /** Allowed members of an enum; null for other types. */
55506
+ enumValues: array(string()).nullable(),
55507
+ defaultValue: DishwasherValueSchema.nullable()
55508
+ });
55509
+ var DishwasherProgramSchema = object({
55510
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
55511
+ key: string(),
55512
+ name: string(),
55513
+ /** The appliance currently offers this program. */
55514
+ available: boolean(),
55515
+ /** The options this program lists, with the program-level access / availability / default. */
55516
+ options: array(DishwasherOptionDescriptorSchema)
55517
+ });
55518
+ var DishwasherOptionsSchema = object({
55519
+ availability: DishwasherAvailabilitySchema,
55520
+ /** What the appliance can be told to do, from the commands its description declares. */
55521
+ supportsStart: boolean(),
55522
+ supportsPause: boolean(),
55523
+ supportsResume: boolean(),
55524
+ supportsStop: boolean(),
55525
+ supportsPower: boolean(),
55526
+ /** Every program the description lists, with its options. */
55527
+ programs: array(DishwasherProgramSchema),
55528
+ /** Every option and setting entity the description lists (programs reference these by key). */
55529
+ options: array(DishwasherOptionDescriptorSchema)
55530
+ });
55392
55531
  var dishwasherCapability = {
55393
55532
  name: "dishwasher",
55394
55533
  scope: "device",
@@ -55396,86 +55535,102 @@ var dishwasherCapability = {
55396
55535
  mode: "singleton",
55397
55536
  deviceTypes: [DeviceType.Dishwasher],
55398
55537
  methods: {
55399
- start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55538
+ /**
55539
+ * Start a program. Without `program` the selected one starts. `options` are
55540
+ * option feature keys; each is checked against the program's constraints.
55541
+ */
55542
+ start: method(object({
55543
+ deviceId: DeviceIdSchema,
55544
+ program: string().min(1).optional(),
55545
+ options: record(string(), DishwasherValueSchema).optional()
55546
+ }), _void(), {
55400
55547
  kind: "mutation",
55401
55548
  auth: "protected"
55402
55549
  }),
55403
- pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55550
+ pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
55404
55551
  kind: "mutation",
55405
55552
  auth: "protected"
55406
55553
  }),
55407
- stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55554
+ resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
55555
+ kind: "mutation",
55556
+ auth: "protected"
55557
+ }),
55558
+ stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
55408
55559
  kind: "mutation",
55409
55560
  auth: "protected"
55410
55561
  }),
55562
+ /** Select (not start) a program; refused when the appliance does not offer it. */
55411
55563
  setProgram: method(object({
55412
- deviceId: number().int().nonnegative(),
55564
+ deviceId: DeviceIdSchema,
55413
55565
  program: string().min(1)
55414
55566
  }), _void(), {
55415
55567
  kind: "mutation",
55416
55568
  auth: "protected"
55417
55569
  }),
55418
55570
  setPower: method(object({
55419
- deviceId: number().int().nonnegative(),
55571
+ deviceId: DeviceIdSchema,
55420
55572
  on: boolean()
55421
55573
  }), _void(), {
55422
55574
  kind: "mutation",
55423
55575
  auth: "protected"
55424
55576
  }),
55425
55577
  setHalfLoad: method(object({
55426
- deviceId: number().int().nonnegative(),
55578
+ deviceId: DeviceIdSchema,
55427
55579
  on: boolean()
55428
55580
  }), _void(), {
55429
55581
  kind: "mutation",
55430
55582
  auth: "protected"
55431
55583
  }),
55432
55584
  setHygienePlus: method(object({
55433
- deviceId: number().int().nonnegative(),
55585
+ deviceId: DeviceIdSchema,
55434
55586
  on: boolean()
55435
55587
  }), _void(), {
55436
55588
  kind: "mutation",
55437
55589
  auth: "protected"
55438
55590
  }),
55439
55591
  setExtraDry: method(object({
55440
- deviceId: number().int().nonnegative(),
55592
+ deviceId: DeviceIdSchema,
55441
55593
  on: boolean()
55442
55594
  }), _void(), {
55443
55595
  kind: "mutation",
55444
55596
  auth: "protected"
55445
55597
  }),
55446
55598
  setIntensiveZone: method(object({
55447
- deviceId: number().int().nonnegative(),
55599
+ deviceId: DeviceIdSchema,
55448
55600
  on: boolean()
55449
55601
  }), _void(), {
55450
55602
  kind: "mutation",
55451
55603
  auth: "protected"
55452
55604
  }),
55453
55605
  setVarioSpeedPlus: method(object({
55454
- deviceId: number().int().nonnegative(),
55606
+ deviceId: DeviceIdSchema,
55455
55607
  on: boolean()
55456
55608
  }), _void(), {
55457
55609
  kind: "mutation",
55458
55610
  auth: "protected"
55459
55611
  }),
55460
55612
  setChildLock: method(object({
55461
- deviceId: number().int().nonnegative(),
55613
+ deviceId: DeviceIdSchema,
55462
55614
  on: boolean()
55463
55615
  }), _void(), {
55464
55616
  kind: "mutation",
55465
55617
  auth: "protected"
55466
55618
  }),
55619
+ /**
55620
+ * Write any option or setting by feature key. Refused when the description does
55621
+ * not list it, it is not writable or not available now, or the value is outside
55622
+ * its declared range / members.
55623
+ */
55467
55624
  setOption: method(object({
55468
- deviceId: number().int().nonnegative(),
55625
+ deviceId: DeviceIdSchema,
55469
55626
  key: string().min(1),
55470
- value: union([
55471
- boolean(),
55472
- string(),
55473
- number()
55474
- ])
55627
+ value: DishwasherValueSchema
55475
55628
  }), _void(), {
55476
55629
  kind: "mutation",
55477
55630
  auth: "protected"
55478
- })
55631
+ }),
55632
+ /** What this appliance can do, from its own description — the UI is derived from it. */
55633
+ getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
55479
55634
  },
55480
55635
  status: {
55481
55636
  schema: DishwasherStatusSchema,
@@ -69424,6 +69579,12 @@ Object.freeze({
69424
69579
  addonId: null,
69425
69580
  access: "view"
69426
69581
  },
69582
+ "dishwasher.getOptions": {
69583
+ capName: "dishwasher",
69584
+ capScope: "device",
69585
+ addonId: null,
69586
+ access: "view"
69587
+ },
69427
69588
  "dishwasher.getStatus": {
69428
69589
  capName: "dishwasher",
69429
69590
  capScope: "device",
@@ -69436,6 +69597,12 @@ Object.freeze({
69436
69597
  addonId: null,
69437
69598
  access: "create"
69438
69599
  },
69600
+ "dishwasher.resume": {
69601
+ capName: "dishwasher",
69602
+ capScope: "device",
69603
+ addonId: null,
69604
+ access: "create"
69605
+ },
69439
69606
  "dishwasher.setChildLock": {
69440
69607
  capName: "dishwasher",
69441
69608
  capScope: "device",
@@ -73936,6 +74103,12 @@ Object.freeze({
73936
74103
  addonId: null,
73937
74104
  access: "view"
73938
74105
  },
74106
+ "storageMigration.moverClearance": {
74107
+ capName: "storage-migration",
74108
+ capScope: "system",
74109
+ addonId: null,
74110
+ access: "view"
74111
+ },
73939
74112
  "storageMigration.movers": {
73940
74113
  capName: "storage-migration",
73941
74114
  capScope: "system",
@@ -76129,6 +76302,11 @@ Object.freeze({
76129
76302
  form: "single",
76130
76303
  optional: false
76131
76304
  }],
76305
+ "dishwasher.getOptions": [{
76306
+ name: "deviceId",
76307
+ form: "single",
76308
+ optional: false
76309
+ }],
76132
76310
  "dishwasher.getStatus": [{
76133
76311
  name: "deviceId",
76134
76312
  form: "single",
@@ -76139,6 +76317,11 @@ Object.freeze({
76139
76317
  form: "single",
76140
76318
  optional: false
76141
76319
  }],
76320
+ "dishwasher.resume": [{
76321
+ name: "deviceId",
76322
+ form: "single",
76323
+ optional: false
76324
+ }],
76142
76325
  "dishwasher.setChildLock": [{
76143
76326
  name: "deviceId",
76144
76327
  form: "single",
@@ -78225,6 +78408,9 @@ new Map(Object.entries({
78225
78408
  "wrapper-update-available": "system",
78226
78409
  "backup-completed": "system",
78227
78410
  "export-completed": "system",
78411
+ "alert-critical": "system",
78412
+ "alert-error": "system",
78413
+ "alert-critical-resolved": "system",
78228
78414
  "storage-location-low": "system",
78229
78415
  "storage-location-critical": "system",
78230
78416
  "storage-location-ok": "system",
@@ -78349,6 +78535,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78349
78535
  "storage-location-ok"
78350
78536
  ]
78351
78537
  },
78538
+ {
78539
+ id: "alerts",
78540
+ family: "system",
78541
+ label: "Alerts",
78542
+ kinds: [
78543
+ "alert-critical",
78544
+ "alert-error",
78545
+ "alert-critical-resolved"
78546
+ ]
78547
+ },
78352
78548
  {
78353
78549
  id: "alarm",
78354
78550
  family: "alarm",
@@ -78393,6 +78589,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
78393
78589
  return [[descriptor.kind, field]];
78394
78590
  })));
78395
78591
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
78592
+ object({
78593
+ phase: _enum(["raised", "resolved"]),
78594
+ episodeId: string().min(1),
78595
+ alertId: string().min(1),
78596
+ severity: AlertSeveritySchema,
78597
+ category: string(),
78598
+ title: string(),
78599
+ message: string(),
78600
+ sourceType: string().optional(),
78601
+ sourceId: string().optional(),
78602
+ nodeId: string().optional(),
78603
+ /** The alert's own action link (where the operator acts on it), when it has one. */
78604
+ actionUrl: string().optional(),
78605
+ at: number()
78606
+ });
78396
78607
  var RULE_BODY_ONLY = ["body"];
78397
78608
  var RULE_TEXT = ["title", "body"];
78398
78609
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -78402,6 +78613,11 @@ var TANK = [
78402
78613
  "device-tank-full",
78403
78614
  "device-tank-normal"
78404
78615
  ];
78616
+ var ALERT_EPISODE = [
78617
+ "alert-critical",
78618
+ "alert-error",
78619
+ "alert-critical-resolved"
78620
+ ];
78405
78621
  var UPDATES = [
78406
78622
  "addon-update-available",
78407
78623
  "server-update-available",
@@ -78594,14 +78810,14 @@ var STATE_SUMMARY_VARS = [
78594
78810
  ([...RULE_TEXT], [...CONSUMABLE]),
78595
78811
  ([...RULE_TEXT], [...TANK]),
78596
78812
  [...RULE_TEXT],
78597
- ([...RULE_TEXT], [...UPDATES]),
78598
- ([...RULE_TEXT], [...UPDATES]),
78599
- [...RULE_TEXT],
78813
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78814
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78600
78815
  [...RULE_TEXT],
78601
78816
  [...RULE_TEXT],
78602
78817
  [...RULE_TEXT],
78603
78818
  [...RULE_TEXT],
78604
78819
  [...RULE_TEXT],
78820
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78605
78821
  [...RULE_TEXT],
78606
78822
  [...RULE_TEXT],
78607
78823
  [...RULE_TEXT],
@@ -78619,7 +78835,11 @@ var STATE_SUMMARY_VARS = [
78619
78835
  [...RULE_TEXT],
78620
78836
  [...RULE_TEXT],
78621
78837
  [...RULE_TEXT],
78622
- [...RULE_TEXT],
78838
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78839
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78840
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78841
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78842
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78623
78843
  [...RULE_TEXT],
78624
78844
  [...RULE_TEXT],
78625
78845
  [...RULE_TEXT],
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-BvOFi6PY.mjs
1
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
2
2
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
3
3
  EventCategory["SystemBoot"] = "system.boot";
4
4
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -77,9 +77,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
77
77
  /**
78
78
  * The node's one-shot runner boot check (D877): planned runners against the
79
79
  * process service, `degraded` when any is failed, refused or missing. The
80
- * alert centre turns it into one alert and a direct critical push.
80
+ * alert centre turns it into one critical alert.
81
81
  */
82
82
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
83
+ /**
84
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
85
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
86
+ * centre sends no notification of its own: Notification Center turns this
87
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
88
+ * system-event kinds, and reconciles from the alerts store because a bus
89
+ * event may be dropped (D8, D11).
90
+ */
91
+ EventCategory["AlertEpisode"] = "alert.episode";
83
92
  EventCategory["AddonError"] = "addon.error";
84
93
  EventCategory["AddonPageReady"] = "addon.page-ready";
85
94
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5404,7 +5413,7 @@ var ZodIssueCode = {
5404
5413
  var ZodFirstPartyTypeKind;
5405
5414
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5406
5415
  //#endregion
5407
- //#region ../types/dist/sleep-BegKjwUu.mjs
5416
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5408
5417
  /**
5409
5418
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5410
5419
  * window to float samples (D455).
@@ -13181,7 +13190,14 @@ var AlertSeveritySchema = _enum([
13181
13190
  ]);
13182
13191
  var AlertActionSchema = object({
13183
13192
  label: string(),
13184
- href: string().optional()
13193
+ href: string().optional(),
13194
+ /**
13195
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13196
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13197
+ * start) — the browser must leave the SPA with a full navigation, because
13198
+ * the SPA has no such route and would bounce to the home page.
13199
+ */
13200
+ navigation: _enum(["app", "server"]).optional()
13185
13201
  });
13186
13202
  var AlertStatusSchema = _enum([
13187
13203
  "active",
@@ -42010,6 +42026,9 @@ var NcSystemEventKindSchema = _enum([
42010
42026
  "server-updated",
42011
42027
  "export-completed",
42012
42028
  "backup-completed",
42029
+ "alert-critical",
42030
+ "alert-error",
42031
+ "alert-critical-resolved",
42013
42032
  "camera-online",
42014
42033
  "camera-offline",
42015
42034
  "camera-disabled",
@@ -51086,7 +51105,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
51086
51105
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
51087
51106
  kind: "mutation",
51088
51107
  auth: "admin"
51089
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51108
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
51109
+ clear: boolean(),
51110
+ repointLocationId: string().optional()
51111
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51090
51112
  kind: "mutation",
51091
51113
  auth: "admin"
51092
51114
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -55342,6 +55364,11 @@ onStatusChanged: { data: object({
55342
55364
  *
55343
55365
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
55344
55366
  * provider refreshes the slice on an interval and eagerly after commands.
55367
+ *
55368
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
55369
+ * nullable: `null` means "not known right now" (the appliance has not said,
55370
+ * the link is down, or the description does not carry it) and is never
55371
+ * rendered or exported as `false` / `0`. `availability` says why.
55345
55372
  */
55346
55373
  var DishwasherStateSchema = _enum([
55347
55374
  "idle",
@@ -55351,43 +55378,155 @@ var DishwasherStateSchema = _enum([
55351
55378
  "error",
55352
55379
  "unavailable"
55353
55380
  ]);
55381
+ /**
55382
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
55383
+ * view for compact surfaces; this is what the appliance said.
55384
+ */
55385
+ var DishwasherOperationStateSchema = _enum([
55386
+ "Inactive",
55387
+ "Ready",
55388
+ "DelayedStart",
55389
+ "Run",
55390
+ "Pause",
55391
+ "ActionRequired",
55392
+ "Finished",
55393
+ "Error",
55394
+ "Aborting"
55395
+ ]);
55396
+ /**
55397
+ * Why fields may be `null`:
55398
+ * - `available` — the link is up and the description is loaded;
55399
+ * - `offline` — the local link is down (values are unknown, not last-known);
55400
+ * - `description-missing` — the link is up but the appliance's description could not
55401
+ * be loaded, so its values cannot be decoded.
55402
+ */
55403
+ var DishwasherAvailabilitySchema = _enum([
55404
+ "available",
55405
+ "offline",
55406
+ "description-missing"
55407
+ ]);
55354
55408
  var DishwasherConsumableLevelSchema = _enum([
55355
55409
  "ok",
55356
55410
  "low",
55357
55411
  "empty"
55358
55412
  ]);
55359
55413
  var DishwasherStatusSchema = object({
55414
+ availability: DishwasherAvailabilitySchema,
55415
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
55360
55416
  state: DishwasherStateSchema,
55361
- /** Active program id/name, or null when none selected / unknown. */
55417
+ /** The appliance's operation state as reported; null when not known. */
55418
+ operationState: DishwasherOperationStateSchema.nullable(),
55419
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
55362
55420
  program: string().nullable(),
55363
- /** Program tokens the hardware accepts — drives the UI selector. */
55421
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
55422
+ selectedProgram: string().nullable(),
55423
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
55364
55424
  availablePrograms: array(string()),
55365
- /** Minutes remaining on the active cycle, or null when not running. */
55366
- remainingMinutes: number().int().nonnegative().nullable(),
55425
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
55426
+ remainingSeconds: number().int().nonnegative().nullable(),
55427
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
55428
+ delayedStartSeconds: number().int().nonnegative().nullable(),
55367
55429
  /** Cycle completion 0..100, or null when not applicable. */
55368
55430
  progressPercent: number().min(0).max(100).nullable(),
55369
- /** True when the door is reported open. */
55370
- doorOpen: boolean(),
55371
- /** True when remote start is allowed (door closed, power on, etc.). */
55372
- remoteStartAllowed: boolean(),
55373
- /** Main power / switched-on state. */
55374
- powerOn: boolean(),
55431
+ /** True when the door is reported open; null when the door state is not known. */
55432
+ doorOpen: boolean().nullable(),
55433
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
55434
+ doorLocked: boolean().nullable(),
55435
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
55436
+ remoteStartAllowed: boolean().nullable(),
55437
+ /** True when the appliance accepts remote control now; null when not known. */
55438
+ remoteControlActive: boolean().nullable(),
55439
+ /** True while somebody operates the appliance at its panel; null when not reported. */
55440
+ localControlActive: boolean().nullable(),
55441
+ /** Main power / switched-on state; null when not known. */
55442
+ powerOn: boolean().nullable(),
55443
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55444
+ powerState: string().nullable(),
55375
55445
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55376
55446
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55377
- halfLoad: boolean(),
55378
- hygienePlus: boolean(),
55447
+ /** Option states: null when the appliance does not expose the option or has not said. */
55448
+ halfLoad: boolean().nullable(),
55449
+ hygienePlus: boolean().nullable(),
55379
55450
  /** Extra dry option when the appliance exposes it. */
55380
- extraDry: boolean(),
55451
+ extraDry: boolean().nullable(),
55381
55452
  /** Intensive zone (lower basket) when the appliance exposes it. */
55382
- intensiveZone: boolean(),
55453
+ intensiveZone: boolean().nullable(),
55383
55454
  /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
55384
- varioSpeedPlus: boolean(),
55385
- /** Child lock (controls disabled on the appliance). */
55386
- childLock: boolean(),
55455
+ varioSpeedPlus: boolean().nullable(),
55456
+ /** Child lock (controls disabled on the appliance); null when not known. */
55457
+ childLock: boolean().nullable(),
55458
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
55459
+ activeEvents: array(string()),
55460
+ /** Numeric error code when the appliance reports one; null otherwise. */
55387
55461
  errorCode: number().nullable(),
55462
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
55388
55463
  errorLabel: string().nullable(),
55464
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
55389
55465
  lastFetchedAt: number()
55390
55466
  });
55467
+ var DeviceIdSchema = number().int().nonnegative();
55468
+ /** A value a program option or setting can take. */
55469
+ var DishwasherValueSchema = union([
55470
+ boolean(),
55471
+ string(),
55472
+ number()
55473
+ ]);
55474
+ var DishwasherAccessSchema = _enum([
55475
+ "none",
55476
+ "read",
55477
+ "readWrite",
55478
+ "writeOnly",
55479
+ "readStatic"
55480
+ ]);
55481
+ /**
55482
+ * One option or setting the appliance declares, with the constraints its description
55483
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
55484
+ */
55485
+ var DishwasherOptionDescriptorSchema = object({
55486
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
55487
+ key: string(),
55488
+ /** Last segment of the key, for display. */
55489
+ name: string(),
55490
+ type: _enum([
55491
+ "boolean",
55492
+ "number",
55493
+ "enum",
55494
+ "string"
55495
+ ]),
55496
+ access: DishwasherAccessSchema,
55497
+ /** The appliance reports this entity as currently available. */
55498
+ available: boolean(),
55499
+ /** Unit the description declares for a number; null when it declares none. */
55500
+ unit: string().nullable(),
55501
+ min: number().nullable(),
55502
+ max: number().nullable(),
55503
+ step: number().nullable(),
55504
+ /** Allowed members of an enum; null for other types. */
55505
+ enumValues: array(string()).nullable(),
55506
+ defaultValue: DishwasherValueSchema.nullable()
55507
+ });
55508
+ var DishwasherProgramSchema = object({
55509
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
55510
+ key: string(),
55511
+ name: string(),
55512
+ /** The appliance currently offers this program. */
55513
+ available: boolean(),
55514
+ /** The options this program lists, with the program-level access / availability / default. */
55515
+ options: array(DishwasherOptionDescriptorSchema)
55516
+ });
55517
+ var DishwasherOptionsSchema = object({
55518
+ availability: DishwasherAvailabilitySchema,
55519
+ /** What the appliance can be told to do, from the commands its description declares. */
55520
+ supportsStart: boolean(),
55521
+ supportsPause: boolean(),
55522
+ supportsResume: boolean(),
55523
+ supportsStop: boolean(),
55524
+ supportsPower: boolean(),
55525
+ /** Every program the description lists, with its options. */
55526
+ programs: array(DishwasherProgramSchema),
55527
+ /** Every option and setting entity the description lists (programs reference these by key). */
55528
+ options: array(DishwasherOptionDescriptorSchema)
55529
+ });
55391
55530
  var dishwasherCapability = {
55392
55531
  name: "dishwasher",
55393
55532
  scope: "device",
@@ -55395,86 +55534,102 @@ var dishwasherCapability = {
55395
55534
  mode: "singleton",
55396
55535
  deviceTypes: [DeviceType.Dishwasher],
55397
55536
  methods: {
55398
- start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55537
+ /**
55538
+ * Start a program. Without `program` the selected one starts. `options` are
55539
+ * option feature keys; each is checked against the program's constraints.
55540
+ */
55541
+ start: method(object({
55542
+ deviceId: DeviceIdSchema,
55543
+ program: string().min(1).optional(),
55544
+ options: record(string(), DishwasherValueSchema).optional()
55545
+ }), _void(), {
55399
55546
  kind: "mutation",
55400
55547
  auth: "protected"
55401
55548
  }),
55402
- pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55549
+ pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
55403
55550
  kind: "mutation",
55404
55551
  auth: "protected"
55405
55552
  }),
55406
- stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55553
+ resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
55554
+ kind: "mutation",
55555
+ auth: "protected"
55556
+ }),
55557
+ stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
55407
55558
  kind: "mutation",
55408
55559
  auth: "protected"
55409
55560
  }),
55561
+ /** Select (not start) a program; refused when the appliance does not offer it. */
55410
55562
  setProgram: method(object({
55411
- deviceId: number().int().nonnegative(),
55563
+ deviceId: DeviceIdSchema,
55412
55564
  program: string().min(1)
55413
55565
  }), _void(), {
55414
55566
  kind: "mutation",
55415
55567
  auth: "protected"
55416
55568
  }),
55417
55569
  setPower: method(object({
55418
- deviceId: number().int().nonnegative(),
55570
+ deviceId: DeviceIdSchema,
55419
55571
  on: boolean()
55420
55572
  }), _void(), {
55421
55573
  kind: "mutation",
55422
55574
  auth: "protected"
55423
55575
  }),
55424
55576
  setHalfLoad: method(object({
55425
- deviceId: number().int().nonnegative(),
55577
+ deviceId: DeviceIdSchema,
55426
55578
  on: boolean()
55427
55579
  }), _void(), {
55428
55580
  kind: "mutation",
55429
55581
  auth: "protected"
55430
55582
  }),
55431
55583
  setHygienePlus: method(object({
55432
- deviceId: number().int().nonnegative(),
55584
+ deviceId: DeviceIdSchema,
55433
55585
  on: boolean()
55434
55586
  }), _void(), {
55435
55587
  kind: "mutation",
55436
55588
  auth: "protected"
55437
55589
  }),
55438
55590
  setExtraDry: method(object({
55439
- deviceId: number().int().nonnegative(),
55591
+ deviceId: DeviceIdSchema,
55440
55592
  on: boolean()
55441
55593
  }), _void(), {
55442
55594
  kind: "mutation",
55443
55595
  auth: "protected"
55444
55596
  }),
55445
55597
  setIntensiveZone: method(object({
55446
- deviceId: number().int().nonnegative(),
55598
+ deviceId: DeviceIdSchema,
55447
55599
  on: boolean()
55448
55600
  }), _void(), {
55449
55601
  kind: "mutation",
55450
55602
  auth: "protected"
55451
55603
  }),
55452
55604
  setVarioSpeedPlus: method(object({
55453
- deviceId: number().int().nonnegative(),
55605
+ deviceId: DeviceIdSchema,
55454
55606
  on: boolean()
55455
55607
  }), _void(), {
55456
55608
  kind: "mutation",
55457
55609
  auth: "protected"
55458
55610
  }),
55459
55611
  setChildLock: method(object({
55460
- deviceId: number().int().nonnegative(),
55612
+ deviceId: DeviceIdSchema,
55461
55613
  on: boolean()
55462
55614
  }), _void(), {
55463
55615
  kind: "mutation",
55464
55616
  auth: "protected"
55465
55617
  }),
55618
+ /**
55619
+ * Write any option or setting by feature key. Refused when the description does
55620
+ * not list it, it is not writable or not available now, or the value is outside
55621
+ * its declared range / members.
55622
+ */
55466
55623
  setOption: method(object({
55467
- deviceId: number().int().nonnegative(),
55624
+ deviceId: DeviceIdSchema,
55468
55625
  key: string().min(1),
55469
- value: union([
55470
- boolean(),
55471
- string(),
55472
- number()
55473
- ])
55626
+ value: DishwasherValueSchema
55474
55627
  }), _void(), {
55475
55628
  kind: "mutation",
55476
55629
  auth: "protected"
55477
- })
55630
+ }),
55631
+ /** What this appliance can do, from its own description — the UI is derived from it. */
55632
+ getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
55478
55633
  },
55479
55634
  status: {
55480
55635
  schema: DishwasherStatusSchema,
@@ -69423,6 +69578,12 @@ Object.freeze({
69423
69578
  addonId: null,
69424
69579
  access: "view"
69425
69580
  },
69581
+ "dishwasher.getOptions": {
69582
+ capName: "dishwasher",
69583
+ capScope: "device",
69584
+ addonId: null,
69585
+ access: "view"
69586
+ },
69426
69587
  "dishwasher.getStatus": {
69427
69588
  capName: "dishwasher",
69428
69589
  capScope: "device",
@@ -69435,6 +69596,12 @@ Object.freeze({
69435
69596
  addonId: null,
69436
69597
  access: "create"
69437
69598
  },
69599
+ "dishwasher.resume": {
69600
+ capName: "dishwasher",
69601
+ capScope: "device",
69602
+ addonId: null,
69603
+ access: "create"
69604
+ },
69438
69605
  "dishwasher.setChildLock": {
69439
69606
  capName: "dishwasher",
69440
69607
  capScope: "device",
@@ -73935,6 +74102,12 @@ Object.freeze({
73935
74102
  addonId: null,
73936
74103
  access: "view"
73937
74104
  },
74105
+ "storageMigration.moverClearance": {
74106
+ capName: "storage-migration",
74107
+ capScope: "system",
74108
+ addonId: null,
74109
+ access: "view"
74110
+ },
73938
74111
  "storageMigration.movers": {
73939
74112
  capName: "storage-migration",
73940
74113
  capScope: "system",
@@ -76128,6 +76301,11 @@ Object.freeze({
76128
76301
  form: "single",
76129
76302
  optional: false
76130
76303
  }],
76304
+ "dishwasher.getOptions": [{
76305
+ name: "deviceId",
76306
+ form: "single",
76307
+ optional: false
76308
+ }],
76131
76309
  "dishwasher.getStatus": [{
76132
76310
  name: "deviceId",
76133
76311
  form: "single",
@@ -76138,6 +76316,11 @@ Object.freeze({
76138
76316
  form: "single",
76139
76317
  optional: false
76140
76318
  }],
76319
+ "dishwasher.resume": [{
76320
+ name: "deviceId",
76321
+ form: "single",
76322
+ optional: false
76323
+ }],
76141
76324
  "dishwasher.setChildLock": [{
76142
76325
  name: "deviceId",
76143
76326
  form: "single",
@@ -78224,6 +78407,9 @@ new Map(Object.entries({
78224
78407
  "wrapper-update-available": "system",
78225
78408
  "backup-completed": "system",
78226
78409
  "export-completed": "system",
78410
+ "alert-critical": "system",
78411
+ "alert-error": "system",
78412
+ "alert-critical-resolved": "system",
78227
78413
  "storage-location-low": "system",
78228
78414
  "storage-location-critical": "system",
78229
78415
  "storage-location-ok": "system",
@@ -78348,6 +78534,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78348
78534
  "storage-location-ok"
78349
78535
  ]
78350
78536
  },
78537
+ {
78538
+ id: "alerts",
78539
+ family: "system",
78540
+ label: "Alerts",
78541
+ kinds: [
78542
+ "alert-critical",
78543
+ "alert-error",
78544
+ "alert-critical-resolved"
78545
+ ]
78546
+ },
78351
78547
  {
78352
78548
  id: "alarm",
78353
78549
  family: "alarm",
@@ -78392,6 +78588,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
78392
78588
  return [[descriptor.kind, field]];
78393
78589
  })));
78394
78590
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
78591
+ object({
78592
+ phase: _enum(["raised", "resolved"]),
78593
+ episodeId: string().min(1),
78594
+ alertId: string().min(1),
78595
+ severity: AlertSeveritySchema,
78596
+ category: string(),
78597
+ title: string(),
78598
+ message: string(),
78599
+ sourceType: string().optional(),
78600
+ sourceId: string().optional(),
78601
+ nodeId: string().optional(),
78602
+ /** The alert's own action link (where the operator acts on it), when it has one. */
78603
+ actionUrl: string().optional(),
78604
+ at: number()
78605
+ });
78395
78606
  var RULE_BODY_ONLY = ["body"];
78396
78607
  var RULE_TEXT = ["title", "body"];
78397
78608
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -78401,6 +78612,11 @@ var TANK = [
78401
78612
  "device-tank-full",
78402
78613
  "device-tank-normal"
78403
78614
  ];
78615
+ var ALERT_EPISODE = [
78616
+ "alert-critical",
78617
+ "alert-error",
78618
+ "alert-critical-resolved"
78619
+ ];
78404
78620
  var UPDATES = [
78405
78621
  "addon-update-available",
78406
78622
  "server-update-available",
@@ -78593,14 +78809,14 @@ var STATE_SUMMARY_VARS = [
78593
78809
  ([...RULE_TEXT], [...CONSUMABLE]),
78594
78810
  ([...RULE_TEXT], [...TANK]),
78595
78811
  [...RULE_TEXT],
78596
- ([...RULE_TEXT], [...UPDATES]),
78597
- ([...RULE_TEXT], [...UPDATES]),
78598
- [...RULE_TEXT],
78812
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78813
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78599
78814
  [...RULE_TEXT],
78600
78815
  [...RULE_TEXT],
78601
78816
  [...RULE_TEXT],
78602
78817
  [...RULE_TEXT],
78603
78818
  [...RULE_TEXT],
78819
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78604
78820
  [...RULE_TEXT],
78605
78821
  [...RULE_TEXT],
78606
78822
  [...RULE_TEXT],
@@ -78618,7 +78834,11 @@ var STATE_SUMMARY_VARS = [
78618
78834
  [...RULE_TEXT],
78619
78835
  [...RULE_TEXT],
78620
78836
  [...RULE_TEXT],
78621
- [...RULE_TEXT],
78837
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78838
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78839
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78840
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78841
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78622
78842
  [...RULE_TEXT],
78623
78843
  [...RULE_TEXT],
78624
78844
  [...RULE_TEXT],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-velux",
3
- "version": "0.2.128",
3
+ "version": "0.2.129",
4
4
  "description": "Velux KLF-200 device-provider addon for CamStack — local-gateway window + shutter covers (positional, no tilt)",
5
5
  "keywords": [
6
6
  "camstack",