@camstack/addon-provider-mqtt-ha 0.1.1 → 0.1.2

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-DaIZi00R.mjs
36
+ //#region ../types/dist/event-category-C4hVnRo8.mjs
37
37
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
38
38
  EventCategory["SystemBoot"] = "system.boot";
39
39
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -252,7 +252,17 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
252
252
  EventCategory["RecordingStopped"] = "recording.stopped";
253
253
  EventCategory["RecordingError"] = "recording.error";
254
254
  EventCategory["RecordingHealthDegraded"] = "recording.health.degraded";
255
+ /** Recording enabled but no segment finalized for the NC stall window. */
256
+ EventCategory["RecordingHealthStalled"] = "recording.health.stalled";
257
+ /** Recovery from {@link RecordingHealthStalled}. */
258
+ EventCategory["RecordingHealthOk"] = "recording.health.ok";
255
259
  EventCategory["RecordingStorageCritical"] = "recording.storage.critical";
260
+ /** Free space on a storage location crossed the warn bar. */
261
+ EventCategory["StorageLocationLow"] = "storage.location.low";
262
+ /** Free space at/under the critical bar, or capacity probe failed (`null`). */
263
+ EventCategory["StorageLocationCritical"] = "storage.location.critical";
264
+ /** Recovery from low/critical on a storage location. */
265
+ EventCategory["StorageLocationOk"] = "storage.location.ok";
256
266
  EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
257
267
  EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
258
268
  EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
