@camstack/addon-provider-tuya 0.2.138 → 0.2.140

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
@@ -819,7 +819,7 @@ async function discoverDevices(options = {}, binder = createDgramBinder()) {
819
819
  return [...byId.values()];
820
820
  }
821
821
  //#endregion
822
- //#region ../types/dist/event-category-DOl51-Ij.mjs
822
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
823
823
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
824
824
  EventCategory["SystemBoot"] = "system.boot";
825
825
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1507,6 +1507,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1507
1507
  EventCategory["BackupRestored"] = "backup.restored";
1508
1508
  EventCategory["NotificationDispatched"] = "notification.dispatched";
1509
1509
  EventCategory["NotificationFailed"] = "notification.failed";
1510
+ /**
1511
+ * A notification rule that cannot work (D905): its stored row does not load,
1512
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
1513
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
1514
+ */
1515
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
1516
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
1517
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
1510
1518
  EventCategory["DeviceUpdated"] = "device.updated";
1511
1519
  /**
1512
1520
  * Transport-level connectivity. Emitted by the device driver when
@@ -6234,7 +6242,7 @@ var ZodIssueCode = {
6234
6242
  var ZodFirstPartyTypeKind;
6235
6243
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6236
6244
  //#endregion
6237
- //#region ../types/dist/sleep-_sV1BE2f.mjs
6245
+ //#region ../types/dist/sleep-CueztlR1.mjs
6238
6246
  /**
6239
6247
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6240
6248
  * window to float samples (D455).
@@ -43212,6 +43220,8 @@ var NcSystemEventKindSchema = _enum([
43212
43220
  "alert-critical",
43213
43221
  "alert-error",
43214
43222
  "alert-critical-resolved",
43223
+ "rule-broken",
43224
+ "rule-repaired",
43215
43225
  "camera-online",
43216
43226
  "camera-offline",
43217
43227
  "camera-disabled",
@@ -79496,6 +79506,8 @@ new Map(Object.entries({
79496
79506
  "alert-critical": "system",
79497
79507
  "alert-error": "system",
79498
79508
  "alert-critical-resolved": "system",
79509
+ "rule-broken": "system",
79510
+ "rule-repaired": "system",
79499
79511
  "storage-location-low": "system",
79500
79512
  "storage-location-critical": "system",
79501
79513
  "storage-location-ok": "system",
@@ -79630,6 +79642,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79630
79642
  "alert-critical-resolved"
79631
79643
  ]
79632
79644
  },
79645
+ {
79646
+ id: "rule-health",
79647
+ family: "system",
79648
+ label: "Notification rules",
79649
+ kinds: ["rule-broken", "rule-repaired"]
79650
+ },
79633
79651
  {
79634
79652
  id: "alarm",
79635
79653
  family: "alarm",
@@ -79907,6 +79925,10 @@ var STATE_SUMMARY_VARS = [
79907
79925
  [...RULE_TEXT],
79908
79926
  [...RULE_TEXT],
79909
79927
  [...RULE_TEXT],
79928
+ [...RULE_TEXT],
79929
+ [...RULE_TEXT],
79930
+ [...RULE_TEXT],
79931
+ [...RULE_TEXT],
79910
79932
  ([...RULE_TEXT], [...UPDATES]),
79911
79933
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
79912
79934
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -79945,6 +79967,107 @@ var STATE_SUMMARY_VARS = [
79945
79967
  [...RULE_TEXT],
79946
79968
  ...STATE_SUMMARY_VARS
79947
79969
  ];
79970
+ new Map([
79971
+ {
79972
+ id: "device-connectivity",
79973
+ family: "device-events",
79974
+ label: "Device connectivity (offline / back online)",
79975
+ bad: ["device-offline"],
79976
+ recovery: ["device-online"],
79977
+ snapshotLabel: "Devices offline now",
79978
+ snapshotSection: "device-state"
79979
+ },
79980
+ {
79981
+ id: "device-switch",
79982
+ family: "device-events",
79983
+ label: "Device switched off / back on",
79984
+ bad: ["device-disabled"],
79985
+ recovery: ["device-enabled"],
79986
+ snapshotLabel: "Devices switched off now",
79987
+ snapshotSection: "device-state"
79988
+ },
79989
+ {
79990
+ id: "stream-connectivity",
79991
+ family: "device-events",
79992
+ label: "Stream connectivity (offline / back online)",
79993
+ bad: ["stream-offline"],
79994
+ recovery: ["stream-online"],
79995
+ snapshotLabel: "Streams offline now",
79996
+ snapshotSection: "streams"
79997
+ },
79998
+ {
79999
+ id: "battery",
80000
+ family: "device-events",
80001
+ label: "Battery (low / back to normal)",
80002
+ bad: ["device-battery-low"],
80003
+ recovery: ["device-battery-normal"],
80004
+ snapshotLabel: "Batteries low now",
80005
+ snapshotSection: "battery"
80006
+ },
80007
+ {
80008
+ id: "consumables",
80009
+ family: "device-events",
80010
+ label: "Consumables (low / replaced)",
80011
+ bad: ["device-consumable-low"],
80012
+ recovery: ["device-consumable-normal"],
80013
+ snapshotLabel: "Consumables low now",
80014
+ snapshotSection: "consumables"
80015
+ },
80016
+ {
80017
+ id: "tanks",
80018
+ family: "device-events",
80019
+ label: "Tanks (low or full / back to normal)",
80020
+ bad: ["device-tank-low", "device-tank-full"],
80021
+ recovery: ["device-tank-normal"],
80022
+ snapshotLabel: "Tanks low or full now",
80023
+ snapshotSection: "tanks"
80024
+ },
80025
+ {
80026
+ id: "recording-health",
80027
+ family: "device-events",
80028
+ label: "Recording health (stalled or degraded / recording again)",
80029
+ bad: ["recording-stalled", "recording-degraded"],
80030
+ recovery: ["recording-healthy"],
80031
+ snapshotLabel: "Recordings stalled now",
80032
+ snapshotSection: null
80033
+ },
80034
+ {
80035
+ id: "node-connectivity",
80036
+ family: "system",
80037
+ label: "Node connectivity (offline / back online)",
80038
+ bad: ["node-offline"],
80039
+ recovery: ["node-online"],
80040
+ snapshotLabel: "Nodes offline now",
80041
+ snapshotSection: "nodes"
80042
+ },
80043
+ {
80044
+ id: "storage-space",
80045
+ family: "system",
80046
+ label: "Storage space (low or critical / ok again)",
80047
+ bad: ["storage-location-low", "storage-location-critical"],
80048
+ recovery: ["storage-location-ok"],
80049
+ snapshotLabel: "Storage locations low now",
80050
+ snapshotSection: null
80051
+ },
80052
+ {
80053
+ id: "critical-alerts",
80054
+ family: "system",
80055
+ label: "Critical alerts (raised / resolved)",
80056
+ bad: ["alert-critical"],
80057
+ recovery: ["alert-critical-resolved"],
80058
+ snapshotLabel: "Critical alerts open now",
80059
+ snapshotSection: null
80060
+ },
80061
+ {
80062
+ id: "rule-health",
80063
+ family: "system",
80064
+ label: "Rule health (broken / repaired)",
80065
+ bad: ["rule-broken"],
80066
+ recovery: ["rule-repaired"],
80067
+ snapshotLabel: "Notification rules broken now",
80068
+ snapshotSection: null
80069
+ }
80070
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
79948
80071
  new Set([
79949
80072
  "disarmed",
79950
80073
  "armed_home",
package/dist/addon.mjs CHANGED
@@ -818,7 +818,7 @@ async function discoverDevices(options = {}, binder = createDgramBinder()) {
818
818
  return [...byId.values()];
819
819
  }
820
820
  //#endregion
821
- //#region ../types/dist/event-category-DOl51-Ij.mjs
821
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
822
822
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
823
823
  EventCategory["SystemBoot"] = "system.boot";
824
824
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1506,6 +1506,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1506
1506
  EventCategory["BackupRestored"] = "backup.restored";
1507
1507
  EventCategory["NotificationDispatched"] = "notification.dispatched";
1508
1508
  EventCategory["NotificationFailed"] = "notification.failed";
1509
+ /**
1510
+ * A notification rule that cannot work (D905): its stored row does not load,
1511
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
1512
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
1513
+ */
1514
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
1515
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
1516
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
1509
1517
  EventCategory["DeviceUpdated"] = "device.updated";
