@camstack/addon-provider-homematic 1.2.150 → 1.2.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/addon.js 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-DOl51-Ij.mjs
11
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
12
12
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
13
13
  EventCategory["SystemBoot"] = "system.boot";
14
14
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -696,6 +696,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
696
696
  EventCategory["BackupRestored"] = "backup.restored";
697
697
  EventCategory["NotificationDispatched"] = "notification.dispatched";
698
698
  EventCategory["NotificationFailed"] = "notification.failed";
699
+ /**
700
+ * A notification rule that cannot work (D905): its stored row does not load,
701
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
702
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
703
+ */
704
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
705
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
706
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
699
707
  EventCategory["DeviceUpdated"] = "device.updated";
700
708
  /**
701
709
  * Transport-level connectivity. Emitted by the device driver when
@@ -5556,7 +5564,7 @@ var ZodIssueCode = {
5556
5564
  var ZodFirstPartyTypeKind;
5557
5565
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5558
5566
  //#endregion
5559
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5567
+ //#region ../types/dist/sleep-CueztlR1.mjs
5560
5568
  /**
5561
5569
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5562
5570
  * window to float samples (D455).
@@ -42884,6 +42892,8 @@ var NcSystemEventKindSchema = _enum([
42884
42892
  "alert-critical",
42885
42893
  "alert-error",
42886
42894
  "alert-critical-resolved",
42895
+ "rule-broken",
42896
+ "rule-repaired",
42887
42897
  "camera-online",
42888
42898
  "camera-offline",
42889
42899
  "camera-disabled",
@@ -79160,6 +79170,8 @@ new Map(Object.entries({
79160
79170
  "alert-critical": "system",
79161
79171
  "alert-error": "system",
79162
79172
  "alert-critical-resolved": "system",
79173
+ "rule-broken": "system",
79174
+ "rule-repaired": "system",
79163
79175
  "storage-location-low": "system",
79164
79176
  "storage-location-critical": "system",
79165
79177
  "storage-location-ok": "system",
@@ -79294,6 +79306,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79294
79306
  "alert-critical-resolved"
79295
79307
  ]
79296
79308
  },
79309
+ {
79310
+ id: "rule-health",
79311
+ family: "system",
79312
+ label: "Notification rules",
79313
+ kinds: ["rule-broken", "rule-repaired"]
79314
+ },
79297
79315
  {
79298
79316
  id: "alarm",
79299
79317
  family: "alarm",
@@ -79571,6 +79589,10 @@ var STATE_SUMMARY_VARS = [
79571
79589
  [...RULE_TEXT],
79572
79590
  [...RULE_TEXT],
79573
79591
  [...RULE_TEXT],
79592
+ [...RULE_TEXT],
79593
+ [...RULE_TEXT],
79594
+ [...RULE_TEXT],
79595
+ [...RULE_TEXT],
79574
79596
  ([...RULE_TEXT], [...UPDATES]),
79575
79597
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
79576
79598
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -79609,6 +79631,107 @@ var STATE_SUMMARY_VARS = [
79609
79631
  [...RULE_TEXT],
79610
79632
  ...STATE_SUMMARY_VARS
79611
79633
  ];
79634
+ new Map([
79635
+ {
79636
+ id: "device-connectivity",
79637
+ family: "device-events",
79638
+ label: "Device connectivity (offline / back online)",
79639
+ bad: ["device-offline"],
79640
+ recovery: ["device-online"],
79641
+ snapshotLabel: "Devices offline now",
79642
+ snapshotSection: "device-state"
79643
+ },
79644
+ {
79645
+ id: "device-switch",
79646
+ family: "device-events",
79647
+ label: "Device switched off / back on",
79648
+ bad: ["device-disabled"],
79649
+ recovery: ["device-enabled"],
79650
+ snapshotLabel: "Devices switched off now",
79651
+ snapshotSection: "device-state"
79652
+ },
79653
+ {
79654
+ id: "stream-connectivity",
79655
+ family: "device-events",
79656
+ label: "Stream connectivity (offline / back online)",
79657
+ bad: ["stream-offline"],
79658
+ recovery: ["stream-online"],
79659
+ snapshotLabel: "Streams offline now",
79660
+ snapshotSection: "streams"
79661
+ },
79662
+ {
79663
+ id: "battery",
79664
+ family: "device-events",
79665
+ label: "Battery (low / back to normal)",
79666
+ bad: ["device-battery-low"],
79667
+ recovery: ["device-battery-normal"],
79668
+ snapshotLabel: "Batteries low now",
79669
+ snapshotSection: "battery"
79670
+ },
79671
+ {
79672
+ id: "consumables",
79673
+ family: "device-events",
79674
+ label: "Consumables (low / replaced)",
79675
+ bad: ["device-consumable-low"],
79676
+ recovery: ["device-consumable-normal"],
79677
+ snapshotLabel: "Consumables low now",
79678
+ snapshotSection: "consumables"
79679
+ },
79680
+ {
79681
+ id: "tanks",
79682
+ family: "device-events",
79683
+ label: "Tanks (low or full / back to normal)",
79684
+ bad: ["device-tank-low", "device-tank-full"],
79685
+ recovery: ["device-tank-normal"],
79686
+ snapshotLabel: "Tanks low or full now",
79687
+ snapshotSection: "tanks"
79688
+ },
79689
+ {
79690
+ id: "recording-health",
79691
+ family: "device-events",
79692
+ label: "Recording health (stalled or degraded / recording again)",
79693
+ bad: ["recording-stalled", "recording-degraded"],
79694
+ recovery: ["recording-healthy"],
79695
+ snapshotLabel: "Recordings stalled now",
79696
+ snapshotSection: null
79697
+ },
79698
+ {
79699
+ id: "node-connectivity",
79700
+ family: "system",
79701
+ label: "Node connectivity (offline / back online)",
79702
+ bad: ["node-offline"],
79703
+ recovery: ["node-online"],
79704
+ snapshotLabel: "Nodes offline now",
79705
+ snapshotSection: "nodes"
79706
+ },
79707
+ {
79708
+ id: "storage-space",
79709
+ family: "system",
79710
+ label: "Storage space (low or critical / ok again)",
79711
+ bad: ["storage-location-low", "storage-location-critical"],
79712
+ recovery: ["storage-location-ok"],
79713
+ snapshotLabel: "Storage locations low now",
79714
+ snapshotSection: null
79715
+ },
79716
+ {
79717
+ id: "critical-alerts",
79718
+ family: "system",
79719
+ label: "Critical alerts (raised / resolved)",
79720
+ bad: ["alert-critical"],
79721
+ recovery: ["alert-critical-resolved"],
79722
+ snapshotLabel: "Critical alerts open now",
79723
+ snapshotSection: null
79724
+ },
79725
+ {
79726
+ id: "rule-health",
79727
+ family: "system",
79728
+ label: "Rule health (broken / repaired)",
79729
+ bad: ["rule-broken"],
79730
+ recovery: ["rule-repaired"],
79731
+ snapshotLabel: "Notification rules broken now",
79732
+ snapshotSection: null
79733
+ }
79734
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
79612
79735
  new Set([
79613
79736
  "disarmed",
79614
79737
  "armed_home",
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-DOl51-Ij.mjs
12
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
13
13
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  EventCategory["SystemBoot"] = "system.boot";
15
15
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -697,6 +697,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
697
697
  EventCategory["BackupRestored"] = "backup.restored";
698
698
  EventCategory["NotificationDispatched"] = "notification.dispatched";
699
699
  EventCategory["NotificationFailed"] = "notification.failed";
700
+ /**
701
+ * A notification rule that cannot work (D905): its stored row does not load,
702
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
703
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
704
+ */
705
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
706
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
707
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
700
708
  EventCategory["DeviceUpdated"] = "device.updated";
