@chrisalvir1/camera-ui-homekit-4k

中文文档
0.6.32发布于 2026/11/06SEE LICENSE IN LICENSE.mdTypeScriptCommonJS零依赖近 30 天下载 7495

Exports Camera.UI cameras to Apple Home with H.264/HKSV and HEVC/HKSV3 streaming paths.

原始使用文档
文档目录4 节
  1. Current behavior
  2. Requirements and installation
  3. Development
  4. Public release status

HOMEKIT 4K — by Chrisalvir

HOMEKIT 4K — by Chrisalvir

Versión actual: v0.6.32 · Último Release · Changelog

HomeKit 4K exports cameras assigned to the plugin in Camera.UI as separate Apple Home accessories. Camera.UI remains the source of camera streams, capabilities, sensors, and detector configuration.

When Camera.UI assigns a camera to this plugin, the plugin probes its available source and publishes it automatically once it can confirm H.264 or HEVC. A user can stop a camera's export in that camera's settings; this choice persists and prevents automatic republication. An unavailable/unknown source is retried a few times; selecting a different source in that camera's settings retries it.

Novedades de v0.6.32: migración del runtime de compatibilidad a HAP-NodeJS 2.3.0, preservación de emparejamientos y almacenamiento existentes, metadatos reales de cámara en Apple Home, actualización de dependencias compatibles y validación ampliada en Node 22/24/26. Consulta el changelog para el detalle de cada versión.

Current behavior

  • H.264 sources at or below 1920×1080 are sent without video transcoding; measured larger H.264 sources use a 1920×1080 output path. Audio is handled separately according to HomeKit negotiation.
  • HEVC/H.265 uses its separate live and HKSV3 paths. HEVC recording and live implementations are isolated from the H.264 resolution policy.
  • Camera.UI motion and visual detection events feed HomeKit's motion trigger for both H.264/HKSV and HEVC/HKSV3 accessories. The bridge forwards observations; it does not force-enable CoreML/OpenCV, bypass their zones or thresholds, or dictate Apple's final People/Animals/Vehicles classification.
  • HomeKit recording choices and clip classification are controlled by the paired Home Hub and the settings in Apple Home. A plugin event or HDS media request alone does not prove that Apple saved a clip. In the latest real validation, a Tapo vehicle event reached the bridge and caused a Home Hub media request; saved vehicle/animal clips were not yet confirmed.
  • Pairing identities and per-camera persistent settings are stored by the Camera.UI plugin runtime. Do not delete them when updating the package.

Requirements and installation

The package declares Camera.UI >=2.3.0 and Node.js on the supported LTS lines ^22.18.0, ^24 or ^26. Starting with 0.6.15, npm allows installation on macOS, Windows, and Linux on x64 or ARM64. The runtime has only been exercised on macOS ARM64; Windows, Linux, and macOS Intel still need real-host validation before they can be called verified. In Camera.UI's plugin store, search for the shorter text camera-ui-homekit-4k and select the scoped package @chrisalvir1/camera-ui-homekit-4k.

Development

pnpm install --frozen-lockfile
pnpm check
pnpm test:coverage
pnpm bundle:camera-ui
pnpm smoke:bundle

Automated checks and real-host evidence are different: test results do not replace playback, recording, or detection confirmation in Apple Home. See the public codec-profile notes.

Public release status

The package is public on npm under a proprietary license: users may download, install, and run an unmodified copy; modifying or redistributing it is not permitted without the author's written permission. The current GitHub version is listed under Releases. Use Camera.UI's supported plugin installer to install the latest public release.

版本与发布记录

@chrisalvir1/camera-ui-homekit-4k 共发布 46 个版本,首次发布于 2026/10/21;过去 12 个月发布了 46 个版本。

版本发布日期距今
0.6.32latest2026/11/063 天前
0.6.312026/11/018 天前
0.6.302026/10/2416 天前
0.6.292026/10/2416 天前
0.6.282026/10/2416 天前
0.6.272026/10/2416 天前

其他发布通道:beta → 0.6.26-beta.28。

关于 @chrisalvir1/camera-ui-homekit-4k 的常见问题

@chrisalvir1/camera-ui-homekit-4k 是什么?

Exports Camera.UI cameras to Apple Home with H.264/HKSV and HEVC/HKSV3 streaming paths.

如何安装 @chrisalvir1/camera-ui-homekit-4k?

在项目目录运行 npm install @chrisalvir1/camera-ui-homekit-4k,或使用 pnpm add / yarn add / bun add。

@chrisalvir1/camera-ui-homekit-4k 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@chrisalvir1/camera-ui-homekit-4k 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@chrisalvir1/camera-ui-homekit-4k 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js ^22.18.0 || ^24 || ^26。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@chrisalvir1/camera-ui-homekit-4k 可以商用吗?

@chrisalvir1/camera-ui-homekit-4k 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@chrisalvir1/camera-ui-homekit-4k 的下载量有多少?

根据 npm 官方下载统计,@chrisalvir1/camera-ui-homekit-4k 在 2026/10/10 – 2026/11/08 这 30 天内被下载 7,495 次,日均约 250 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@chrisalvir1/camera-ui-homekit-4k 还在维护吗?

最新版本 0.6.32 发布于 2026/11/06(3 天前);至今共发布 46 个版本,其中过去 12 个月发布了 46 个;首次发布于 2026/10/21。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。