@camstack/addon-provider-homeassistant 1.2.151 → 1.2.153
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 +40 -10
- package/dist/addon.mjs +40 -10
- package/dist/{dist-Cn_fSOpM.js → dist-DMn4t1u_.js} +698 -159
- package/dist/{dist-DFsf2z4Q.mjs → dist-evNLjXgk.mjs} +698 -159
- package/dist/ha-export/ha-export.addon.js +15 -15
- package/dist/ha-export/ha-export.addon.mjs +15 -15
- package/package.json +1 -3
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
//#endregion
|
|
6
|
-
const require_dist = require("../dist-
|
|
6
|
+
const require_dist = require("../dist-DMn4t1u_.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
//#region src/ha-export/topics.ts
|
|
9
9
|
/**
|
|
@@ -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
|
-
*
|
|
4025
|
+
* Performs the WRITE of a camera function on the authority that owns it.
|
|
4026
4026
|
*
|
|
4027
4027
|
* `deriveCameraFunctions`/`resolveCameraFunctionWrite` (`camera-functions.ts`)
|
|
4028
|
-
*
|
|
4029
|
-
* `scripts/check-switch-successor-surfaces.ts`
|
|
4030
|
-
*
|
|
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
|
-
/**
|
|
4090
|
+
/** The wrapper that WRITES the history: tracks, events and their media. */
|
|
4091
4091
|
var PIPELINE_ANALYTICS_CAP = "pipeline-analytics";
|
|
4092
|
-
/**
|
|
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
|
-
*
|
|
4117
|
-
*
|
|
4118
|
-
*
|
|
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` =
|
|
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-
|
|
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-evNLjXgk.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|
|
@@ -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
|
-
*
|
|
4020
|
+
* Performs the WRITE of a camera function on the authority that owns it.
|
|
4021
4021
|
*
|
|
4022
4022
|
* `deriveCameraFunctions`/`resolveCameraFunctionWrite` (`camera-functions.ts`)
|
|
4023
|
-
*
|
|
4024
|
-
* `scripts/check-switch-successor-surfaces.ts`
|
|
4025
|
-
*
|
|
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
|
-
/**
|
|
4085
|
+
/** The wrapper that WRITES the history: tracks, events and their media. */
|
|
4086
4086
|
var PIPELINE_ANALYTICS_CAP = "pipeline-analytics";
|
|
4087
|
-
/**
|
|
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
|
-
*
|
|
4112
|
-
*
|
|
4113
|
-
*
|
|
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` =
|
|
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.
|
|
3
|
+
"version": "1.2.153",
|
|
4
4
|
"description": "Home Assistant device provider addon for CamStack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -17,10 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "./dist/index.js",
|
|
19
19
|
"module": "./dist/index.mjs",
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
20
|
"exports": {
|
|
22
21
|
".": {
|
|
23
|
-
"types": "./dist/index.d.ts",
|
|
24
22
|
"import": "./dist/index.mjs",
|
|
25
23
|
"require": "./dist/index.js"
|
|
26
24
|
},
|