701
709
  /**
702
710
  * Transport-level connectivity. Emitted by the device driver when
@@ -5557,7 +5565,7 @@ var ZodIssueCode = {
5557
5565
  var ZodFirstPartyTypeKind;
5558
5566
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5559
5567
  //#endregion
5560
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5568
+ //#region ../types/dist/sleep-CueztlR1.mjs
5561
5569
  /**
5562
5570
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5563
5571
  * window to float samples (D455).
@@ -42885,6 +42893,8 @@ var NcSystemEventKindSchema = _enum([
42885
42893
  "alert-critical",
42886
42894
  "alert-error",
42887
42895
  "alert-critical-resolved",
42896
+ "rule-broken",
42897
+ "rule-repaired",
42888
42898
  "camera-online",
42889
42899
  "camera-offline",
42890
42900
  "camera-disabled",
@@ -79161,6 +79171,8 @@ new Map(Object.entries({
79161
79171
  "alert-critical": "system",
79162
79172
  "alert-error": "system",
79163
79173
  "alert-critical-resolved": "system",
79174
+ "rule-broken": "system",
79175
+ "rule-repaired": "system",
79164
79176
  "storage-location-low": "system",
79165
79177
  "storage-location-critical": "system",
79166
79178
  "storage-location-ok": "system",
@@ -79295,6 +79307,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79295
79307
  "alert-critical-resolved"
79296
79308
  ]
79297
79309
  },
79310
+ {
79311
+ id: "rule-health",
79312
+ family: "system",
79313
+ label: "Notification rules",
79314
+ kinds: ["rule-broken", "rule-repaired"]
79315
+ },
79298
79316
  {
79299
79317
  id: "alarm",
79300
79318
  family: "alarm",
@@ -79572,6 +79590,10 @@ var STATE_SUMMARY_VARS = [
79572
79590
  [...RULE_TEXT],
79573
79591
  [...RULE_TEXT],
79574
79592
  [...RULE_TEXT],
79593
+ [...RULE_TEXT],
79594
+ [...RULE_TEXT],
79595
+ [...RULE_TEXT],
79596
+ [...RULE_TEXT],
79575
79597
  ([...RULE_TEXT], [...UPDATES]),
79576
79598
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
79577
79599
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -79610,6 +79632,107 @@ var STATE_SUMMARY_VARS = [
79610
79632
  [...RULE_TEXT],
79611
79633
  ...STATE_SUMMARY_VARS
79612
79634
  ];
79635
+ new Map([
79636
+ {
79637
+ id: "device-connectivity",
79638
+ family: "device-events",
79639
+ label: "Device connectivity (offline / back online)",
79640
+ bad: ["device-offline"],
79641
+ recovery: ["device-online"],
79642
+ snapshotLabel: "Devices offline now",
79643
+ snapshotSection: "device-state"
79644
+ },
79645
+ {
79646
+ id: "device-switch",
79647
+ family: "device-events",
79648
+ label: "Device switched off / back on",
79649
+ bad: ["device-disabled"],
79650
+ recovery: ["device-enabled"],
79651
+ snapshotLabel: "Devices switched off now",
79652
+ snapshotSection: "device-state"
79653
+ },
79654
+ {
79655
+ id: "stream-connectivity",
79656
+ family: "device-events",
79657
+ label: "Stream connectivity (offline / back online)",
79658
+ bad: ["stream-offline"],
79659
+ recovery: ["stream-online"],
79660
+ snapshotLabel: "Streams offline now",
79661
+ snapshotSection: "streams"
79662
+ },
79663
+ {
79664
+ id: "battery",
79665
+ family: "device-events",
79666
+ label: "Battery (low / back to normal)",
79667
+ bad: ["device-battery-low"],
79668
+ recovery: ["device-battery-normal"],
79669
+ snapshotLabel: "Batteries low now",
79670
+ snapshotSection: "battery"
79671
+ },
79672
+ {
79673
+ id: "consumables",
79674
+ family: "device-events",
79675
+ label: "Consumables (low / replaced)",
79676
+ bad: ["device-consumable-low"],
79677
+ recovery: ["device-consumable-normal"],
79678
+ snapshotLabel: "Consumables low now",
79679
+ snapshotSection: "consumables"
79680
+ },
79681
+ {
79682
+ id: "tanks",
79683
+ family: "device-events",
79684
+ label: "Tanks (low or full / back to normal)",
79685
+ bad: ["device-tank-low", "device-tank-full"],
79686
+ recovery: ["device-tank-normal"],
79687
+ snapshotLabel: "Tanks low or full now",
79688
+ snapshotSection: "tanks"
79689
+ },
79690
+ {
79691
+ id: "recording-health",
79692
+ family: "device-events",
79693
+ label: "Recording health (stalled or degraded / recording again)",
79694
+ bad: ["recording-stalled", "recording-degraded"],
79695
+ recovery: ["recording-healthy"],
79696
+ snapshotLabel: "Recordings stalled now",
79697
+ snapshotSection: null
79698
+ },
79699
+ {
79700
+ id: "node-connectivity",
79701
+ family: "system",
79702
+ label: "Node connectivity (offline / back online)",
79703
+ bad: ["node-offline"],
79704
+ recovery: ["node-online"],
79705
+ snapshotLabel: "Nodes offline now",
79706
+ snapshotSection: "nodes"
79707
+ },
79708
+ {
79709
+ id: "storage-space",
79710
+ family: "system",
79711
+ label: "Storage space (low or critical / ok again)",
79712
+ bad: ["storage-location-low", "storage-location-critical"],
79713
+ recovery: ["storage-location-ok"],
79714
+ snapshotLabel: "Storage locations low now",
79715
+ snapshotSection: null
79716
+ },
79717
+ {
79718
+ id: "critical-alerts",
79719
+ family: "system",
79720
+ label: "Critical alerts (raised / resolved)",
79721
+ bad: ["alert-critical"],
79722
+ recovery: ["alert-critical-resolved"],
79723
+ snapshotLabel: "Critical alerts open now",
79724
+ snapshotSection: null
79725
+ },
79726
+ {
79727
+ id: "rule-health",
79728
+ family: "system",
79729
+ label: "Rule health (broken / repaired)",
79730
+ bad: ["rule-broken"],
79731
+ recovery: ["rule-repaired"],
79732
+ snapshotLabel: "Notification rules broken now",
79733
+ snapshotSection: null
79734
+ }
79735
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
79613
79736
  new Set([
79614
79737
  "disarmed",
79615
79738
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.2.150",
3
+ "version": "1.2.151",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",