@camstack/addon-provider-homeassistant 1.2.104 → 1.2.105
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-Ds45JTMq.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let node_zlib = require("node:zlib");
|
|
5
5
|
//#region src/ha-device-source.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-
|
|
1
|
+
import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-4WKeNf6a.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
|
|
4
4
|
//#region src/ha-device-source.ts
|
|
@@ -21100,6 +21100,22 @@ var occupancyRecheckFramesField = {
|
|
|
21100
21100
|
step: 1
|
|
21101
21101
|
};
|
|
21102
21102
|
/**
|
|
21103
|
+
* Frames one PRE-ROLL catch-up burst may send to inference at session open.
|
|
21104
|
+
*
|
|
21105
|
+
* The default of 12 over a ~4 s retained window is one frame per ~333 ms of
|
|
21106
|
+
* footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
|
|
21107
|
+
* fleet measures — one-shot, and only ever taken while a permit would still be
|
|
21108
|
+
* spare for live. `0` turns the burst off entirely (the history is still
|
|
21109
|
+
* decoded, because that is how the dial reaches a decodable GOP, and is then
|
|
21110
|
+
* discarded — the pre-D411 behaviour).
|
|
21111
|
+
*/
|
|
21112
|
+
var preRollInferenceFramesField = {
|
|
21113
|
+
min: 0,
|
|
21114
|
+
max: 30,
|
|
21115
|
+
default: 12,
|
|
21116
|
+
step: 1
|
|
21117
|
+
};
|
|
21118
|
+
/**
|
|
21103
21119
|
* Source enum for motion signals fed to the runner. Extensible — add
|
|
21104
21120
|
* new variants here when new motion-trigger paths are wired in
|
|
21105
21121
|
* (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
|
|
@@ -21340,6 +21356,31 @@ var RunnerCameraConfigSchema = object({
|
|
|
21340
21356
|
* to every occupancy rule until something moved in front of it. The churn is
|
|
21341
21357
|
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
21342
21358
|
*/
|
|
21359
|
+
/**
|
|
21360
|
+
* Infer the session's PRE-ROLL — the retained history the restreamer replays
|
|
21361
|
+
* at session open — instead of decoding it and throwing it away.
|
|
21362
|
+
*
|
|
21363
|
+
* DEFAULT `true`, and the default is the argument. This is not a new
|
|
21364
|
+
* capability being offered cautiously: the pre-roll is ALREADY requested,
|
|
21365
|
+
* already served, already decoded and already paid for on every on-motion
|
|
21366
|
+
* detection session that asks for history. What shipped was a last-moment
|
|
21367
|
+
* discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
|
|
21368
|
+
* arriving inside a few hundred ms of wall clock looks to it like one frame's
|
|
21369
|
+
* worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
|
|
21370
|
+
* recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
|
|
21371
|
+
* 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
|
|
21372
|
+
* was decoded, and was freed.
|
|
21373
|
+
*
|
|
21374
|
+
* Shipping that as opt-in would ship the bug: an operator cannot discover a
|
|
21375
|
+
* setting whose absence looks exactly like a camera that noticed the cyclist
|
|
21376
|
+
* late. What makes ON safe is not a switch but the BOUND —
|
|
21377
|
+
* `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
|
|
21378
|
+
* the last inference permit — so the switch exists for the camera where the
|
|
21379
|
+
* history is worthless (a doorbell whose subject is always already at the
|
|
21380
|
+
* door), not as a hedge against the feature.
|
|
21381
|
+
*/
|
|
21382
|
+
preRollInferenceEnabled: boolean().default(true),
|
|
21383
|
+
preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
|
|
21343
21384
|
occupancyRecheckEnabled: boolean().default(true),
|
|
21344
21385
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
21345
21386
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
@@ -21368,7 +21409,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21368
21409
|
*/
|
|
21369
21410
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
21370
21411
|
});
|
|
21371
|
-
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
21412
|
+
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
21372
21413
|
/**
|
|
21373
21414
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
21374
21415
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -21100,6 +21100,22 @@ var occupancyRecheckFramesField = {
|
|
|
21100
21100
|
step: 1
|
|
21101
21101
|
};
|
|
21102
21102
|
/**
|
|
21103
|
+
* Frames one PRE-ROLL catch-up burst may send to inference at session open.
|
|
21104
|
+
*
|
|
21105
|
+
* The default of 12 over a ~4 s retained window is one frame per ~333 ms of
|
|
21106
|
+
* footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
|
|
21107
|
+
* fleet measures — one-shot, and only ever taken while a permit would still be
|
|
21108
|
+
* spare for live. `0` turns the burst off entirely (the history is still
|
|
21109
|
+
* decoded, because that is how the dial reaches a decodable GOP, and is then
|
|
21110
|
+
* discarded — the pre-D411 behaviour).
|
|
21111
|
+
*/
|
|
21112
|
+
var preRollInferenceFramesField = {
|
|
21113
|
+
min: 0,
|
|
21114
|
+
max: 30,
|
|
21115
|
+
default: 12,
|
|
21116
|
+
step: 1
|
|
21117
|
+
};
|
|
21118
|
+
/**
|
|
21103
21119
|
* Source enum for motion signals fed to the runner. Extensible — add
|
|
21104
21120
|
* new variants here when new motion-trigger paths are wired in
|
|
21105
21121
|
* (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
|
|
@@ -21340,6 +21356,31 @@ var RunnerCameraConfigSchema = object({
|
|
|
21340
21356
|
* to every occupancy rule until something moved in front of it. The churn is
|
|
21341
21357
|
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
21342
21358
|
*/
|
|
21359
|
+
/**
|
|
21360
|
+
* Infer the session's PRE-ROLL — the retained history the restreamer replays
|
|
21361
|
+
* at session open — instead of decoding it and throwing it away.
|
|
21362
|
+
*
|
|
21363
|
+
* DEFAULT `true`, and the default is the argument. This is not a new
|
|
21364
|
+
* capability being offered cautiously: the pre-roll is ALREADY requested,
|
|
21365
|
+
* already served, already decoded and already paid for on every on-motion
|
|
21366
|
+
* detection session that asks for history. What shipped was a last-moment
|
|
21367
|
+
* discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
|
|
21368
|
+
* arriving inside a few hundred ms of wall clock looks to it like one frame's
|
|
21369
|
+
* worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
|
|
21370
|
+
* recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
|
|
21371
|
+
* 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
|
|
21372
|
+
* was decoded, and was freed.
|
|
21373
|
+
*
|
|
21374
|
+
* Shipping that as opt-in would ship the bug: an operator cannot discover a
|
|
21375
|
+
* setting whose absence looks exactly like a camera that noticed the cyclist
|
|
21376
|
+
* late. What makes ON safe is not a switch but the BOUND —
|
|
21377
|
+
* `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
|
|
21378
|
+
* the last inference permit — so the switch exists for the camera where the
|
|
21379
|
+
* history is worthless (a doorbell whose subject is always already at the
|
|
21380
|
+
* door), not as a hedge against the feature.
|
|
21381
|
+
*/
|
|
21382
|
+
preRollInferenceEnabled: boolean().default(true),
|
|
21383
|
+
preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
|
|
21343
21384
|
occupancyRecheckEnabled: boolean().default(true),
|
|
21344
21385
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
21345
21386
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
@@ -21368,7 +21409,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21368
21409
|
*/
|
|
21369
21410
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
21370
21411
|
});
|
|
21371
|
-
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
21412
|
+
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
21372
21413
|
/**
|
|
21373
21414
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
21374
21415
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -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-Ds45JTMq.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
//#region src/ha-export/topics.ts
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-
|
|
1
|
+
import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-4WKeNf6a.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|