@camstack/addon-provider-homeassistant 1.2.150 → 1.2.152

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.
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  //#endregion
6
- const require_dist = require("../dist-B-PoT2TH.js");
6
+ const require_dist = require("../dist-nbfaHTXG.js");
7
7
  let node_crypto = require("node:crypto");
8
8
  //#region src/ha-export/topics.ts
9
9
  /**
@@ -1427,7 +1427,7 @@ function cameraSpecs(device) {
1427
1427
  * `doorbell` cap bound rings, and the operator automates on the ring the same
1428
1428
  * way they automate on `person_detected`. Reolink's own doorbell is exactly
1429
1429
  * this shape (`ReolinkSimpleEvent.type === 'doorbell'` at the camera level),
1430
- * and so is any camera the `virtual-doorbell` wrapper is pointed at.
1430
+ * and so is any camera composed into a doorbell by its customization (D671).
1431
1431
  *
1432
1432
  * Every entity here is fed by the `doorbell` runtime-state slice
1433
1433
  * (`lastPressedAt`, `pressCountSinceStart`) on `device.state-changed` —
@@ -4022,12 +4022,12 @@ async function call(slice, capName, make) {
4022
4022
  //#endregion
4023
4023
  //#region src/ha-export/camera-function-writes.ts
4024
4024
  /**
4025
- * Esegue la SCRITTURA di una funzione camera sull'autorità che la possiede.
4025
+ * Performs the WRITE of a camera function on the authority that owns it.
4026
4026
  *
4027
4027
  * `deriveCameraFunctions`/`resolveCameraFunctionWrite` (`camera-functions.ts`)
4028
- * decidono; questo modulo agisce. È il file che
4029
- * `scripts/check-switch-successor-surfaces.ts` punta come successore della
4030
- * coppia deprecata `getCameraSwitches` / `setCameraSwitch` (D113 fase 4).
4028
+ * decide; this module acts. It is the file that
4029
+ * `scripts/check-switch-successor-surfaces.ts` points to as the successor of the
4030
+ * deprecated pair `getCameraSwitches` / `setCameraSwitch` (D113 phase 4).
4031
4031
  */