1510
1518
  /**
1511
1519
  * Transport-level connectivity. Emitted by the device driver when
@@ -6233,7 +6241,7 @@ var ZodIssueCode = {
6233
6241
  var ZodFirstPartyTypeKind;
6234
6242
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6235
6243
  //#endregion
6236
- //#region ../types/dist/sleep-_sV1BE2f.mjs
6244
+ //#region ../types/dist/sleep-CueztlR1.mjs
6237
6245
  /**
6238
6246
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6239
6247
  * window to float samples (D455).
@@ -43211,6 +43219,8 @@ var NcSystemEventKindSchema = _enum([
43211
43219
  "alert-critical",
43212
43220
  "alert-error",
43213
43221
  "alert-critical-resolved",
43222
+ "rule-broken",
43223
+ "rule-repaired",
43214
43224
  "camera-online",
43215
43225
  "camera-offline",
43216
43226
  "camera-disabled",
@@ -79495,6 +79505,8 @@ new Map(Object.entries({
79495
79505
  "alert-critical": "system",
79496
79506
  "alert-error": "system",
79497
79507
  "alert-critical-resolved": "system",
79508
+ "rule-broken": "system",
79509
+ "rule-repaired": "system",
79498
79510
  "storage-location-low": "system",
79499
79511
  "storage-location-critical": "system",
79500
79512
  "storage-location-ok": "system",
@@ -79629,6 +79641,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79629
79641
  "alert-critical-resolved"
79630
79642
  ]
79631
79643
  },
79644
+ {
79645
+ id: "rule-health",
79646
+ family: "system",
79647
+ label: "Notification rules",
79648
+ kinds: ["rule-broken", "rule-repaired"]
79649
+ },
79632
79650
  {
79633
79651
  id: "alarm",
79634
79652
  family: "alarm",
@@ -79906,6 +79924,10 @@ var STATE_SUMMARY_VARS = [
79906
79924
  [...RULE_TEXT],
79907
79925
  [...RULE_TEXT],
79908
79926
  [...RULE_TEXT],
79927
+ [...RULE_TEXT],
79928
+ [...RULE_TEXT],
79929
+ [...RULE_TEXT],
79930
+ [...RULE_TEXT],
79909
79931
  ([...RULE_TEXT], [...UPDATES]),
79910
79932
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
79911
79933
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -79944,6 +79966,107 @@ var STATE_SUMMARY_VARS = [
79944
79966
  [...RULE_TEXT],
79945
79967
  ...STATE_SUMMARY_VARS
79946
79968
  ];
79969
+ new Map([
79970
+ {
79971
+ id: "device-connectivity",
79972
+ family: "device-events",
79973
+ label: "Device connectivity (offline / back online)",
79974
+ bad: ["device-offline"],
79975
+ recovery: ["device-online"],
79976
+ snapshotLabel: "Devices offline now",
79977
+ snapshotSection: "device-state"
79978
+ },
79979
+ {
79980
+ id: "device-switch",
79981
+ family: "device-events",
79982
+ label: "Device switched off / back on",
79983
+ bad: ["device-disabled"],
79984
+ recovery: ["device-enabled"],
79985
+ snapshotLabel: "Devices switched off now",
79986
+ snapshotSection: "device-state"
79987
+ },
79988
+ {
79989
+ id: "stream-connectivity",
79990
+ family: "device-events",
79991
+ label: "Stream connectivity (offline / back online)",
79992
+ bad: ["stream-offline"],
79993
+ recovery: ["stream-online"],
79994
+ snapshotLabel: "Streams offline now",
79995
+ snapshotSection: "streams"
79996
+ },
79997
+ {
79998
+ id: "battery",
79999
+ family: "device-events",
80000
+ label: "Battery (low / back to normal)",
80001
+ bad: ["device-battery-low"],
80002
+ recovery: ["device-battery-normal"],
80003
+ snapshotLabel: "Batteries low now",
80004
+ snapshotSection: "battery"
80005
+ },
80006
+ {
80007
+ id: "consumables",
80008
+ family: "device-events",
80009
+ label: "Consumables (low / replaced)",
80010
+ bad: ["device-consumable-low"],
80011
+ recovery: ["device-consumable-normal"],
80012
+ snapshotLabel: "Consumables low now",
80013
+ snapshotSection: "consumables"
80014
+ },
80015
+ {
80016
+ id: "tanks",
80017
+ family: "device-events",
80018
+ label: "Tanks (low or full / back to normal)",
80019
+ bad: ["device-tank-low", "device-tank-full"],
80020
+ recovery: ["device-tank-normal"],
80021
+ snapshotLabel: "Tanks low or full now",
80022
+ snapshotSection: "tanks"
80023
+ },
80024
+ {
80025
+ id: "recording-health",
80026
+ family: "device-events",
80027
+ label: "Recording health (stalled or degraded / recording again)",
80028
+ bad: ["recording-stalled", "recording-degraded"],
80029
+ recovery: ["recording-healthy"],
80030
+ snapshotLabel: "Recordings stalled now",
80031
+ snapshotSection: null
80032
+ },
80033
+ {
80034
+ id: "node-connectivity",
80035
+ family: "system",
80036
+ label: "Node connectivity (offline / back online)",
80037
+ bad: ["node-offline"],
80038
+ recovery: ["node-online"],
80039
+ snapshotLabel: "Nodes offline now",
80040
+ snapshotSection: "nodes"
80041
+ },
80042
+ {
80043
+ id: "storage-space",
80044
+ family: "system",
80045
+ label: "Storage space (low or critical / ok again)",
80046
+ bad: ["storage-location-low", "storage-location-critical"],
80047
+ recovery: ["storage-location-ok"],
80048
+ snapshotLabel: "Storage locations low now",
80049
+ snapshotSection: null
80050
+ },
80051
+ {
80052
+ id: "critical-alerts",
80053
+ family: "system",
80054
+ label: "Critical alerts (raised / resolved)",
80055
+ bad: ["alert-critical"],
80056
+ recovery: ["alert-critical-resolved"],
80057
+ snapshotLabel: "Critical alerts open now",
80058
+ snapshotSection: null
80059
+ },
80060
+ {
80061
+ id: "rule-health",
80062
+ family: "system",
80063
+ label: "Rule health (broken / repaired)",
80064
+ bad: ["rule-broken"],
80065
+ recovery: ["rule-repaired"],
80066
+ snapshotLabel: "Notification rules broken now",
80067
+ snapshotSection: null
80068
+ }
80069
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
79947
80070
  new Set([
79948
80071
  "disarmed",
79949
80072
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.2.138",
3
+ "version": "0.2.140",
4
4
  "description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
5
5
  "keywords": [
6
6
  "camstack",