@camstack/addon-provider-mqtt-ha 0.1.18 → 0.1.19

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
@@ -33,7 +33,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  }) : target, mod));
34
34
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
  //#endregion
36
- //#region ../types/dist/event-category-DOl51-Ij.mjs
36
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
37
37
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
38
38
  EventCategory["SystemBoot"] = "system.boot";
39
39
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -721,6 +721,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
721
721
  EventCategory["BackupRestored"] = "backup.restored";
722
722
  EventCategory["NotificationDispatched"] = "notification.dispatched";
723
723
  EventCategory["NotificationFailed"] = "notification.failed";
724
+ /**
725
+ * A notification rule that cannot work (D905): its stored row does not load,
726
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
727
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
728
+ */
729
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
730
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
731
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
724
732
  EventCategory["DeviceUpdated"] = "device.updated";
725
733
  /**
726
734
  * Transport-level connectivity. Emitted by the device driver when
@@ -5448,7 +5456,7 @@ var ZodIssueCode = {
5448
5456
  var ZodFirstPartyTypeKind;
5449
5457
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5450
5458
  //#endregion
5451
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5459
+ //#region ../types/dist/sleep-CueztlR1.mjs
5452
5460
  /**
5453
5461
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5454
5462
  * window to float samples (D455).
@@ -42426,6 +42434,8 @@ var NcSystemEventKindSchema = _enum([
42426
42434
  "alert-critical",
42427
42435
  "alert-error",
42428
42436
  "alert-critical-resolved",
42437
+ "rule-broken",
42438
+ "rule-repaired",
42429
42439
  "camera-online",
42430
42440
  "camera-offline",
42431
42441
  "camera-disabled",
@@ -78702,6 +78712,8 @@ new Map(Object.entries({
78702
78712
  "alert-critical": "system",
78703
78713
  "alert-error": "system",
78704
78714
  "alert-critical-resolved": "system",
78715
+ "rule-broken": "system",
78716
+ "rule-repaired": "system",
78705
78717
  "storage-location-low": "system",
78706
78718
  "storage-location-critical": "system",
78707
78719
  "storage-location-ok": "system",
@@ -78836,6 +78848,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78836
78848
  "alert-critical-resolved"
78837
78849
  ]
78838
78850
  },
78851
+ {
78852
+ id: "rule-health",
78853
+ family: "system",
78854
+ label: "Notification rules",
78855
+ kinds: ["rule-broken", "rule-repaired"]
78856
+ },
78839
78857
  {
78840
78858
  id: "alarm",
78841
78859
  family: "alarm",
@@ -79113,6 +79131,10 @@ var STATE_SUMMARY_VARS = [
79113
79131
  [...RULE_TEXT],
79114
79132
  [...RULE_TEXT],
79115
79133
  [...RULE_TEXT],
79134
+ [...RULE_TEXT],
79135
+ [...RULE_TEXT],
79136
+ [...RULE_TEXT],
79137
+ [...RULE_TEXT],
79116
79138
  ([...RULE_TEXT], [...UPDATES]),
79117
79139
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
79118
79140
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -79151,6 +79173,107 @@ var STATE_SUMMARY_VARS = [
79151
79173
  [...RULE_TEXT],
79152
79174
  ...STATE_SUMMARY_VARS
79153
79175
  ];
79176
+ new Map([
79177
+ {
79178
+ id: "device-connectivity",
79179
+ family: "device-events",
79180
+ label: "Device connectivity (offline / back online)",
79181
+ bad: ["device-offline"],
79182
+ recovery: ["device-online"],
79183
+ snapshotLabel: "Devices offline now",
79184
+ snapshotSection: "device-state"
79185
+ },
79186
+ {
79187
+ id: "device-switch",
79188
+ family: "device-events",
79189
+ label: "Device switched off / back on",
79190
+ bad: ["device-disabled"],
79191
+ recovery: ["device-enabled"],
79192
+ snapshotLabel: "Devices switched off now",
79193
+ snapshotSection: "device-state"
79194
+ },
79195
+ {
79196
+ id: "stream-connectivity",
79197
+ family: "device-events",
79198
+ label: "Stream connectivity (offline / back online)",
79199
+ bad: ["stream-offline"],
79200
+ recovery: ["stream-online"],
79201
+ snapshotLabel: "Streams offline now",
79202
+ snapshotSection: "streams"
79203
+ },
79204
+ {
79205
+ id: "battery",
79206
+ family: "device-events",
79207
+ label: "Battery (low / back to normal)",
79208
+ bad: ["device-battery-low"],
79209
+ recovery: ["device-battery-normal"],
79210
+ snapshotLabel: "Batteries low now",
79211
+ snapshotSection: "battery"
79212
+ },
79213
+ {
79214
+ id: "consumables",
79215
+ family: "device-events",
79216
+ label: "Consumables (low / replaced)",
79217
+ bad: ["device-consumable-low"],
79218
+ recovery: ["device-consumable-normal"],
79219
+ snapshotLabel: "Consumables low now",
79220
+ snapshotSection: "consumables"
79221
+ },
79222
+ {
79223
+ id: "tanks",
79224
+ family: "device-events",
79225
+ label: "Tanks (low or full / back to normal)",
79226
+ bad: ["device-tank-low", "device-tank-full"],
79227
+ recovery: ["device-tank-normal"],
79228
+ snapshotLabel: "Tanks low or full now",
79229
+ snapshotSection: "tanks"
79230
+ },
79231
+ {
79232
+ id: "recording-health",
79233
+ family: "device-events",
79234
+ label: "Recording health (stalled or degraded / recording again)",
79235
+ bad: ["recording-stalled", "recording-degraded"],
79236
+ recovery: ["recording-healthy"],
79237
+ snapshotLabel: "Recordings stalled now",
79238
+ snapshotSection: null
79239
+ },
79240
+ {
79241
+ id: "node-connectivity",
79242
+ family: "system",
79243
+ label: "Node connectivity (offline / back online)",
79244
+ bad: ["node-offline"],
79245
+ recovery: ["node-online"],
79246
+ snapshotLabel: "Nodes offline now",
79247
+ snapshotSection: "nodes"
79248
+ },
79249
+ {
79250
+ id: "storage-space",
79251
+ family: "system",
79252
+ label: "Storage space (low or critical / ok again)",
79253
+ bad: ["storage-location-low", "storage-location-critical"],
79254
+ recovery: ["storage-location-ok"],
79255
+ snapshotLabel: "Storage locations low now",
79256
+ snapshotSection: null
79257
+ },
79258
+ {
79259
+ id: "critical-alerts",
79260
+ family: "system",
79261
+ label: "Critical alerts (raised / resolved)",
79262
+ bad: ["alert-critical"],
79263
+ recovery: ["alert-critical-resolved"],
79264
+ snapshotLabel: "Critical alerts open now",
79265
+ snapshotSection: null
79266
+ },
79267
+ {
79268
+ id: "rule-health",
79269
+ family: "system",
79270
+ label: "Rule health (broken / repaired)",
79271
+ bad: ["rule-broken"],
79272
+ recovery: ["rule-repaired"],
79273
+ snapshotLabel: "Notification rules broken now",
79274
+ snapshotSection: null
79275
+ }
79276
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
79154
79277
  new Set([
79155
79278
  "disarmed",
79156
79279
  "armed_home",
package/dist/addon.mjs CHANGED
@@ -34,7 +34,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
34
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
36
36
  //#endregion
37
- //#region ../types/dist/event-category-DOl51-Ij.mjs
37
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
38
38
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
39
39
  EventCategory["SystemBoot"] = "system.boot";
40
40
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -722,6 +722,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
722
722
  EventCategory["BackupRestored"] = "backup.restored";
723
723
  EventCategory["NotificationDispatched"] = "notification.dispatched";
724
724
  EventCategory["NotificationFailed"] = "notification.failed";
725
+ /**
726
+ * A notification rule that cannot work (D905): its stored row does not load,
727
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
728
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
729
+ */
730
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
731
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
732
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
725
733
  EventCategory["DeviceUpdated"] = "device.updated";