@@ -5411,7 +5421,7 @@ var ZodIssueCode = {
5411
5421
  var ZodFirstPartyTypeKind;
5412
5422
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5413
5423
  //#endregion
5414
- //#region ../types/dist/sleep-DwAQ9sqX.mjs
5424
+ //#region ../types/dist/sleep-Tkp9dHXv.mjs
5415
5425
  /**
5416
5426
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5417
5427
  * window to float samples (D455).
@@ -20602,6 +20612,12 @@ var NcSystemEventKindSchema = _enum([
20602
20612
  "node-updating",
20603
20613
  "node-inference-unavailable",
20604
20614
  "detection-blind",
20615
+ "recording-stalled",
20616
+ "recording-healthy",
20617
+ "recording-degraded",
20618
+ "storage-location-low",
20619
+ "storage-location-critical",
20620
+ "storage-location-ok",
20605
20621
  "addon-crash-loop",
20606
20622
  "addon-update-available",
20607
20623
  "server-update-available",
@@ -56483,6 +56499,9 @@ new Map(Object.entries({
56483
56499
  "stream-online": "device-events",
56484
56500
  "stream-offline": "device-events",
56485
56501
  "detection-blind": "device-events",
56502
+ "recording-stalled": "device-events",
56503
+ "recording-healthy": "device-events",
56504
+ "recording-degraded": "device-events",
56486
56505
  "node-online": "system",
56487
56506
  "node-offline": "system",
56488
56507
  "node-restarting": "system",
@@ -56496,6 +56515,9 @@ new Map(Object.entries({
56496
56515
  "wrapper-update-available": "system",
56497
56516
  "backup-completed": "system",
56498
56517
  "export-completed": "system",
56518
+ "storage-location-low": "system",
56519
+ "storage-location-critical": "system",
56520
+ "storage-location-ok": "system",
56499
56521
  "alarm-triggered": "alarm",
56500
56522
  "alarm-armed": "alarm",
56501
56523
  "alarm-disarmed": "alarm",
@@ -56557,6 +56579,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
56557
56579
  label: "Detecting nothing",
56558
56580
  kinds: ["detection-blind"]
56559
56581
  },
56582
+ {
56583
+ id: "recording",
56584
+ family: "device-events",
56585
+ label: "Recording",
56586
+ kinds: [
56587
+ "recording-stalled",
56588
+ "recording-healthy",
56589
+ "recording-degraded"
56590
+ ]
56591
+ },
56560
56592
  {
56561
56593
  id: "nodes",
56562
56594
  family: "system",
@@ -56597,6 +56629,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
56597
56629
  label: "Backups & exports",
56598
56630
  kinds: ["backup-completed", "export-completed"]
56599
56631
  },
56632
+ {
56633
+ id: "storage",
56634
+ family: "system",
56635
+ label: "Storage locations",
56636
+ kinds: [
56637
+ "storage-location-low",
56638
+ "storage-location-critical",
56639
+ "storage-location-ok"
56640
+ ]
56641
+ },
56600
56642
  {
56601
56643
  id: "alarm",
56602
56644
  family: "alarm",
@@ -56679,6 +56721,9 @@ var DEVICE_EVENTS = [
56679
56721
  "stream-online",
56680
56722
  "stream-offline",
56681
56723
  "detection-blind",
56724
+ "recording-stalled",
56725
+ "recording-healthy",
56726
+ "recording-degraded",
56682
56727
  ...ALARM
56683
56728
  ];
56684
56729
  /** Every kind a summary may speak about — the two summarisable families. */
@@ -56846,6 +56891,11 @@ var STATE_SUMMARY_VARS = [
56846
56891
  [...RULE_TEXT],
56847
56892
  [...RULE_TEXT],
56848
56893
  [...RULE_TEXT],
56894
+ [...RULE_TEXT],
56895
+ [...RULE_TEXT],
56896
+ [...RULE_TEXT],
56897
+ [...RULE_TEXT],
56898
+ [...RULE_TEXT],
56849
56899
  ([...RULE_TEXT], [...UPDATES]),
56850
56900
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
56851
56901
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
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-DaIZi00R.mjs
37
+ //#region ../types/dist/event-category-C4hVnRo8.mjs
38
38
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
39
39
  EventCategory["SystemBoot"] = "system.boot";
40
40
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -253,7 +253,17 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
253
253
  EventCategory["RecordingStopped"] = "recording.stopped";
254
254
  EventCategory["RecordingError"] = "recording.error";
255
255
  EventCategory["RecordingHealthDegraded"] = "recording.health.degraded";
256
+ /** Recording enabled but no segment finalized for the NC stall window. */
257
+ EventCategory["RecordingHealthStalled"] = "recording.health.stalled";
258
+ /** Recovery from {@link RecordingHealthStalled}. */
259
+ EventCategory["RecordingHealthOk"] = "recording.health.ok";
256
260
  EventCategory["RecordingStorageCritical"] = "recording.storage.critical";
261
+ /** Free space on a storage location crossed the warn bar. */
262
+ EventCategory["StorageLocationLow"] = "storage.location.low";
263
+ /** Free space at/under the critical bar, or capacity probe failed (`null`). */
264
+ EventCategory["StorageLocationCritical"] = "storage.location.critical";
265
+ /** Recovery from low/critical on a storage location. */
266
+ EventCategory["StorageLocationOk"] = "storage.location.ok";
257
267
  EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
258
268
  EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
259
269
  EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
@@ -5412,7 +5422,7 @@ var ZodIssueCode = {
5412
5422
  var ZodFirstPartyTypeKind;
5413
5423
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5414
5424
  //#endregion
5415
- //#region ../types/dist/sleep-DwAQ9sqX.mjs
5425
+ //#region ../types/dist/sleep-Tkp9dHXv.mjs
5416
5426
  /**
5417
5427
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5418
5428
  * window to float samples (D455).
@@ -20603,6 +20613,12 @@ var NcSystemEventKindSchema = _enum([
20603
20613
  "node-updating",
20604
20614
  "node-inference-unavailable",
20605
20615
  "detection-blind",
20616
+ "recording-stalled",
20617
+ "recording-healthy",
20618
+ "recording-degraded",
20619
+ "storage-location-low",
20620
+ "storage-location-critical",
20621
+ "storage-location-ok",
20606
20622
  "addon-crash-loop",
20607
20623
  "addon-update-available",
20608
20624
  "server-update-available",
@@ -56484,6 +56500,9 @@ new Map(Object.entries({
56484
56500
  "stream-online": "device-events",
56485
56501
  "stream-offline": "device-events",
56486
56502
  "detection-blind": "device-events",
56503
+ "recording-stalled": "device-events",
56504
+ "recording-healthy": "device-events",
56505
+ "recording-degraded": "device-events",
56487
56506
  "node-online": "system",
56488
56507
  "node-offline": "system",
56489
56508
  "node-restarting": "system",
@@ -56497,6 +56516,9 @@ new Map(Object.entries({
56497
56516
  "wrapper-update-available": "system",
56498
56517
  "backup-completed": "system",
56499
56518
  "export-completed": "system",
56519
+ "storage-location-low": "system",
56520
+ "storage-location-critical": "system",
56521
+ "storage-location-ok": "system",
56500
56522
  "alarm-triggered": "alarm",
56501
56523
  "alarm-armed": "alarm",
56502
56524
  "alarm-disarmed": "alarm",
@@ -56558,6 +56580,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
56558
56580
  label: "Detecting nothing",
56559
56581
  kinds: ["detection-blind"]
56560
56582
  },
56583
+ {
56584
+ id: "recording",
56585
+ family: "device-events",
56586
+ label: "Recording",
56587
+ kinds: [
56588
+ "recording-stalled",
56589
+ "recording-healthy",
56590
+ "recording-degraded"
56591
+ ]
56592
+ },
56561
56593
  {
56562
56594
  id: "nodes",
56563
56595
  family: "system",
@@ -56598,6 +56630,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
56598
56630
  label: "Backups & exports",
56599
56631
  kinds: ["backup-completed", "export-completed"]
56600
56632
  },
56633
+ {
56634
+ id: "storage",
56635
+ family: "system",
56636
+ label: "Storage locations",
56637
+ kinds: [
56638
+ "storage-location-low",
56639
+ "storage-location-critical",
56640
+ "storage-location-ok"
56641
+ ]
56642
+ },
56601
56643
  {
56602
56644
  id: "alarm",
56603
56645
  family: "alarm",
@@ -56680,6 +56722,9 @@ var DEVICE_EVENTS = [
56680
56722
  "stream-online",
56681
56723
  "stream-offline",
56682
56724
  "detection-blind",
56725
+ "recording-stalled",
56726
+ "recording-healthy",
56727
+ "recording-degraded",
56683
56728
  ...ALARM
56684
56729
  ];
56685
56730
  /** Every kind a summary may speak about — the two summarisable families. */
@@ -56847,6 +56892,11 @@ var STATE_SUMMARY_VARS = [
56847
56892
  [...RULE_TEXT],
56848
56893
  [...RULE_TEXT],
56849
56894
  [...RULE_TEXT],
56895
+ [...RULE_TEXT],
56896
+ [...RULE_TEXT],
56897
+ [...RULE_TEXT],
56898
+ [...RULE_TEXT],
56899
+ [...RULE_TEXT],
56850
56900
  ([...RULE_TEXT], [...UPDATES]),
56851
56901
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
56852
56902
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-mqtt-ha",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Home Assistant MQTT discovery import provider for CamStack — adopts entities published on homeassistant/+/+/config",
5
5
  "keywords": [
6
6
  "camstack",