@camstack/addon-provider-homematic 1.2.138 → 1.2.139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -8,7 +8,7 @@ let http = require("http");
8
8
  let crypto$1 = require("crypto");
9
9
  let fs_promises = require("fs/promises");
10
10
  let path = require("path");
11
- //#region ../types/dist/event-category-BvOFi6PY.mjs
11
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
12
12
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
13
13
  EventCategory["SystemBoot"] = "system.boot";
14
14
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -87,9 +87,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
87
87
  /**
88
88
  * The node's one-shot runner boot check (D877): planned runners against the
89
89
  * process service, `degraded` when any is failed, refused or missing. The
90
- * alert centre turns it into one alert and a direct critical push.
90
+ * alert centre turns it into one critical alert.
91
91
  */
92
92
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
93
+ /**
94
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
95
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
96
+ * centre sends no notification of its own: Notification Center turns this
97
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
98
+ * system-event kinds, and reconciles from the alerts store because a bus
99
+ * event may be dropped (D8, D11).
100
+ */
101
+ EventCategory["AlertEpisode"] = "alert.episode";
93
102
  EventCategory["AddonError"] = "addon.error";
94
103
  EventCategory["AddonPageReady"] = "addon.page-ready";
95
104
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5547,7 +5556,7 @@ var ZodIssueCode = {
5547
5556
  var ZodFirstPartyTypeKind;
5548
5557
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5549
5558
  //#endregion
5550
- //#region ../types/dist/sleep-BegKjwUu.mjs
5559
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5551
5560
  /**
5552
5561
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5553
5562
  * window to float samples (D455).
@@ -13510,7 +13519,14 @@ var AlertSeveritySchema = _enum([
13510
13519
  ]);
13511
13520
  var AlertActionSchema = object({
13512
13521
  label: string(),
13513
- href: string().optional()
13522
+ href: string().optional(),
13523
+ /**
13524
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13525
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13526
+ * start) — the browser must leave the SPA with a full navigation, because
13527
+ * the SPA has no such route and would bounce to the home page.
13528
+ */
13529
+ navigation: _enum(["app", "server"]).optional()
13514
13530
  });