726
734
  /**
727
735
  * Transport-level connectivity. Emitted by the device driver when
@@ -5449,7 +5457,7 @@ var ZodIssueCode = {
5449
5457
  var ZodFirstPartyTypeKind;
5450
5458
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5451
5459
  //#endregion
5452
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5460
+ //#region ../types/dist/sleep-CueztlR1.mjs
5453
5461
  /**
5454
5462
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5455
5463
  * window to float samples (D455).
@@ -42427,6 +42435,8 @@ var NcSystemEventKindSchema = _enum([
42427
42435
  "alert-critical",
42428
42436
  "alert-error",
42429
42437
  "alert-critical-resolved",
42438
+ "rule-broken",
42439
+ "rule-repaired",
42430
42440
  "camera-online",
42431
42441
  "camera-offline",
42432
42442
  "camera-disabled",
@@ -78703,6 +78713,8 @@ new Map(Object.entries({
78703
78713
  "alert-critical": "system",
78704
78714
  "alert-error": "system",
78705
78715
  "alert-critical-resolved": "system",
78716
+ "rule-broken": "system",
78717
+ "rule-repaired": "system",
78706
78718
  "storage-location-low": "system",
78707
78719
  "storage-location-critical": "system",
78708
78720
  "storage-location-ok": "system",
@@ -78837,6 +78849,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78837
78849
  "alert-critical-resolved"
78838
78850
  ]
78839
78851
  },
78852
+ {
78853
+ id: "rule-health",
78854
+ family: "system",
78855
+ label: "Notification rules",
78856
+ kinds: ["rule-broken", "rule-repaired"]
78857
+ },
78840
78858
  {
78841
78859
  id: "alarm",
78842
78860
  family: "alarm",
@@ -79114,6 +79132,10 @@ var STATE_SUMMARY_VARS = [
79114
79132
  [...RULE_TEXT],
79115
79133
  [...RULE_TEXT],
79116
79134
  [...RULE_TEXT],
79135
+ [...RULE_TEXT],
79136
+ [...RULE_TEXT],
79137
+ [...RULE_TEXT],
79138
+ [...RULE_TEXT],
79117
79139
  ([...RULE_TEXT], [...UPDATES]),
79118
79140
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
79119
79141
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -79152,6 +79174,107 @@ var STATE_SUMMARY_VARS = [
79152
79174
  [...RULE_TEXT],
79153
79175
  ...STATE_SUMMARY_VARS
79154
79176
  ];
79177
+ new Map([
79178
+ {
79179
+ id: "device-connectivity",
79180
+ family: "device-events",
79181
+ label: "Device connectivity (offline / back online)",
79182
+ bad: ["device-offline"],
79183
+ recovery: ["device-online"],
79184
+ snapshotLabel: "Devices offline now",
79185
+ snapshotSection: "device-state"
79186
+ },
79187
+ {
79188
+ id: "device-switch",
79189
+ family: "device-events",
79190
+ label: "Device switched off / back on",
79191
+ bad: ["device-disabled"],
79192
+ recovery: ["device-enabled"],
79193
+ snapshotLabel: "Devices switched off now",
79194
+ snapshotSection: "device-state"
79195
+ },
79196
+ {
79197
+ id: "stream-connectivity",
79198
+ family: "device-events",
79199
+ label: "Stream connectivity (offline / back online)",
79200
+ bad: ["stream-offline"],
79201
+ recovery: ["stream-online"],
79202
+ snapshotLabel: "Streams offline now",
79203
+ snapshotSection: "streams"
79204
+ },
79205
+ {
79206
+ id: "battery",
79207
+ family: "device-events",
79208
+ label: "Battery (low / back to normal)",
79209
+ bad: ["device-battery-low"],
79210
+ recovery: ["device-battery-normal"],
79211
+ snapshotLabel: "Batteries low now",
79212
+ snapshotSection: "battery"
79213
+ },
79214
+ {
79215
+ id: "consumables",
79216
+ family: "device-events",
79217
+ label: "Consumables (low / replaced)",
79218
+ bad: ["device-consumable-low"],
79219
+ recovery: ["device-consumable-normal"],
79220
+ snapshotLabel: "Consumables low now",
79221
+ snapshotSection: "consumables"
79222
+ },
79223
+ {
79224
+ id: "tanks",
79225
+ family: "device-events",
79226
+ label: "Tanks (low or full / back to normal)",
79227
+ bad: ["device-tank-low", "device-tank-full"],
79228
+ recovery: ["device-tank-normal"],
79229
+ snapshotLabel: "Tanks low or full now",
79230
+ snapshotSection: "tanks"
79231
+ },
79232
+ {
79233
+ id: "recording-health",
79234
+ family: "device-events",
79235
+ label: "Recording health (stalled or degraded / recording again)",
79236
+ bad: ["recording-stalled", "recording-degraded"],
79237
+ recovery: ["recording-healthy"],
79238
+ snapshotLabel: "Recordings stalled now",
79239
+ snapshotSection: null
79240
+ },
79241
+ {
79242
+ id: "node-connectivity",
79243
+ family: "system",
79244
+ label: "Node connectivity (offline / back online)",
79245
+ bad: ["node-offline"],
79246
+ recovery: ["node-online"],
79247
+ snapshotLabel: "Nodes offline now",
79248
+ snapshotSection: "nodes"
79249
+ },
79250
+ {
79251
+ id: "storage-space",
79252
+ family: "system",
79253
+ label: "Storage space (low or critical / ok again)",
79254
+ bad: ["storage-location-low", "storage-location-critical"],
79255
+ recovery: ["storage-location-ok"],
79256
+ snapshotLabel: "Storage locations low now",
79257
+ snapshotSection: null
79258
+ },
79259
+ {
79260
+ id: "critical-alerts",
79261
+ family: "system",
79262
+ label: "Critical alerts (raised / resolved)",
79263
+ bad: ["alert-critical"],
79264
+ recovery: ["alert-critical-resolved"],
79265
+ snapshotLabel: "Critical alerts open now",
79266
+ snapshotSection: null
79267
+ },
79268
+ {
79269
+ id: "rule-health",
79270
+ family: "system",
79271
+ label: "Rule health (broken / repaired)",
79272
+ bad: ["rule-broken"],
79273
+ recovery: ["rule-repaired"],
79274
+ snapshotLabel: "Notification rules broken now",
79275
+ snapshotSection: null
79276
+ }
79277
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
79155
79278
  new Set([
79156
79279
  "disarmed",
79157
79280
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-mqtt-ha",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Home Assistant MQTT discovery import provider for CamStack — adopts entities published on homeassistant/+/+/config",
5
5
  "keywords": [
6
6
  "camstack",