4032
4032
  async function applyCameraFunctionWrite(api, deviceId, write, sourceNodeId) {
4033
4033
  switch (write.kind) {
@@ -4087,9 +4087,9 @@ async function applyCameraFunctionWrite(api, deviceId, write, sourceNodeId) {
4087
4087
  //#region src/ha-export/camera-functions.ts
4088
4088
  var DETECTION_CAP = "detection-pipeline";
4089
4089
  var AUDIO_ANALYSIS_CAP = "audio-analysis";
4090
- /** Il wrapper che SCRIVE la storia: tracce, eventi e i loro media. */
4090
+ /** The wrapper that WRITES the history: tracks, events and their media. */
4091
4091
  var PIPELINE_ANALYTICS_CAP = "pipeline-analytics";
4092
- /** Ordine di resa: raggio d'azione più ampio prima, sorgente prima del consumatore. */
4092
+ /** Render order: widest reach first, source before consumer. */
4093
4093
  var ORDER = [
4094
4094
  "stream-broker",
4095
4095
  "object-detection",
@@ -4113,9 +4113,9 @@ var LABELS = {
4113
4113
  notifications: "Notifications"
4114
4114
  };
4115
4115
  /**
4116
- * Quale cap sta dietro ogni switch wrapper-backed. Una mappa invece di un
4117
- * ternario: con tre voci il ternario diventava una catena, e la prossima voce
4118
- * sarebbe finita silenziosamente sul ramo sbagliato.
4116
+ * Which cap stands behind each wrapper-backed switch. A map instead of a
4117
+ * ternary: with three entries the ternary became a chain, and the next entry
4118
+ * would have silently landed on the wrong branch.
4119
4119
  */
4120
4120
  var WRAPPER_CAP_BY_ID = {
4121
4121
  "object-detection": DETECTION_CAP,
@@ -4173,7 +4173,7 @@ function deriveCameraFunctions(reads) {
4173
4173
  ...resolveOne(id, reads)
4174
4174
  }));
4175
4175
  }
4176
- /** `null` = non disponibile: la scrittura va RIFIUTATA, non approssimata. */
4176
+ /** `null` = not available: the write must be REFUSED, not approximated. */
4177
4177
  function resolveCameraFunctionWrite(id, on, reads) {
4178
4178
  if (!resolveOne(id, reads).available) return null;
4179
4179
  switch (id) {
@@ -5333,7 +5333,7 @@ function notificationCenterSpecs(input) {
5333
5333
  (
5334
5334
  /**
5335
5335
  * The last trigger, six entities: five facts plus its picture — "conoscere
5336
- * gli ultimi trigger, le ultime immagini... e da quale label" (operator,
5336
+ * gli ultimi trigger, le ultime immagini... e da quale label" [know the latest triggers, the latest images... and from which label] (operator,
5337
5337
  * 2026-08-25). ENABLED by default like every other entity on this device
5338
5338
  * (see {@link buildComponents}'s docblock): a rule the operator wrote is a
5339
5339
  * rule they want to watch fire.
@@ -6355,7 +6355,7 @@ var HaExportAddon = class extends require_dist.BaseAddon {
6355
6355
  * `className` and no `confidence`; reading those invented names mapped
6356
6356
  * every window to `[]`, so `audio_last_sound` sat at `unknown` for ever
6357
6357
  * while the analyzer was classifying happily (found 2026-08-09, symptom:
6358
- * "le audio labels sembrano non arrivare").
6358
+ * "le audio labels sembrano non arrivare" [the audio labels seem not to arrive]).
6359
6359
  *
6360
6360
  * The best LABEL wins over the macro: `audio` as a value tells an operator
6361
6361
  * nothing, `dog` or `crying` is the whole point. Falls back to the macro
@@ -6724,8 +6724,8 @@ var HaExportAddon = class extends require_dist.BaseAddon {
6724
6724
  /**
6725
6725
  * The most recent notification-rule trigger, GLOBAL and PER RULE —
6726
6726
  * "conoscere gli ultimi trigger, le ultime immagini... e da quale label"
6727
- * (operator, 2026-08-25), extended to "l'ultimo trigger PER REGOLA, con
6728
- * immagine e metadati" (operator, 2026-08-27).
6727
+ * [know the latest triggers, the latest images... and from which label] (operator, 2026-08-25), extended to "l'ultimo trigger PER REGOLA, con
6728
+ * immagine e metadati" [the latest trigger PER RULE, with image and metadata] (operator, 2026-08-27).
6729
6729
  *
6730
6730
  * ONE `getHistory` read serves BOTH: `reduceLastTriggers`
6731
6731
  * (`rule-triggers.ts`) reduces the same newest-first page into "the very
@@ -1,4 +1,4 @@
1
- import { C as buildAddonRouteProvider, F as deviceExportCapability, Nt as EventCategory, Q as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, kt as string, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, xt as nodePin, yt as BaseAddon } from "../dist-BwAVAaOH.mjs";
1
+ import { C as buildAddonRouteProvider, F as deviceExportCapability, Nt as EventCategory, Q as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, kt as string, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, xt as nodePin, yt as BaseAddon } from "../dist-BITMr6s5.mjs";
2
2
  import { createHmac, timingSafeEqual } from "node:crypto";
3
3
  //#region src/ha-export/topics.ts
4
4
  /**
@@ -1422,7 +1422,7 @@ function cameraSpecs(device) {
1422
1422
  * `doorbell` cap bound rings, and the operator automates on the ring the same
1423
1423
  * way they automate on `person_detected`. Reolink's own doorbell is exactly
1424
1424
  * this shape (`ReolinkSimpleEvent.type === 'doorbell'` at the camera level),
1425
- * and so is any camera the `virtual-doorbell` wrapper is pointed at.
1425
+ * and so is any camera composed into a doorbell by its customization (D671).
1426
1426
  *
1427
1427
  * Every entity here is fed by the `doorbell` runtime-state slice
1428
1428
  * (`lastPressedAt`, `pressCountSinceStart`) on `device.state-changed` —
@@ -4017,12 +4017,12 @@ async function call(slice, capName, make) {
4017
4017
  //#endregion
4018
4018
  //#region src/ha-export/camera-function-writes.ts
4019
4019
  /**
4020
- * Esegue la SCRITTURA di una funzione camera sull'autorità che la possiede.
4020
+ * Performs the WRITE of a camera function on the authority that owns it.
4021
4021
  *
4022
4022
  * `deriveCameraFunctions`/`resolveCameraFunctionWrite` (`camera-functions.ts`)
4023
- * decidono; questo modulo agisce. È il file che
4024
- * `scripts/check-switch-successor-surfaces.ts` punta come successore della
4025
- * coppia deprecata `getCameraSwitches` / `setCameraSwitch` (D113 fase 4).
4023
+ * decide; this module acts. It is the file that
4024
+ * `scripts/check-switch-successor-surfaces.ts` points to as the successor of the
4025
+ * deprecated pair `getCameraSwitches` / `setCameraSwitch` (D113 phase 4).
4026
4026
  */
4027
4027
  async function applyCameraFunctionWrite(api, deviceId, write, sourceNodeId) {
4028
4028
  switch (write.kind) {
@@ -4082,9 +4082,9 @@ async function applyCameraFunctionWrite(api, deviceId, write, sourceNodeId) {
4082
4082
  //#region src/ha-export/camera-functions.ts
4083
4083
  var DETECTION_CAP = "detection-pipeline";
4084
4084
  var AUDIO_ANALYSIS_CAP = "audio-analysis";
4085
- /** Il wrapper che SCRIVE la storia: tracce, eventi e i loro media. */
4085
+ /** The wrapper that WRITES the history: tracks, events and their media. */
4086
4086
  var PIPELINE_ANALYTICS_CAP = "pipeline-analytics";
4087
- /** Ordine di resa: raggio d'azione più ampio prima, sorgente prima del consumatore. */
4087
+ /** Render order: widest reach first, source before consumer. */
4088
4088
  var ORDER = [
4089
4089
  "stream-broker",
4090
4090
  "object-detection",
@@ -4108,9 +4108,9 @@ var LABELS = {
4108
4108
  notifications: "Notifications"
4109
4109
  };
4110
4110
  /**
4111
- * Quale cap sta dietro ogni switch wrapper-backed. Una mappa invece di un
4112
- * ternario: con tre voci il ternario diventava una catena, e la prossima voce
4113
- * sarebbe finita silenziosamente sul ramo sbagliato.
4111
+ * Which cap stands behind each wrapper-backed switch. A map instead of a
4112
+ * ternary: with three entries the ternary became a chain, and the next entry
4113
+ * would have silently landed on the wrong branch.
4114
4114
  */
4115
4115
  var WRAPPER_CAP_BY_ID = {
4116
4116
  "object-detection": DETECTION_CAP,
@@ -4168,7 +4168,7 @@ function deriveCameraFunctions(reads) {
4168
4168
  ...resolveOne(id, reads)
4169
4169
  }));
4170
4170
  }
4171
- /** `null` = non disponibile: la scrittura va RIFIUTATA, non approssimata. */
4171
+ /** `null` = not available: the write must be REFUSED, not approximated. */
4172
4172
  function resolveCameraFunctionWrite(id, on, reads) {
4173
4173
  if (!resolveOne(id, reads).available) return null;
4174
4174
  switch (id) {
@@ -5328,7 +5328,7 @@ function notificationCenterSpecs(input) {
5328
5328
  (
5329
5329
  /**
5330
5330
  * The last trigger, six entities: five facts plus its picture — "conoscere
5331
- * gli ultimi trigger, le ultime immagini... e da quale label" (operator,
5331
+ * gli ultimi trigger, le ultime immagini... e da quale label" [know the latest triggers, the latest images... and from which label] (operator,
5332
5332
  * 2026-08-25). ENABLED by default like every other entity on this device
5333
5333
  * (see {@link buildComponents}'s docblock): a rule the operator wrote is a
5334
5334
  * rule they want to watch fire.
@@ -6350,7 +6350,7 @@ var HaExportAddon = class extends BaseAddon {
6350
6350
  * `className` and no `confidence`; reading those invented names mapped
6351
6351
  * every window to `[]`, so `audio_last_sound` sat at `unknown` for ever
6352
6352
  * while the analyzer was classifying happily (found 2026-08-09, symptom:
6353
- * "le audio labels sembrano non arrivare").
6353
+ * "le audio labels sembrano non arrivare" [the audio labels seem not to arrive]).
6354
6354
  *
6355
6355
  * The best LABEL wins over the macro: `audio` as a value tells an operator
6356
6356
  * nothing, `dog` or `crying` is the whole point. Falls back to the macro
@@ -6719,8 +6719,8 @@ var HaExportAddon = class extends BaseAddon {
6719
6719
  /**
6720
6720
  * The most recent notification-rule trigger, GLOBAL and PER RULE —
6721
6721
  * "conoscere gli ultimi trigger, le ultime immagini... e da quale label"
6722
- * (operator, 2026-08-25), extended to "l'ultimo trigger PER REGOLA, con
6723
- * immagine e metadati" (operator, 2026-08-27).
6722
+ * [know the latest triggers, the latest images... and from which label] (operator, 2026-08-25), extended to "l'ultimo trigger PER REGOLA, con
6723
+ * immagine e metadati" [the latest trigger PER RULE, with image and metadata] (operator, 2026-08-27).
6724
6724
  *
6725
6725
  * ONE `getHistory` read serves BOTH: `reduceLastTriggers`
6726
6726
  * (`rule-triggers.ts`) reduces the same newest-first page into "the very
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homeassistant",
3
- "version": "1.2.150",
3
+ "version": "1.2.152",
4
4
  "description": "Home Assistant device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",