13515
13531
  var AlertStatusSchema = _enum([
13516
13532
  "active",
@@ -42405,6 +42421,9 @@ var NcSystemEventKindSchema = _enum([
42405
42421
  "server-updated",
42406
42422
  "export-completed",
42407
42423
  "backup-completed",
42424
+ "alert-critical",
42425
+ "alert-error",
42426
+ "alert-critical-resolved",
42408
42427
  "camera-online",
42409
42428
  "camera-offline",
42410
42429
  "camera-disabled",
@@ -51481,7 +51500,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
51481
51500
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
51482
51501
  kind: "mutation",
51483
51502
  auth: "admin"
51484
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51503
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
51504
+ clear: boolean(),
51505
+ repointLocationId: string().optional()
51506
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51485
51507
  kind: "mutation",
51486
51508
  auth: "admin"
51487
51509
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -55737,6 +55759,11 @@ onStatusChanged: { data: object({
55737
55759
  *
55738
55760
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
55739
55761
  * provider refreshes the slice on an interval and eagerly after commands.
55762
+ *
55763
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
55764
+ * nullable: `null` means "not known right now" (the appliance has not said,
55765
+ * the link is down, or the description does not carry it) and is never
55766
+ * rendered or exported as `false` / `0`. `availability` says why.
55740
55767
  */
55741
55768
  var DishwasherStateSchema = _enum([
55742
55769
  "idle",
@@ -55746,43 +55773,155 @@ var DishwasherStateSchema = _enum([
55746
55773
  "error",
55747
55774
  "unavailable"
55748
55775
  ]);
55776
+ /**
55777
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
55778
+ * view for compact surfaces; this is what the appliance said.
55779
+ */
55780
+ var DishwasherOperationStateSchema = _enum([
55781
+ "Inactive",
55782
+ "Ready",
55783
+ "DelayedStart",
55784
+ "Run",
55785
+ "Pause",
55786
+ "ActionRequired",
55787
+ "Finished",
55788
+ "Error",
55789
+ "Aborting"
55790
+ ]);
55791
+ /**
55792
+ * Why fields may be `null`:
55793
+ * - `available` — the link is up and the description is loaded;
55794
+ * - `offline` — the local link is down (values are unknown, not last-known);
55795
+ * - `description-missing` — the link is up but the appliance's description could not
55796
+ * be loaded, so its values cannot be decoded.
55797
+ */
55798
+ var DishwasherAvailabilitySchema = _enum([
55799
+ "available",
55800
+ "offline",
55801
+ "description-missing"
55802
+ ]);
55749
55803
  var DishwasherConsumableLevelSchema = _enum([
55750
55804
  "ok",
55751
55805
  "low",
55752
55806
  "empty"
55753
55807
  ]);
55754
55808
  var DishwasherStatusSchema = object({
55809
+ availability: DishwasherAvailabilitySchema,
55810
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
55755
55811
  state: DishwasherStateSchema,
55756
- /** Active program id/name, or null when none selected / unknown. */
55812
+ /** The appliance's operation state as reported; null when not known. */
55813
+ operationState: DishwasherOperationStateSchema.nullable(),
55814
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
55757
55815
  program: string().nullable(),
55758
- /** Program tokens the hardware accepts — drives the UI selector. */
55816
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
55817
+ selectedProgram: string().nullable(),
55818
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
55759
55819
  availablePrograms: array(string()),
55760
- /** Minutes remaining on the active cycle, or null when not running. */
55761
- remainingMinutes: number().int().nonnegative().nullable(),
55820
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
55821
+ remainingSeconds: number().int().nonnegative().nullable(),
55822
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
55823
+ delayedStartSeconds: number().int().nonnegative().nullable(),
55762
55824
  /** Cycle completion 0..100, or null when not applicable. */
55763
55825
  progressPercent: number().min(0).max(100).nullable(),
55764
- /** True when the door is reported open. */
55765
- doorOpen: boolean(),
55766
- /** True when remote start is allowed (door closed, power on, etc.). */
55767
- remoteStartAllowed: boolean(),
55768
- /** Main power / switched-on state. */
55769
- powerOn: boolean(),
55826
+ /** True when the door is reported open; null when the door state is not known. */
55827
+ doorOpen: boolean().nullable(),
55828
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
55829
+ doorLocked: boolean().nullable(),
55830
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
55831
+ remoteStartAllowed: boolean().nullable(),
55832
+ /** True when the appliance accepts remote control now; null when not known. */
55833
+ remoteControlActive: boolean().nullable(),
55834
+ /** True while somebody operates the appliance at its panel; null when not reported. */
55835
+ localControlActive: boolean().nullable(),
55836
+ /** Main power / switched-on state; null when not known. */
55837
+ powerOn: boolean().nullable(),
55838
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55839
+ powerState: string().nullable(),
55770
55840
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55771
55841
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55772
- halfLoad: boolean(),
55773
- hygienePlus: boolean(),
55842
+ /** Option states: null when the appliance does not expose the option or has not said. */
55843
+ halfLoad: boolean().nullable(),
55844
+ hygienePlus: boolean().nullable(),
55774
55845
  /** Extra dry option when the appliance exposes it. */
55775
- extraDry: boolean(),
55846
+ extraDry: boolean().nullable(),
55776
55847
  /** Intensive zone (lower basket) when the appliance exposes it. */
55777
- intensiveZone: boolean(),
55848
+ intensiveZone: boolean().nullable(),
55778
55849
  /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
55779
- varioSpeedPlus: boolean(),
55780
- /** Child lock (controls disabled on the appliance). */
55781
- childLock: boolean(),
55850
+ varioSpeedPlus: boolean().nullable(),
55851
+ /** Child lock (controls disabled on the appliance); null when not known. */
55852
+ childLock: boolean().nullable(),
55853
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
55854
+ activeEvents: array(string()),
55855
+ /** Numeric error code when the appliance reports one; null otherwise. */
55782
55856
  errorCode: number().nullable(),
55857
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
55783
55858
  errorLabel: string().nullable(),
55859
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
55784
55860
  lastFetchedAt: number()
55785
55861
  });
55862
+ var DeviceIdSchema = number().int().nonnegative();
55863
+ /** A value a program option or setting can take. */
55864
+ var DishwasherValueSchema = union([
55865
+ boolean(),
55866
+ string(),
55867
+ number()
55868
+ ]);
55869
+ var DishwasherAccessSchema = _enum([
55870
+ "none",
55871
+ "read",
55872
+ "readWrite",
55873
+ "writeOnly",
55874
+ "readStatic"
55875
+ ]);
55876
+ /**
55877
+ * One option or setting the appliance declares, with the constraints its description
55878
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
55879
+ */
55880
+ var DishwasherOptionDescriptorSchema = object({
55881
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
55882
+ key: string(),
55883
+ /** Last segment of the key, for display. */
55884
+ name: string(),
55885
+ type: _enum([
55886
+ "boolean",
55887
+ "number",
55888
+ "enum",
55889
+ "string"
55890
+ ]),
55891
+ access: DishwasherAccessSchema,
55892
+ /** The appliance reports this entity as currently available. */
55893
+ available: boolean(),
55894
+ /** Unit the description declares for a number; null when it declares none. */
55895
+ unit: string().nullable(),
55896
+ min: number().nullable(),
55897
+ max: number().nullable(),
55898
+ step: number().nullable(),
55899
+ /** Allowed members of an enum; null for other types. */
55900
+ enumValues: array(string()).nullable(),
55901
+ defaultValue: DishwasherValueSchema.nullable()
55902
+ });
55903
+ var DishwasherProgramSchema = object({
55904
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
55905
+ key: string(),
55906
+ name: string(),
55907
+ /** The appliance currently offers this program. */
55908
+ available: boolean(),
55909
+ /** The options this program lists, with the program-level access / availability / default. */
55910
+ options: array(DishwasherOptionDescriptorSchema)
55911
+ });
55912
+ var DishwasherOptionsSchema = object({
55913
+ availability: DishwasherAvailabilitySchema,
55914
+ /** What the appliance can be told to do, from the commands its description declares. */
55915
+ supportsStart: boolean(),
55916
+ supportsPause: boolean(),
55917
+ supportsResume: boolean(),
55918
+ supportsStop: boolean(),
55919
+ supportsPower: boolean(),
55920
+ /** Every program the description lists, with its options. */
55921
+ programs: array(DishwasherProgramSchema),
55922
+ /** Every option and setting entity the description lists (programs reference these by key). */
55923
+ options: array(DishwasherOptionDescriptorSchema)
55924
+ });
55786
55925
  var dishwasherCapability = {
55787
55926
  name: "dishwasher",
55788
55927
  scope: "device",
@@ -55790,86 +55929,102 @@ var dishwasherCapability = {
55790
55929
  mode: "singleton",
55791
55930
  deviceTypes: [DeviceType.Dishwasher],
55792
55931
  methods: {
55793
- start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55932
+ /**
55933
+ * Start a program. Without `program` the selected one starts. `options` are
55934
+ * option feature keys; each is checked against the program's constraints.
55935
+ */
55936
+ start: method(object({
55937
+ deviceId: DeviceIdSchema,
55938
+ program: string().min(1).optional(),
55939
+ options: record(string(), DishwasherValueSchema).optional()
55940
+ }), _void(), {
55794
55941
  kind: "mutation",
55795
55942
  auth: "protected"
55796
55943
  }),
55797
- pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55944
+ pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
55798
55945
  kind: "mutation",
55799
55946
  auth: "protected"
55800
55947
  }),
55801
- stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55948
+ resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
55949
+ kind: "mutation",
55950
+ auth: "protected"
55951
+ }),
55952
+ stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
55802
55953
  kind: "mutation",
55803
55954
  auth: "protected"
55804
55955
  }),
55956
+ /** Select (not start) a program; refused when the appliance does not offer it. */
55805
55957
  setProgram: method(object({
55806
- deviceId: number().int().nonnegative(),
55958
+ deviceId: DeviceIdSchema,
55807
55959
  program: string().min(1)
55808
55960
  }), _void(), {
55809
55961
  kind: "mutation",
55810
55962
  auth: "protected"
55811
55963
  }),
55812
55964
  setPower: method(object({
55813
- deviceId: number().int().nonnegative(),
55965
+ deviceId: DeviceIdSchema,
55814
55966
  on: boolean()
55815
55967
  }), _void(), {
55816
55968
  kind: "mutation",
55817
55969
  auth: "protected"
55818
55970
  }),
55819
55971
  setHalfLoad: method(object({
55820
- deviceId: number().int().nonnegative(),
55972
+ deviceId: DeviceIdSchema,
55821
55973
  on: boolean()
55822
55974
  }), _void(), {
55823
55975
  kind: "mutation",
55824
55976
  auth: "protected"
55825
55977
  }),
55826
55978
  setHygienePlus: method(object({
55827
- deviceId: number().int().nonnegative(),
55979
+ deviceId: DeviceIdSchema,
55828
55980
  on: boolean()
55829
55981
  }), _void(), {
55830
55982
  kind: "mutation",
55831
55983
  auth: "protected"
55832
55984
  }),
55833
55985
  setExtraDry: method(object({
55834
- deviceId: number().int().nonnegative(),
55986
+ deviceId: DeviceIdSchema,
55835
55987
  on: boolean()
55836
55988
  }), _void(), {
55837
55989
  kind: "mutation",
55838
55990
  auth: "protected"
55839
55991
  }),
55840
55992
  setIntensiveZone: method(object({
55841
- deviceId: number().int().nonnegative(),
55993
+ deviceId: DeviceIdSchema,
55842
55994
  on: boolean()
55843
55995
  }), _void(), {
55844
55996
  kind: "mutation",
55845
55997
  auth: "protected"
55846
55998
  }),
55847
55999
  setVarioSpeedPlus: method(object({
55848
- deviceId: number().int().nonnegative(),
56000
+ deviceId: DeviceIdSchema,
55849
56001
  on: boolean()
55850
56002
  }), _void(), {
55851
56003
  kind: "mutation",
55852
56004
  auth: "protected"
55853
56005
  }),
55854
56006
  setChildLock: method(object({
55855
- deviceId: number().int().nonnegative(),
56007
+ deviceId: DeviceIdSchema,
55856
56008
  on: boolean()
55857
56009
  }), _void(), {
55858
56010
  kind: "mutation",
55859
56011
  auth: "protected"
55860
56012
  }),
56013
+ /**
56014
+ * Write any option or setting by feature key. Refused when the description does
56015
+ * not list it, it is not writable or not available now, or the value is outside
56016
+ * its declared range / members.
56017
+ */
55861
56018
  setOption: method(object({
55862
- deviceId: number().int().nonnegative(),
56019
+ deviceId: DeviceIdSchema,
55863
56020
  key: string().min(1),
55864
- value: union([
55865
- boolean(),
55866
- string(),
55867
- number()
55868
- ])
56021
+ value: DishwasherValueSchema
55869
56022
  }), _void(), {
55870
56023
  kind: "mutation",
55871
56024
  auth: "protected"
55872
- })
56025
+ }),
56026
+ /** What this appliance can do, from its own description — the UI is derived from it. */
56027
+ getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
55873
56028
  },
55874
56029
  status: {
55875
56030
  schema: DishwasherStatusSchema,
@@ -69818,6 +69973,12 @@ Object.freeze({
69818
69973
  addonId: null,
69819
69974
  access: "view"
69820
69975
  },
69976
+ "dishwasher.getOptions": {
69977
+ capName: "dishwasher",
69978
+ capScope: "device",
69979
+ addonId: null,
69980
+ access: "view"
69981
+ },
69821
69982
  "dishwasher.getStatus": {
69822
69983
  capName: "dishwasher",
69823
69984
  capScope: "device",
@@ -69830,6 +69991,12 @@ Object.freeze({
69830
69991
  addonId: null,
69831
69992
  access: "create"
69832
69993
  },
69994
+ "dishwasher.resume": {
69995
+ capName: "dishwasher",
69996
+ capScope: "device",
69997
+ addonId: null,
69998
+ access: "create"
69999
+ },
69833
70000
  "dishwasher.setChildLock": {
69834
70001
  capName: "dishwasher",
69835
70002
  capScope: "device",
@@ -74330,6 +74497,12 @@ Object.freeze({
74330
74497
  addonId: null,
74331
74498
  access: "view"
74332
74499
  },
74500
+ "storageMigration.moverClearance": {
74501
+ capName: "storage-migration",
74502
+ capScope: "system",
74503
+ addonId: null,
74504
+ access: "view"
74505
+ },
74333
74506
  "storageMigration.movers": {
74334
74507
  capName: "storage-migration",
74335
74508
  capScope: "system",
@@ -76523,6 +76696,11 @@ Object.freeze({
76523
76696
  form: "single",
76524
76697
  optional: false
76525
76698
  }],
76699
+ "dishwasher.getOptions": [{
76700
+ name: "deviceId",
76701
+ form: "single",
76702
+ optional: false
76703
+ }],
76526
76704
  "dishwasher.getStatus": [{
76527
76705
  name: "deviceId",
76528
76706
  form: "single",
@@ -76533,6 +76711,11 @@ Object.freeze({
76533
76711
  form: "single",
76534
76712
  optional: false
76535
76713
  }],
76714
+ "dishwasher.resume": [{
76715
+ name: "deviceId",
76716
+ form: "single",
76717
+ optional: false
76718
+ }],
76536
76719
  "dishwasher.setChildLock": [{
76537
76720
  name: "deviceId",
76538
76721
  form: "single",
@@ -78619,6 +78802,9 @@ new Map(Object.entries({
78619
78802
  "wrapper-update-available": "system",
78620
78803
  "backup-completed": "system",
78621
78804
  "export-completed": "system",
78805
+ "alert-critical": "system",
78806
+ "alert-error": "system",
78807
+ "alert-critical-resolved": "system",
78622
78808
  "storage-location-low": "system",
78623
78809
  "storage-location-critical": "system",
78624
78810
  "storage-location-ok": "system",
@@ -78743,6 +78929,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78743
78929
  "storage-location-ok"
78744
78930
  ]
78745
78931
  },
78932
+ {
78933
+ id: "alerts",
78934
+ family: "system",
78935
+ label: "Alerts",
78936
+ kinds: [
78937
+ "alert-critical",
78938
+ "alert-error",
78939
+ "alert-critical-resolved"
78940
+ ]
78941
+ },
78746
78942
  {
78747
78943
  id: "alarm",
78748
78944
  family: "alarm",
@@ -78787,6 +78983,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
78787
78983
  return [[descriptor.kind, field]];
78788
78984
  })));
78789
78985
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
78986
+ object({
78987
+ phase: _enum(["raised", "resolved"]),
78988
+ episodeId: string().min(1),
78989
+ alertId: string().min(1),
78990
+ severity: AlertSeveritySchema,
78991
+ category: string(),
78992
+ title: string(),
78993
+ message: string(),
78994
+ sourceType: string().optional(),
78995
+ sourceId: string().optional(),
78996
+ nodeId: string().optional(),
78997
+ /** The alert's own action link (where the operator acts on it), when it has one. */
78998
+ actionUrl: string().optional(),
78999
+ at: number()
79000
+ });
78790
79001
  var RULE_BODY_ONLY = ["body"];
78791
79002
  var RULE_TEXT = ["title", "body"];
78792
79003
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -78796,6 +79007,11 @@ var TANK = [
78796
79007
  "device-tank-full",
78797
79008
  "device-tank-normal"
78798
79009
  ];
79010
+ var ALERT_EPISODE = [
79011
+ "alert-critical",
79012
+ "alert-error",
79013
+ "alert-critical-resolved"
79014
+ ];
78799
79015
  var UPDATES = [
78800
79016
  "addon-update-available",
78801
79017
  "server-update-available",
@@ -78988,14 +79204,14 @@ var STATE_SUMMARY_VARS = [
78988
79204
  ([...RULE_TEXT], [...CONSUMABLE]),
78989
79205
  ([...RULE_TEXT], [...TANK]),
78990
79206
  [...RULE_TEXT],
78991
- ([...RULE_TEXT], [...UPDATES]),
78992
- ([...RULE_TEXT], [...UPDATES]),
78993
- [...RULE_TEXT],
79207
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
79208
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78994
79209
  [...RULE_TEXT],
78995
79210
  [...RULE_TEXT],
78996
79211
  [...RULE_TEXT],
78997
79212
  [...RULE_TEXT],
78998
79213
  [...RULE_TEXT],
79214
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78999
79215
  [...RULE_TEXT],
79000
79216
  [...RULE_TEXT],
79001
79217
  [...RULE_TEXT],
@@ -79013,7 +79229,11 @@ var STATE_SUMMARY_VARS = [
79013
79229
  [...RULE_TEXT],
79014
79230
  [...RULE_TEXT],
79015
79231
  [...RULE_TEXT],
79016
- [...RULE_TEXT],
79232
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79233
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79234
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79235
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79236
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79017
79237
  [...RULE_TEXT],
79018
79238
  [...RULE_TEXT],
79019
79239
  [...RULE_TEXT],
package/dist/addon.mjs CHANGED
@@ -9,7 +9,7 @@ import { join } from "path";
9
9
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
10
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
11
11
  //#endregion
12
- //#region ../types/dist/event-category-BvOFi6PY.mjs
12
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
13
13
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  EventCategory["SystemBoot"] = "system.boot";
15
15
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -88,9 +88,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
88
88
  /**
89
89
  * The node's one-shot runner boot check (D877): planned runners against the
90
90
  * process service, `degraded` when any is failed, refused or missing. The
91
- * alert centre turns it into one alert and a direct critical push.
91
+ * alert centre turns it into one critical alert.
92
92
  */
93
93
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
94
+ /**
95
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
96
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
97
+ * centre sends no notification of its own: Notification Center turns this
98
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
99
+ * system-event kinds, and reconciles from the alerts store because a bus
100
+ * event may be dropped (D8, D11).
101
+ */
102
+ EventCategory["AlertEpisode"] = "alert.episode";
94
103
  EventCategory["AddonError"] = "addon.error";
95
104
  EventCategory["AddonPageReady"] = "addon.page-ready";
96
105
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5548,7 +5557,7 @@ var ZodIssueCode = {
5548
5557
  var ZodFirstPartyTypeKind;
5549
5558
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5550
5559
  //#endregion
5551
- //#region ../types/dist/sleep-BegKjwUu.mjs
5560
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5552
5561
  /**
5553
5562
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5554
5563
  * window to float samples (D455).
@@ -13511,7 +13520,14 @@ var AlertSeveritySchema = _enum([
13511
13520
  ]);
13512
13521
  var AlertActionSchema = object({
13513
13522
  label: string(),
13514
- href: string().optional()
13523
+ href: string().optional(),
13524
+ /**
13525
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13526
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13527
+ * start) — the browser must leave the SPA with a full navigation, because
13528
+ * the SPA has no such route and would bounce to the home page.
13529
+ */
13530
+ navigation: _enum(["app", "server"]).optional()
13515
13531
  });
13516
13532
  var AlertStatusSchema = _enum([
13517
13533
  "active",
@@ -42406,6 +42422,9 @@ var NcSystemEventKindSchema = _enum([
42406
42422
  "server-updated",
42407
42423
  "export-completed",
42408
42424
  "backup-completed",
42425
+ "alert-critical",
42426
+ "alert-error",
42427
+ "alert-critical-resolved",
42409
42428
  "camera-online",
42410
42429
  "camera-offline",
42411
42430
  "camera-disabled",
@@ -51482,7 +51501,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
51482
51501
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
51483
51502
  kind: "mutation",
51484
51503
  auth: "admin"
51485
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51504
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
51505
+ clear: boolean(),
51506
+ repointLocationId: string().optional()
51507
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51486
51508
  kind: "mutation",
51487
51509
  auth: "admin"
51488
51510
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -55738,6 +55760,11 @@ onStatusChanged: { data: object({
55738
55760
  *
55739
55761
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
55740
55762
  * provider refreshes the slice on an interval and eagerly after commands.
55763
+ *
55764
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
55765
+ * nullable: `null` means "not known right now" (the appliance has not said,
55766
+ * the link is down, or the description does not carry it) and is never
55767
+ * rendered or exported as `false` / `0`. `availability` says why.
55741
55768
  */
55742
55769
  var DishwasherStateSchema = _enum([
55743
55770
  "idle",
@@ -55747,43 +55774,155 @@ var DishwasherStateSchema = _enum([
55747
55774
  "error",
55748
55775
  "unavailable"
55749
55776
  ]);
55777
+ /**
55778
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
55779
+ * view for compact surfaces; this is what the appliance said.
55780
+ */
55781
+ var DishwasherOperationStateSchema = _enum([
55782
+ "Inactive",
55783
+ "Ready",
55784
+ "DelayedStart",
55785
+ "Run",
55786
+ "Pause",
55787
+ "ActionRequired",
55788
+ "Finished",
55789
+ "Error",
55790
+ "Aborting"
55791
+ ]);
55792
+ /**
55793
+ * Why fields may be `null`:
55794
+ * - `available` — the link is up and the description is loaded;
55795
+ * - `offline` — the local link is down (values are unknown, not last-known);
55796
+ * - `description-missing` — the link is up but the appliance's description could not
55797
+ * be loaded, so its values cannot be decoded.
55798
+ */
55799
+ var DishwasherAvailabilitySchema = _enum([
55800
+ "available",
55801
+ "offline",
55802
+ "description-missing"
55803
+ ]);
55750
55804
  var DishwasherConsumableLevelSchema = _enum([
55751
55805
  "ok",
55752
55806
  "low",
55753
55807
  "empty"
55754
55808
  ]);
55755
55809
  var DishwasherStatusSchema = object({
55810
+ availability: DishwasherAvailabilitySchema,
55811
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
55756
55812
  state: DishwasherStateSchema,
55757
- /** Active program id/name, or null when none selected / unknown. */
55813
+ /** The appliance's operation state as reported; null when not known. */
55814
+ operationState: DishwasherOperationStateSchema.nullable(),
55815
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
55758
55816
  program: string().nullable(),
55759
- /** Program tokens the hardware accepts — drives the UI selector. */
55817
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
55818
+ selectedProgram: string().nullable(),
55819
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
55760
55820
  availablePrograms: array(string()),
55761
- /** Minutes remaining on the active cycle, or null when not running. */
55762
- remainingMinutes: number().int().nonnegative().nullable(),
55821
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
55822
+ remainingSeconds: number().int().nonnegative().nullable(),
55823
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
55824
+ delayedStartSeconds: number().int().nonnegative().nullable(),
55763
55825
  /** Cycle completion 0..100, or null when not applicable. */
55764
55826
  progressPercent: number().min(0).max(100).nullable(),
55765
- /** True when the door is reported open. */
55766
- doorOpen: boolean(),
55767
- /** True when remote start is allowed (door closed, power on, etc.). */
55768
- remoteStartAllowed: boolean(),
55769
- /** Main power / switched-on state. */
55770
- powerOn: boolean(),
55827
+ /** True when the door is reported open; null when the door state is not known. */
55828
+ doorOpen: boolean().nullable(),
55829
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
55830
+ doorLocked: boolean().nullable(),
55831
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
55832
+ remoteStartAllowed: boolean().nullable(),
55833
+ /** True when the appliance accepts remote control now; null when not known. */
55834
+ remoteControlActive: boolean().nullable(),
55835
+ /** True while somebody operates the appliance at its panel; null when not reported. */
55836
+ localControlActive: boolean().nullable(),
55837
+ /** Main power / switched-on state; null when not known. */
55838
+ powerOn: boolean().nullable(),
55839
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55840
+ powerState: string().nullable(),
55771
55841
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55772
55842
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55773
- halfLoad: boolean(),
55774
- hygienePlus: boolean(),
55843
+ /** Option states: null when the appliance does not expose the option or has not said. */
55844
+ halfLoad: boolean().nullable(),
55845
+ hygienePlus: boolean().nullable(),
55775
55846
  /** Extra dry option when the appliance exposes it. */
55776
- extraDry: boolean(),
55847
+ extraDry: boolean().nullable(),
55777
55848
  /** Intensive zone (lower basket) when the appliance exposes it. */
55778
- intensiveZone: boolean(),
55849
+ intensiveZone: boolean().nullable(),
55779
55850
  /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
55780
- varioSpeedPlus: boolean(),
55781
- /** Child lock (controls disabled on the appliance). */
55782
- childLock: boolean(),
55851
+ varioSpeedPlus: boolean().nullable(),
55852
+ /** Child lock (controls disabled on the appliance); null when not known. */
55853
+ childLock: boolean().nullable(),
55854
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
55855
+ activeEvents: array(string()),
55856
+ /** Numeric error code when the appliance reports one; null otherwise. */
55783
55857
  errorCode: number().nullable(),
55858
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
55784
55859
  errorLabel: string().nullable(),
55860
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
55785
55861
  lastFetchedAt: number()
55786
55862
  });
55863
+ var DeviceIdSchema = number().int().nonnegative();
55864
+ /** A value a program option or setting can take. */
55865
+ var DishwasherValueSchema = union([
55866
+ boolean(),
55867
+ string(),
55868
+ number()
55869
+ ]);
55870
+ var DishwasherAccessSchema = _enum([
55871
+ "none",
55872
+ "read",
55873
+ "readWrite",
55874
+ "writeOnly",
55875
+ "readStatic"
55876
+ ]);
55877
+ /**
55878
+ * One option or setting the appliance declares, with the constraints its description
55879
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
55880
+ */
55881
+ var DishwasherOptionDescriptorSchema = object({
55882
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
55883
+ key: string(),
55884
+ /** Last segment of the key, for display. */
55885
+ name: string(),
55886
+ type: _enum([
55887
+ "boolean",
55888
+ "number",
55889
+ "enum",
55890
+ "string"
55891
+ ]),
55892
+ access: DishwasherAccessSchema,
55893
+ /** The appliance reports this entity as currently available. */
55894
+ available: boolean(),
55895
+ /** Unit the description declares for a number; null when it declares none. */
55896
+ unit: string().nullable(),
55897
+ min: number().nullable(),
55898
+ max: number().nullable(),
55899
+ step: number().nullable(),
55900
+ /** Allowed members of an enum; null for other types. */
55901
+ enumValues: array(string()).nullable(),
55902
+ defaultValue: DishwasherValueSchema.nullable()
55903
+ });
55904
+ var DishwasherProgramSchema = object({
55905
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
55906
+ key: string(),
55907
+ name: string(),
55908
+ /** The appliance currently offers this program. */
55909
+ available: boolean(),
55910
+ /** The options this program lists, with the program-level access / availability / default. */
55911
+ options: array(DishwasherOptionDescriptorSchema)
55912
+ });
55913
+ var DishwasherOptionsSchema = object({
55914
+ availability: DishwasherAvailabilitySchema,
55915
+ /** What the appliance can be told to do, from the commands its description declares. */
55916
+ supportsStart: boolean(),
55917
+ supportsPause: boolean(),
55918
+ supportsResume: boolean(),
55919
+ supportsStop: boolean(),
55920
+ supportsPower: boolean(),
55921
+ /** Every program the description lists, with its options. */
55922
+ programs: array(DishwasherProgramSchema),
55923
+ /** Every option and setting entity the description lists (programs reference these by key). */
55924
+ options: array(DishwasherOptionDescriptorSchema)
55925
+ });
55787
55926
  var dishwasherCapability = {
55788
55927
  name: "dishwasher",
55789
55928
  scope: "device",
@@ -55791,86 +55930,102 @@ var dishwasherCapability = {
55791
55930
  mode: "singleton",
55792
55931
  deviceTypes: [DeviceType.Dishwasher],
55793
55932
  methods: {
55794
- start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55933
+ /**
55934
+ * Start a program. Without `program` the selected one starts. `options` are
55935
+ * option feature keys; each is checked against the program's constraints.
55936
+ */
55937
+ start: method(object({
55938
+ deviceId: DeviceIdSchema,
55939
+ program: string().min(1).optional(),
55940
+ options: record(string(), DishwasherValueSchema).optional()
55941
+ }), _void(), {
55795
55942
  kind: "mutation",
55796
55943
  auth: "protected"
55797
55944
  }),
55798
- pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55945
+ pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
55799
55946
  kind: "mutation",
55800
55947
  auth: "protected"
55801
55948
  }),
55802
- stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55949
+ resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
55950
+ kind: "mutation",
55951
+ auth: "protected"
55952
+ }),
55953
+ stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
55803
55954
  kind: "mutation",
55804
55955
  auth: "protected"
55805
55956
  }),
55957
+ /** Select (not start) a program; refused when the appliance does not offer it. */
55806
55958
  setProgram: method(object({
55807
- deviceId: number().int().nonnegative(),
55959
+ deviceId: DeviceIdSchema,
55808
55960
  program: string().min(1)
55809
55961
  }), _void(), {
55810
55962
  kind: "mutation",
55811
55963
  auth: "protected"
55812
55964
  }),
55813
55965
  setPower: method(object({
55814
- deviceId: number().int().nonnegative(),
55966
+ deviceId: DeviceIdSchema,
55815
55967
  on: boolean()
55816
55968
  }), _void(), {
55817
55969
  kind: "mutation",
55818
55970
  auth: "protected"
55819
55971
  }),
55820
55972
  setHalfLoad: method(object({
55821
- deviceId: number().int().nonnegative(),
55973
+ deviceId: DeviceIdSchema,
55822
55974
  on: boolean()
55823
55975
  }), _void(), {
55824
55976
  kind: "mutation",
55825
55977
  auth: "protected"
55826
55978
  }),
55827
55979
  setHygienePlus: method(object({
55828
- deviceId: number().int().nonnegative(),
55980
+ deviceId: DeviceIdSchema,
55829
55981
  on: boolean()
55830
55982
  }), _void(), {
55831
55983
  kind: "mutation",
55832
55984
  auth: "protected"
55833
55985
  }),
55834
55986
  setExtraDry: method(object({
55835
- deviceId: number().int().nonnegative(),
55987
+ deviceId: DeviceIdSchema,
55836
55988
  on: boolean()
55837
55989
  }), _void(), {
55838
55990
  kind: "mutation",
55839
55991
  auth: "protected"
55840
55992
  }),
55841
55993
  setIntensiveZone: method(object({
55842
- deviceId: number().int().nonnegative(),
55994
+ deviceId: DeviceIdSchema,
55843
55995
  on: boolean()
55844
55996
  }), _void(), {
55845
55997
  kind: "mutation",
55846
55998
  auth: "protected"
55847
55999
  }),
55848
56000
  setVarioSpeedPlus: method(object({
55849
- deviceId: number().int().nonnegative(),
56001
+ deviceId: DeviceIdSchema,
55850
56002
  on: boolean()
55851
56003
  }), _void(), {
55852
56004
  kind: "mutation",
55853
56005
  auth: "protected"
55854
56006
  }),
55855
56007
  setChildLock: method(object({
55856
- deviceId: number().int().nonnegative(),
56008
+ deviceId: DeviceIdSchema,
55857
56009
  on: boolean()
55858
56010
  }), _void(), {
55859
56011
  kind: "mutation",
55860
56012
  auth: "protected"
55861
56013
  }),
56014
+ /**
56015
+ * Write any option or setting by feature key. Refused when the description does
56016
+ * not list it, it is not writable or not available now, or the value is outside
56017
+ * its declared range / members.
56018
+ */
55862
56019
  setOption: method(object({
55863
- deviceId: number().int().nonnegative(),
56020
+ deviceId: DeviceIdSchema,
55864
56021
  key: string().min(1),
55865
- value: union([
55866
- boolean(),
55867
- string(),
55868
- number()
55869
- ])
56022
+ value: DishwasherValueSchema
55870
56023
  }), _void(), {
55871
56024
  kind: "mutation",
55872
56025
  auth: "protected"
55873
- })
56026
+ }),
56027
+ /** What this appliance can do, from its own description — the UI is derived from it. */
56028
+ getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
55874
56029
  },
55875
56030
  status: {
55876
56031
  schema: DishwasherStatusSchema,
@@ -69819,6 +69974,12 @@ Object.freeze({
69819
69974
  addonId: null,
69820
69975
  access: "view"
69821
69976
  },
69977
+ "dishwasher.getOptions": {
69978
+ capName: "dishwasher",
69979
+ capScope: "device",
69980
+ addonId: null,
69981
+ access: "view"
69982
+ },
69822
69983
  "dishwasher.getStatus": {
69823
69984
  capName: "dishwasher",
69824
69985
  capScope: "device",
@@ -69831,6 +69992,12 @@ Object.freeze({
69831
69992
  addonId: null,
69832
69993
  access: "create"
69833
69994
  },
69995
+ "dishwasher.resume": {
69996
+ capName: "dishwasher",
69997
+ capScope: "device",
69998
+ addonId: null,
69999
+ access: "create"
70000
+ },
69834
70001
  "dishwasher.setChildLock": {
69835
70002
  capName: "dishwasher",
69836
70003
  capScope: "device",
@@ -74331,6 +74498,12 @@ Object.freeze({
74331
74498
  addonId: null,
74332
74499
  access: "view"
74333
74500
  },
74501
+ "storageMigration.moverClearance": {
74502
+ capName: "storage-migration",
74503
+ capScope: "system",
74504
+ addonId: null,
74505
+ access: "view"
74506
+ },
74334
74507
  "storageMigration.movers": {
74335
74508
  capName: "storage-migration",
74336
74509
  capScope: "system",
@@ -76524,6 +76697,11 @@ Object.freeze({
76524
76697
  form: "single",
76525
76698
  optional: false
76526
76699
  }],
76700
+ "dishwasher.getOptions": [{
76701
+ name: "deviceId",
76702
+ form: "single",
76703
+ optional: false
76704
+ }],
76527
76705
  "dishwasher.getStatus": [{
76528
76706
  name: "deviceId",
76529
76707
  form: "single",
@@ -76534,6 +76712,11 @@ Object.freeze({
76534
76712
  form: "single",
76535
76713
  optional: false
76536
76714
  }],
76715
+ "dishwasher.resume": [{
76716
+ name: "deviceId",
76717
+ form: "single",
76718
+ optional: false
76719
+ }],
76537
76720
  "dishwasher.setChildLock": [{
76538
76721
  name: "deviceId",
76539
76722
  form: "single",
@@ -78620,6 +78803,9 @@ new Map(Object.entries({
78620
78803
  "wrapper-update-available": "system",
78621
78804
  "backup-completed": "system",
78622
78805
  "export-completed": "system",
78806
+ "alert-critical": "system",
78807
+ "alert-error": "system",
78808
+ "alert-critical-resolved": "system",
78623
78809
  "storage-location-low": "system",
78624
78810
  "storage-location-critical": "system",
78625
78811
  "storage-location-ok": "system",
@@ -78744,6 +78930,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78744
78930
  "storage-location-ok"
78745
78931
  ]
78746
78932
  },
78933
+ {
78934
+ id: "alerts",
78935
+ family: "system",
78936
+ label: "Alerts",
78937
+ kinds: [
78938
+ "alert-critical",
78939
+ "alert-error",
78940
+ "alert-critical-resolved"
78941
+ ]
78942
+ },
78747
78943
  {
78748
78944
  id: "alarm",
78749
78945
  family: "alarm",
@@ -78788,6 +78984,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
78788
78984
  return [[descriptor.kind, field]];
78789
78985
  })));
78790
78986
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
78987
+ object({
78988
+ phase: _enum(["raised", "resolved"]),
78989
+ episodeId: string().min(1),
78990
+ alertId: string().min(1),
78991
+ severity: AlertSeveritySchema,
78992
+ category: string(),
78993
+ title: string(),
78994
+ message: string(),
78995
+ sourceType: string().optional(),
78996
+ sourceId: string().optional(),
78997
+ nodeId: string().optional(),
78998
+ /** The alert's own action link (where the operator acts on it), when it has one. */
78999
+ actionUrl: string().optional(),
79000
+ at: number()
79001
+ });
78791
79002
  var RULE_BODY_ONLY = ["body"];
78792
79003
  var RULE_TEXT = ["title", "body"];
78793
79004
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -78797,6 +79008,11 @@ var TANK = [
78797
79008
  "device-tank-full",
78798
79009
  "device-tank-normal"
78799
79010
  ];
79011
+ var ALERT_EPISODE = [
79012
+ "alert-critical",
79013
+ "alert-error",
79014
+ "alert-critical-resolved"
79015
+ ];
78800
79016
  var UPDATES = [
78801
79017
  "addon-update-available",
78802
79018
  "server-update-available",
@@ -78989,14 +79205,14 @@ var STATE_SUMMARY_VARS = [
78989
79205
  ([...RULE_TEXT], [...CONSUMABLE]),
78990
79206
  ([...RULE_TEXT], [...TANK]),
78991
79207
  [...RULE_TEXT],
78992
- ([...RULE_TEXT], [...UPDATES]),
78993
- ([...RULE_TEXT], [...UPDATES]),
78994
- [...RULE_TEXT],
79208
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
79209
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78995
79210
  [...RULE_TEXT],
78996
79211
  [...RULE_TEXT],
78997
79212
  [...RULE_TEXT],
78998
79213
  [...RULE_TEXT],
78999
79214
  [...RULE_TEXT],
79215
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79000
79216
  [...RULE_TEXT],
79001
79217
  [...RULE_TEXT],
79002
79218
  [...RULE_TEXT],
@@ -79014,7 +79230,11 @@ var STATE_SUMMARY_VARS = [
79014
79230
  [...RULE_TEXT],
79015
79231
  [...RULE_TEXT],
79016
79232
  [...RULE_TEXT],
79017
- [...RULE_TEXT],
79233
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79234
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79235
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79236
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79237
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79018
79238
  [...RULE_TEXT],
79019
79239
  [...RULE_TEXT],
79020
79240
  [...RULE_TEXT],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.2.138",
3
+ "version": "1.2.139",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",