Skip to content

Releases

v1.0.5

Choose a tag to compare

@github-actions github-actions released this 25 Nov 05:27
258a596

Added

  • Support Node.js 26. The plugin accepts Node.js ^22.12.0 || ^24 || ^26, the same range as Homebridge 2.5. CI and the release workflow test on Node.js 22, 24 and 26 (#64).
  • Use the Protect 7.4.102 Integration API contract (#65):
    • The generated schemas accept the new sensor.isMountedIncorrectly and nvr.featureFlags fields.
    • The generated schemas also accept payloads from 7.3.x consoles, which do not send these fields.
    • The schema generator supports the minProperties keyword.
  • Show the documentation for Intel GPU access in the official Homebridge Docker image. The document tells you how to install FFmpeg and the drivers, and how to examine the encoder.

Fixed

  • Examine each hardware encoder at 720p with a target bitrate before the plugin selects it. If a driver accepts only encoding without a bitrate, the plugin uses the next encoder or software encoding. Live view does not fail.
  • Motion, smart-detection, smoke and carbon monoxide sensors are clear when Homebridge starts. Before, a sensor that was active at shutdown stayed "detected" until the next event (#66).
  • Snapshots and HomeKit writes do not wait behind slow requests (#67):
    • A snapshot request has a 5-second limit and one retry.
    • A write has a 7-second limit. A failed write shows an error in the Home app before HomeKit stops the request.
    • Two snapshot requests for the same camera share one request to the console.
    • If a snapshot fails, the plugin sends the last snapshot when it is less than 60 seconds old.
    • A request that waits for a retry does not keep its position in the queue.
    • The plugin does not retry a talkback or stream creation request after a timeout, because the console possibly created the session already.
  • If a different talkback session is open on the doorbell, the plugin writes one log message: "talkback busy". The plugin does not retry (#65).
  • When you drag the chime volume slider from off, the chime goes to the volume that you set. Before, the volume sometimes went to 100% (#68).
  • After a failed light, status LED or chime change, the tile does not stay on "No Response". Before, the tile showed "No Response" until the next device update (#68).
  • The plugin sends chime volume changes one at a time. While one change is in progress, the plugin keeps only the newest change. If a change waits too long, it fails immediately, before HomeKit stops the request (#68).
  • If the console refuses a WebSocket subscription, the plugin closes the connection immediately and connects again without delay. After an API key error, the plugin does not connect again (#69).
  • If FFmpeg stops unexpectedly during live view, the plugin tells HomeKit to stop the stream. It also stops the talkback encoder and closes the audio socket. Before, the Home app showed a frozen image (#70).
  • The plugin and the settings UI can read the certificate from a console with an IPv6 address in brackets, for example [fd00::1]. Before, the connection failed with ENOTFOUND (#72).
  • The plugin writes config.json to a temporary file and then renames it. A crash during the write does not damage config.json. If config.json is a symbolic link, the plugin updates the file that the link points to. The new file keeps the owner, group and permissions of the original file. If the plugin cannot keep them, it does not change config.json (#71).
  • After a request deadline ends, the plugin does not send the request again (#67).
  • The request time limit is now absolute. Before, a console that sent data slowly could keep a request open after its time limit (#67).

Security

  • The settings server examines the console address before it sends a request. It refuses an address with a path, query, fragment, credentials or spaces (#72).
  • The settings server and the plugin accept only printable ASCII characters in the API key. Before, a pasted zero-width space or dash caused an unclear network error. Error messages do not show the API key (#72).
  • The settings server gives a clear error when the console sends a response with an incorrect shape. Before, it gave an unclear error (#72).

Changed

  • npm run lint fails on all deprecated APIs. It uses the no-deprecated rule with type information from typescript-eslint. The audit found no deprecated API calls (#64).
  • Update the dependencies: Homebridge 2.5.0 (HAP-NodeJS 2.3.0), @homebridge/plugin-ui-utils 2.3.0, ws 8.23.0 and the development tools. @types/node stays on 22, the lowest supported Node.js version. TypeScript stays on 6.0.3, because typescript-eslint does not support TypeScript 7.
  • Add the November 2026 compatibility audit.
  • All documentation follows ASD-STE100 Simplified Technical English.

v1.0.4

Choose a tag to compare

@github-actions github-actions released this 28 Oct 02:46
184fe68

Fixed

  • Chime mute/unmute now restores the previous audible level after a normal device update or discovery while muted, rather than jumping to full volume.
  • Bound accessory names to HomeKit's 64-character limit without splitting surrogate pairs, retaining the package-camera suffix and existing accessory identities.
  • Declare the missing nodemon development dependency while preserving the existing rebuild/restart watch workflow.
  • Device-subscription add, remove and bulk-ID frames now request a coalesced inventory refresh instead of being treated as scalar updates. Existing delayed-removal and shutdown safeguards preserve cached accessories.
  • The read-only Protect diagnostic uses the documented RTSPS GET response, including null URLs for streams not yet created, and requests native snapshots rather than forcing unsupported full HD. It also works with process environment variables when no .env file exists.

Security

  • Development tooling only (not in the published package): an npm override moves katex to 0.18 (GHSA-238p-pmpm-9mq7, low). It reaches the lint setup through @antfu/eslint-config → @eslint/markdown → micromark-extension-math, whose latest release allows only ^0.16. npm audit now reports no vulnerabilities.

Changed

  • Refresh the vendored official Protect contract and generated schemas to 7.3.70, retaining historical hardware fixtures and guarded optional-field overrides.
  • Enforce zero-warning lint and the measured baseline coverage floors; CI uploads LCOV to Codecov with project and patch statuses.
  • Check manifest and lockfile version agreement before CI/release packaging, declare the HAP transport in plugin metadata, and prepare version 1.0.4.
  • Document the October 2026 Homebridge/Protect audit, TypeScript 7 compiler verification and the TypeScript 6 ESLint limitation. Correct development prerequisites and the unavailable Homebridge UI schema-check command.
  • Pull requests get path labels and at most one type label, bug or enhancement, from the shared tinkerologie PR labeler. Dependabot pull requests whose largest update is a patch or minor version merge automatically once the checks and commit statuses on their head commit have finished without a failure (a Codecov check that is still pending is not waited for; a Codecov failure blocks); majors, and pull requests with open review threads, stay for review.
  • Releases are split into two jobs. After the Test job's lint and tests, a read-only Package job installs dependencies, builds and packs the tarball; a separate Publish job, the only one with write access and an npm OIDC identity, publishes that tarball with lifecycle scripts disabled and creates the GitHub release. Dependency install scripts and the project's own build and test code therefore never run with publishing credentials, and the Publish job installs nothing (it checks that Node 24's bundled npm supports trusted publishing instead of upgrading npm). The Publish job checks npm again before publishing: a re-run after a partial failure skips the publish when npm already has that run's exact tarball and still creates the release; publishing runs one at a time, so a racing run that finds a different package on npm fails instead of publishing twice; and the tarball is kept for 7 days for such re-runs.
  • Release workflows hardened (least-privilege job permissions, no expressions in shell scripts, no persisted checkout credentials, no dependency caches); scheduled workflows run on Australia/Brisbane time. LICENSE now contains the complete Apache License 2.0 text.
  • Workflow layout tidied after the release hardening (no behaviour change): permissions: blocks moved back to the top of their workflow or job in release.yml.
  • Tinkerologie-Bot governance report updated to v1.4.3: an older run can no longer post a stale report after a newer run passed. Workflow formatting tidied.
  • Repository standardised to the tinkerologie layout (STANDARDS.md in tinkerologie/.github): workflows renamed to the standard set (CI, Validate, Release, PR Governance, ...), every action pinned to a commit SHA, shared Dependabot, .editorconfig, .gitattributes and CODEOWNERS files, and organization-wide labels and community files.
  • Tinkerologie-Bot's comment is now a readable "Pull request checklist": each problem is a numbered heading with plain-English guidance and its items listed underneath, and report updates for a pull request are serialised so an older run can never overwrite a newer one.
  • Contribution governance: issues without a bug or enhancement label are labeled automatically when their type can be determined (issues labeled question, duplicate, invalid, wontfix, or no-type are skipped), so CodeRabbit can plan them. Pull requests that conflict with the default branch are labeled, and their authors are notified in a comment. Stale issues and pull requests are labeled after 14 days without activity and closed 30 days later. PR governance now re-validates a human-authored, non-draft PR when a bot such as CodeRabbit edits its description, instead of skipping the check and reporting a pass, only maintainers with write access may use None instead of linking an issue, and a link to an issue that does not exist now fails the check.
  • Tinkerologie-Bot now posts one comment on pull requests that fail PR governance, listing every problem to fix, and updates it once they are fixed. PR governance runs from the default branch's workflow (pull_request_target), so a pull request cannot change its own check.
  • Issue templates now pass the repository's ESLint YAML rules, which were failing npm run lint on main.

v1.0.3

Choose a tag to compare

@github-actions github-actions released this 31 Aug 05:17

Changed

  • The vendored Protect API contract is regenerated from the v7.2.105 OpenAPI 3.1 spec
    (was 7.1.87). The runtime API surface is unchanged, so this is purely a schema refresh; it
    removes the /v1/cameras … did not match the expected schema warning seen on consoles
    already running 7.2.105.
  • Test fixtures are re-captured from a live 7.2.105 console and redacted (device GUIDs are
    now hashed too). The captured camera set reflects current hardware settings — Sidegate, for
    example, enabled only person detection, so tests assert the sensors actually built.
  • The schema generator (scripts/gen-zod.mjs) now understands the pattern keyword (used by
    posTransactionRequest.currency in 7.2.105), maps it to a zod .regex(), and applies its
    OPTIONAL_OVERRIDES only at top-level components so a required-but-omitted field on real
    hardware (camera.lcdMessage) stays optional without leaking into nested objects.
  • scripts/live-check.mjs, capture-events.mjs and the new capture-fixtures.mjs read
    PROTECT_CERT_SHA256 from .env correctly (the key name contains digits; the previous
    ^([A-Z_]+)= pattern silently skipped it).

Added

  • scripts/capture-fixtures.mjs — one-shot re-capture of the device fixtures from a live
    console, so future Protect firmware bumps can refresh test/fixtures the way
    capture-events.mjs already refreshes event fixtures.

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 31 Aug 04:35

Fixed

  • Motion now fires on every camera, not only the doorbell. Protect 7.2.105 emits classic
    motion events only for doorbells; every other camera surfaces motion purely as smart-detect
    events, which the plugin routed solely to the per-type Person/Vehicle/Animal sensors — so the
    camera's Motion sensor, the tile HomeKit notifications, automations and HKSV key off, never
    fired. A smart-detect event now drives the camera's Motion sensor alongside its per-type
    sensors (verified against the live event stream: smartDetectZone frames for Driveway, Garage
    and Backyard while the Motion sensors stayed dark). A smart-detect event whose detection types
    cannot be read still triggers motion, and audio detections continue to drive only their
    smoke/CO sensors.

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 06 Aug 05:58

Security

  • Certificate pinning now verifies the console's certificate explicitly during the TLS
    handshake instead of overriding checkServerIdentity with a no-op. The presented leaf
    must match the trusted certificate byte for byte, so identity is enforced in two
    independent layers (the pinned ca chain check, then the explicit compare) — resolving
    the static-analysis findings that flagged the override as disabling validation. Behaviour
    against real hardware is unchanged: the hostname mismatch of a UniFi console is still
    tolerated, and a genuinely wrong certificate is now surfaced with an
    ERR_TLS_CERT_PIN_MISMATCH code so the UI still reports it as a certificate error.
  • The developer diagnostic scripts (live-check, capture-events) no longer trust a
    console certificate on first sight before sending the API key: they require an
    out-of-band PROTECT_CERT_SHA256 fingerprint, printing the presented one when none is
    configured so it can be verified and set. They also pin every request to the read
    certificate and send SNI only for DNS hostnames.

v1.0.0

Choose a tag to compare

@ruaan-deysel ruaan-deysel released this 06 Aug 05:05

[1.0.0] - 2026-08-06

Changed

  • TypeScript is pinned to the 6.x line (^6.0.3), matching what Homebridge 2.2.1 itself
    builds against. npm's latest tag is now TypeScript 7, whose native compiler is too new
    to assume Homebridge supports it; the caret keeps 7 out.

Added

  • Protect floodlights are exposed as a HomeKit Lightbulb with brightness plus a motion
    sensor. On/off maps to the console's force-enable override, so toggling the light in
    HomeKit never overwrites its configured motion or schedule mode; brightness maps to the
    hardware's six LED levels. Both the light and its PIR update in realtime from the device
    event stream, and a change made in the Protect app is reflected in HomeKit.
  • Chimes are exposed as a HomeKit Lightbulb whose brightness controls the ring volume
    (0-100), turning off to silence the chime. The volume applies to every doorbell the
    chime is paired to, preserving each ring's tone and repeat count, and updates in realtime
    from the device event stream.
  • Motion sensors for every camera, driven by the live event stream rather than polling.
    GET /v1/events does not exist in the Integration API, so a lost end-frame can never be
    reconciled by a query — each active event carries a failsafe timer that clears it.
  • Smart-detection sensors per camera, one per detection type enabled in Protect: person,
    vehicle, animal and package. A type that is supported but switched off produces no
    sensor, and switching it off later removes exactly that sensor.
  • Smoke and carbon-monoxide sensors for cameras with audio detection enabled, mapped from
    Protect's smartAudioDetect alarms.
  • A Doorbell service on cameras with a speaker, firing on a real ring event.
  • A status-LED switch on cameras that have one, reflecting ledSettings.isEnabled and
    writing changes back to Protect. Changing the LED in the Protect app updates HomeKit,
    and a failed write restores the switch rather than leaving it showing a state the
    console rejected.
  • Sensor state is reference-counted, so overlapping events cannot switch a sensor off
    early. The console redelivers end-frames — observed up to three times with an identical
    value — and duplicates are ignored.
  • Live streaming video quality is automatically selected based on HomeKit's resolution
    request: 640×360 and below uses the low substream, 1280×720 uses medium, and anything
    larger uses high. Per-camera quality override allows pinning a substream instead.
  • Live view transcoding now probes ffmpeg at startup and prefers Intel Quick Sync (QSV) or
    VAAPI hardware encoding over the bundled software encoder, since every Protect stream is
    HEVC and HomeKit only accepts H.264. Hardware encoding cuts CPU cost roughly 27× on
    supported hosts; the chosen ffmpeg path and encoder are logged so a silent fallback to
    software is visible rather than just running expensive.
  • RTSPS stream URLs are now cached per camera and quality for 5 minutes, creating a
    stream on demand the first time a quality is requested. Protect reports no URL for a
    quality until one has been created that way, so this also prevents ffmpeg from being
    handed a stale, expired URL.
  • Live view now works end to end: HomeKit's stream request picks the substream, fetches the
    RTSPS URL and transcodes it to H.264 for as long as the viewer is watching, and closing
    the view kills the transcode.
  • Camera snapshots come straight from the console as JPEG — no ffmpeg is started for a
    snapshot — and are cached for two seconds, so the Home app's frequent thumbnail polling
    reaches the console once rather than once per tile. A failed snapshot is reported to
    HomeKit with the reason only, never the underlying request details.
  • Concurrent live views are capped for the whole host rather than per camera: six with
    hardware encoding, two with software. Five cameras therefore share one budget instead of
    each getting its own, and a request past the cap is refused with a logged reason instead
    of overloading the machine.
  • The package lens appears in HomeKit as its own camera, named " Package Camera",
    for cameras whose payload reports the lens (hasPackageCamera) and whose owner switched
    it on in the settings. It is bridged like every other accessory, is a camera and nothing
    else — the package motion sensor stays on the main accessory, so existing automations are
    untouched — and it advertises a range of 4:3 sizes and no audio. Its snapshots come from
    the package channel, so the tile shows the downward view rather than the main lens.
    Switching the setting off removes it again on the next discovery.
  • The package lens transcode is scaled to whatever size HomeKit asks for, and its frame
    rate padded to the rate HomeKit negotiated, so every advertised size is one the plugin
    actually delivers. That path decodes in software and scales before handing the frame to
    the hardware encoder: scaling on the GPU fails outright on the reference host, and
    decoding this lens in software costs almost nothing because the console serves it at
    2 fps.
  • The Doorbell's package lens can now be streamed like any other camera. It has one stream
    rather than a choice of substreams, and the console serves it at 1600×1200/2 fps rather
    than 16:9/30 fps like every other lens, so ffmpeg duplicates frames up to the rate
    HomeKit negotiated — without that, HomeKit can mistake a genuine 2 fps feed for a stalled
    stream. It never carries audio, since the lens shares its microphone with the main camera
    and a second identical audio source helps no one.
  • Live view can carry audio, sent as its own stream alongside the video and transcoded to
    Opus, which HomeKit accepts and which the hardware-capable ffmpeg can encode. AAC-ELD is
    used instead when a build has libfdk_aac but not libopus. Audio is off by default
    and opt-in per camera
    — recording audio is legally more restricted than video in many
    places, and an outdoor camera hears passers-by who have not consented. If ffmpeg has
    neither encoder the plugin says so once and streams video only, rather than producing a
    stream HomeKit cannot play.
  • Two-way talkback on cameras with a speaker: pressing the microphone button in the Home
    app's live view now plays your voice through the camera. It is off by default and
    opt-in per camera
    , offered in the settings UI only for hardware that reports a
    speaker, and enabling it needs a restart — the same one Homebridge already prompts
    for when settings are saved. Talkback is independent of the audio setting: turning it on
    does not start sending the camera's own microphone to HomeKit, and turning audio on does
    not enable talkback. Nothing is sent to the camera until you actually speak.
  • Every camera now appears in the Home app as a camera: live view and snapshots are wired
    to HomeKit, bridged like every other accessory so a child bridge still holds the whole
    console under one pairing. The doorbell keeps the single Doorbell service the event
    pipeline drives — attaching live view does not add a second one.
  • The settings UI now offers both new per-camera controls, so neither needs config.json to
    be edited by hand: a live-view quality selector labelled with the real substream
    resolutions (auto, 2688×1512, 1280×720, 640×360) and an audio toggle, offered only for a
    camera that reports a microphone. The audio toggle says so in its own label: turning
    audio on takes effect after a restart
    , the one Homebridge already prompts for when
    settings are saved. HomeKit is told which audio codecs a camera offers when that camera is
    published, and HAP provides no way to change that afterwards. Turning audio back off
    applies to the next live view immediately.
  • New settings: maxStreams caps concurrent live views for the whole host (default six on
    hardware encoding, two on software), ffmpegPath points at a specific ffmpeg binary, and
    each camera takes quality (auto, high, medium, low; auto by default) and
    audio (off by default).
  • The settings UI now also offers the two host-wide settings — the maximum number of
    concurrent live views and the ffmpeg path — so nothing this plugin supports needs
    config.json to be edited by hand. Clearing either field hands the decision back to the
    plugin rather than storing a blank.
  • The README documents how to get hardware transcoding working: passing /dev/dri into the
    container, the render-group permission, which VA-API driver package carries the H.264
    encode entrypoint, and the measured cost of not having it (20 s of 2688×1512 costs 1.79 s
    of CPU via VAAPI against 49.1 s via libx264, about 27×).
  • A camera configured for audio on an ffmpeg that can encode neither codec HomeKit accepts
    now says so in the log at startup, naming the binary, instead of streaming silently
    without audio.
  • ffmpeg is probed once at startup rather than per camera. If no usable ffmpeg is found the
    plugin says so and carries on: sensors, the LED switch and the doorbell all keep working
    without live view instead of the whole platform failing to load.
  • Shutting Homebridge down stops every running transcode. A stranded ffmpeg would otherwise
    hold a 4 MP HEVC decode open for as long as the host stayed up.
  • ffmpeg processes for live view are now supervised: started, tracked, and killed on
    teardown so a dropped viewer can never leave a transcode running indefinitely. ffmpeg's
    own failure output is redacted before it is ever logged, since the command line it echoes
    on error contains the RTSPS stream's auth token.
  • New per-camera setting: packageCamera, off by default. The settings UI offers it only
    for a camera the console reports a package lens on, and its label states plainly that the
    console serves that lens at 2 fps — enabling it adds a second HomeKit accessory for one
    physical device, so nobody should be surprised by either consequence after the fact.
  • HomeKit Secure Video re...
Read more