@camstack/addon-provider-homeassistant 1.2.148 → 1.2.149

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.
@@ -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-DmoYnWid.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-CpKTdyca.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.148",
3
+ "version": "1.2.149",
4
4
  "description": "Home Assistant device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",