@camstack/addon-provider-homeassistant 1.2.148 → 1.2.150
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 +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/{dist-nvulD3Mi.js → dist-B-PoT2TH.js} +760 -321
- package/dist/{dist-DmoYnWid.mjs → dist-BwAVAaOH.mjs} +760 -321
- package/dist/ha-export/ha-export.addon.js +7 -57
- package/dist/ha-export/ha-export.addon.mjs +7 -57
- package/package.json +2 -2
|
@@ -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-B-PoT2TH.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
//#region src/ha-export/topics.ts
|
|
9
9
|
/**
|
|
@@ -4216,60 +4216,6 @@ function resolveCameraFunctionWrite(id, on, reads) {
|
|
|
4216
4216
|
};
|
|
4217
4217
|
}
|
|
4218
4218
|
}
|
|
4219
|
-
//#endregion
|
|
4220
|
-
//#region ../types/dist/node.mjs
|
|
4221
|
-
/**
|
|
4222
|
-
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
4223
|
-
*
|
|
4224
|
-
* ## Why a download, on every node, including the container
|
|
4225
|
-
*
|
|
4226
|
-
* The version of ffmpeg used to be CODE: baked into the image, changeable only
|
|
4227
|
-
* by rebuilding and rolling it. Now it is DATA — this file states the release,
|
|
4228
|
-
* and a node that boots with a different one downloads it. Changing ffmpeg is a
|
|
4229
|
-
* framework bump, not an image rebuild.
|
|
4230
|
-
*
|
|
4231
|
-
* It also settles the licence question by removing it. FFmpeg's licence is
|
|
4232
|
-
* chosen at compile time: the core is LGPL 2.1+, `--enable-gpl` makes it GPL
|
|
4233
|
-
* (for x264/x265), `--enable-version3` makes that v3, and `--enable-nonfree`
|
|
4234
|
-
* makes the result undistributable. These are GPL v3 builds, and we do not
|
|
4235
|
-
* distribute them: the user's own node fetches the archive from the project
|
|
4236
|
-
* that publishes it, so we convey no GPL work and inherit none of the
|
|
4237
|
-
* obligations that come with conveying one. That is the whole reason the image
|
|
4238
|
-
* no longer installs ffmpeg at all — not a technical preference.
|
|
4239
|
-
*
|
|
4240
|
-
* ## Why jellyfin-ffmpeg
|
|
4241
|
-
*
|
|
4242
|
-
* One vendor covering linux-amd64, linux-arm64, darwin-arm64 and darwin-x64
|
|
4243
|
-
* from one release, with the widest hardware surface of anything maintained:
|
|
4244
|
-
* VAAPI, QSV, NVENC/NVDEC, AMF, Vulkan, OpenCL and DRM on amd64, plus Rockchip
|
|
4245
|
-
* MPP on arm64. It reaches the vendor libraries through dlopen trampolines,
|
|
4246
|
-
* so the binary is not linked against a driver stack it may not find.
|
|
4247
|
-
*
|
|
4248
|
-
* **What it still needs from the host, measured 2026-09-19.** On the Unraid
|
|
4249
|
-
* HOST, which has no libva, `-vaapi_device` aborts the process outright —
|
|
4250
|
-
* `implib-gen: libva-drm.so.2: failed to load library ... Assertion '0 &&
|
|
4251
|
-
* "Assertion in generated code"' failed`. Inside our container, which installs
|
|
4252
|
-
* libva plus the iHD driver, the same command encodes: verified end to end with
|
|
4253
|
-
* `testsrc → format=nv12,hwupload → h264_vaapi`. So the image drops ffmpeg and
|
|
4254
|
-
* KEEPS the Intel media stack; the drivers are the part a binary cannot bring.
|
|
4255
|
-
*
|
|
4256
|
-
* ## Why each artifact carries a checksum and a claim
|
|
4257
|
-
*
|
|
4258
|
-
* The download is now the only source, so `sha256` is verified before anything
|
|
4259
|
-
* is extracted — jellyfin publishes no checksums on its release assets, so
|
|
4260
|
-
* these are ours, taken at the version bump. And `expectedHwaccels` is what the
|
|
4261
|
-
* build is supposed to be able to do: a binary that probes short of its own
|
|
4262
|
-
* claim is a source that changed under us, which is precisely what went
|
|
4263
|
-
* unnoticed for months when a static build turned out to carry no VAAPI at all
|
|
4264
|
-
* (D536).
|
|
4265
|
-
*/
|
|
4266
|
-
/** The pinned jellyfin-ffmpeg release. Changing this is the version change. */
|
|
4267
|
-
var FFMPEG_RELEASE = "8.1.2-5";
|
|
4268
|
-
var BASE = `https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v${FFMPEG_RELEASE}`;
|
|
4269
|
-
function portable(target) {
|
|
4270
|
-
return `${BASE}/jellyfin-ffmpeg_${FFMPEG_RELEASE}_portable_${target}-gpl.tar.xz`;
|
|
4271
|
-
}
|
|
4272
|
-
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
4273
4219
|
/**
|
|
4274
4220
|
* The ONE derivation of "a signed, expiring URL".
|
|
4275
4221
|
*
|
|
@@ -4958,6 +4904,7 @@ function projectMotion(deviceKey, input) {
|
|
|
4958
4904
|
* camstack mints the URL and HA fetches the bytes on demand.
|
|
4959
4905
|
*/
|
|
4960
4906
|
function projectTrackLifecycle(deviceKey, track, mediaUrl) {
|
|
4907
|
+
if (track.phase === "end" && track.fusedIntoTrackId !== void 0) return [];
|
|
4961
4908
|
const className = track.bestClassName ?? track.classes[0];
|
|
4962
4909
|
if (className === void 0) return [];
|
|
4963
4910
|
const macro = macroOf(className);
|
|
@@ -6363,6 +6310,7 @@ var HaExportAddon = class extends require_dist.BaseAddon {
|
|
|
6363
6310
|
const plateText = readString(data, "plateText");
|
|
6364
6311
|
const lastSeen = readNumber(data, "lastSeen") ?? Date.now();
|
|
6365
6312
|
const zonesVisited = readStringArray(data, "zonesVisited");
|
|
6313
|
+
const fusedIntoTrackId = readString(data, "fusedIntoTrackId");
|
|
6366
6314
|
const mediaUrl = this.mintTrackMediaUrl(trackId, deviceId);
|
|
6367
6315
|
const values = projectTrackLifecycle(deviceKey, {
|
|
6368
6316
|
deviceId,
|
|
@@ -6373,7 +6321,8 @@ var HaExportAddon = class extends require_dist.BaseAddon {
|
|
|
6373
6321
|
...label !== null ? { label } : {},
|
|
6374
6322
|
...plateText !== null ? { plateText } : {},
|
|
6375
6323
|
lastSeen,
|
|
6376
|
-
zonesVisited
|
|
6324
|
+
zonesVisited,
|
|
6325
|
+
...fusedIntoTrackId !== null ? { fusedIntoTrackId } : {}
|
|
6377
6326
|
}, mediaUrl);
|
|
6378
6327
|
if (values.length === 0) {
|
|
6379
6328
|
this.ctx.logger.debug("ha-export: track produced no exportable state", {
|
|
@@ -6381,7 +6330,8 @@ var HaExportAddon = class extends require_dist.BaseAddon {
|
|
|
6381
6330
|
meta: {
|
|
6382
6331
|
trackId,
|
|
6383
6332
|
bestClassName,
|
|
6384
|
-
phase
|
|
6333
|
+
phase,
|
|
6334
|
+
fusedIntoTrackId
|
|
6385
6335
|
}
|
|
6386
6336
|
});
|
|
6387
6337
|
return;
|
|
@@ -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-BwAVAaOH.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|
|
@@ -4211,60 +4211,6 @@ function resolveCameraFunctionWrite(id, on, reads) {
|
|
|
4211
4211
|
};
|
|
4212
4212
|
}
|
|
4213
4213
|
}
|
|
4214
|
-
//#endregion
|
|
4215
|
-
//#region ../types/dist/node.mjs
|
|
4216
|
-
/**
|
|
4217
|
-
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
4218
|
-
*
|
|
4219
|
-
* ## Why a download, on every node, including the container
|
|
4220
|
-
*
|
|
4221
|
-
* The version of ffmpeg used to be CODE: baked into the image, changeable only
|
|
4222
|
-
* by rebuilding and rolling it. Now it is DATA — this file states the release,
|
|
4223
|
-
* and a node that boots with a different one downloads it. Changing ffmpeg is a
|
|
4224
|
-
* framework bump, not an image rebuild.
|
|
4225
|
-
*
|
|
4226
|
-
* It also settles the licence question by removing it. FFmpeg's licence is
|
|
4227
|
-
* chosen at compile time: the core is LGPL 2.1+, `--enable-gpl` makes it GPL
|
|
4228
|
-
* (for x264/x265), `--enable-version3` makes that v3, and `--enable-nonfree`
|
|
4229
|
-
* makes the result undistributable. These are GPL v3 builds, and we do not
|
|
4230
|
-
* distribute them: the user's own node fetches the archive from the project
|
|
4231
|
-
* that publishes it, so we convey no GPL work and inherit none of the
|
|
4232
|
-
* obligations that come with conveying one. That is the whole reason the image
|
|
4233
|
-
* no longer installs ffmpeg at all — not a technical preference.
|
|
4234
|
-
*
|
|
4235
|
-
* ## Why jellyfin-ffmpeg
|
|
4236
|
-
*
|
|
4237
|
-
* One vendor covering linux-amd64, linux-arm64, darwin-arm64 and darwin-x64
|
|
4238
|
-
* from one release, with the widest hardware surface of anything maintained:
|
|
4239
|
-
* VAAPI, QSV, NVENC/NVDEC, AMF, Vulkan, OpenCL and DRM on amd64, plus Rockchip
|
|
4240
|
-
* MPP on arm64. It reaches the vendor libraries through dlopen trampolines,
|
|
4241
|
-
* so the binary is not linked against a driver stack it may not find.
|
|
4242
|
-
*
|
|
4243
|
-
* **What it still needs from the host, measured 2026-09-19.** On the Unraid
|
|
4244
|
-
* HOST, which has no libva, `-vaapi_device` aborts the process outright —
|
|
4245
|
-
* `implib-gen: libva-drm.so.2: failed to load library ... Assertion '0 &&
|
|
4246
|
-
* "Assertion in generated code"' failed`. Inside our container, which installs
|
|
4247
|
-
* libva plus the iHD driver, the same command encodes: verified end to end with
|
|
4248
|
-
* `testsrc → format=nv12,hwupload → h264_vaapi`. So the image drops ffmpeg and
|
|
4249
|
-
* KEEPS the Intel media stack; the drivers are the part a binary cannot bring.
|
|
4250
|
-
*
|
|
4251
|
-
* ## Why each artifact carries a checksum and a claim
|
|
4252
|
-
*
|
|
4253
|
-
* The download is now the only source, so `sha256` is verified before anything
|
|
4254
|
-
* is extracted — jellyfin publishes no checksums on its release assets, so
|
|
4255
|
-
* these are ours, taken at the version bump. And `expectedHwaccels` is what the
|
|
4256
|
-
* build is supposed to be able to do: a binary that probes short of its own
|
|
4257
|
-
* claim is a source that changed under us, which is precisely what went
|
|
4258
|
-
* unnoticed for months when a static build turned out to carry no VAAPI at all
|
|
4259
|
-
* (D536).
|
|
4260
|
-
*/
|
|
4261
|
-
/** The pinned jellyfin-ffmpeg release. Changing this is the version change. */
|
|
4262
|
-
var FFMPEG_RELEASE = "8.1.2-5";
|
|
4263
|
-
var BASE = `https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v${FFMPEG_RELEASE}`;
|
|
4264
|
-
function portable(target) {
|
|
4265
|
-
return `${BASE}/jellyfin-ffmpeg_${FFMPEG_RELEASE}_portable_${target}-gpl.tar.xz`;
|
|
4266
|
-
}
|
|
4267
|
-
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
4268
4214
|
/**
|
|
4269
4215
|
* The ONE derivation of "a signed, expiring URL".
|
|
4270
4216
|
*
|
|
@@ -4953,6 +4899,7 @@ function projectMotion(deviceKey, input) {
|
|
|
4953
4899
|
* camstack mints the URL and HA fetches the bytes on demand.
|
|
4954
4900
|
*/
|
|
4955
4901
|
function projectTrackLifecycle(deviceKey, track, mediaUrl) {
|
|
4902
|
+
if (track.phase === "end" && track.fusedIntoTrackId !== void 0) return [];
|
|
4956
4903
|
const className = track.bestClassName ?? track.classes[0];
|
|
4957
4904
|
if (className === void 0) return [];
|
|
4958
4905
|
const macro = macroOf(className);
|
|
@@ -6358,6 +6305,7 @@ var HaExportAddon = class extends BaseAddon {
|
|
|
6358
6305
|
const plateText = readString(data, "plateText");
|
|
6359
6306
|
const lastSeen = readNumber(data, "lastSeen") ?? Date.now();
|
|
6360
6307
|
const zonesVisited = readStringArray(data, "zonesVisited");
|
|
6308
|
+
const fusedIntoTrackId = readString(data, "fusedIntoTrackId");
|
|
6361
6309
|
const mediaUrl = this.mintTrackMediaUrl(trackId, deviceId);
|
|
6362
6310
|
const values = projectTrackLifecycle(deviceKey, {
|
|
6363
6311
|
deviceId,
|
|
@@ -6368,7 +6316,8 @@ var HaExportAddon = class extends BaseAddon {
|
|
|
6368
6316
|
...label !== null ? { label } : {},
|
|
6369
6317
|
...plateText !== null ? { plateText } : {},
|
|
6370
6318
|
lastSeen,
|
|
6371
|
-
zonesVisited
|
|
6319
|
+
zonesVisited,
|
|
6320
|
+
...fusedIntoTrackId !== null ? { fusedIntoTrackId } : {}
|
|
6372
6321
|
}, mediaUrl);
|
|
6373
6322
|
if (values.length === 0) {
|
|
6374
6323
|
this.ctx.logger.debug("ha-export: track produced no exportable state", {
|
|
@@ -6376,7 +6325,8 @@ var HaExportAddon = class extends BaseAddon {
|
|
|
6376
6325
|
meta: {
|
|
6377
6326
|
trackId,
|
|
6378
6327
|
bestClassName,
|
|
6379
|
-
phase
|
|
6328
|
+
phase,
|
|
6329
|
+
fusedIntoTrackId
|
|
6380
6330
|
}
|
|
6381
6331
|
});
|
|
6382
6332
|
return;
|
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.150",
|
|
4
4
|
"description": "Home Assistant device provider addon for CamStack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"scripts": {
|
|
125
125
|
"build": "vite build",
|
|
126
126
|
"dev": "vite build --watch",
|
|
127
|
-
"typecheck": "tsc --noEmit",
|
|
127
|
+
"typecheck": "tsc --noEmit -p tsconfig.spec.json",
|
|
128
128
|
"test": "vitest run",
|
|
129
129
|
"publish:npm": "npm publish --access public"
|
|
130
130
|
},
|