Skip to content

fix(camera): unlink a manually supplied sensor which was replaced or dropped from the recording management of a saved camera - #1147

Closed
ZeliardM wants to merge 242 commits into
homebridge:beta-2.3.1from
ZeliardM:fix/camera-restored-sensor-links
Closed

ZeliardM wants to merge 242 commits into
homebridge:beta-2.3.1from
ZeliardM:fix/camera-restored-sensor-links

Conversation

@ZeliardM

Copy link
Copy Markdown

When a camera is restored from the cache, CameraController reuses the saved Camera Recording Management service, links included. A motion or occupancy sensor the plugin supplied before (sensors.motion: service) and has since replaced or dropped stays linked to it, so it is still a recording trigger next to the current one. The comment in _initWithServices notes that the link can't be removed where the sensor is set up. This removes it once both sensors are set up, so only the controller's current sensors stay linked. The service itself is left on the accessory for the plugin.

This makes the controller the owner of the recording management's sensor links, so a sensor a plugin linked there by hand is unlinked on restore too. The upgrade notes say so.

Tested with a new spec in initWithServices, which fails without the change. Build, lint, both type checks, strict TypeDoc and the test suite pass on Node 22, 24 and 26.

🤖 Generated with Claude Code

bwp91 and others added 30 commits November 1, 2026 17:18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rs share the ciao responder

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…for the goodbye on destroy

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…-hap advertiser

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…hing the process

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…none is left behind

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…temd-resolved

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ory is unpublished

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…of throwing

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…owing from a timer

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ent instead of crashing

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…d of crashing

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…se step does not divide evenly

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ring

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ter an earlier save

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ad in one process

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…a failed init

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…uuid

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ue status

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… with a pairing error

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…econd request is answered

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…t short

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…id that is not a number

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
bwp91 and others added 24 commits November 15, 2026 21:10
…y as an invalid value

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ead of a list of its chunks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…uest answers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…osed, not only the first

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…not release after 1 ms

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ntries, keep the running one

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… plugin on removeController

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… an integer format

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ad, like one saved with sudo

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…checks the advertiser

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…etup ends

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ss Code service

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…e Key

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…he Error Status characteristic

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…o hot or too cold

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…to a commit

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…rogress (homebridge#1138)

Workflow-level concurrency with cancel-in-progress cancelled a running publish when another commit landed on the branch (e.g. a bot PR merging). Builds now cancel per branch, and publish runs one at a time per branch without being cancelled, as in homebridge/homebridge-config-ui-x#3128.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Read by Refresh Homebridge Upstream Dependencies when it targets beta-*: pins @homebridge/ciao, bonjour-hap and fast-srp-hap to their newest beta or latest release.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: homebridge[bot] <354207881+homebridge[bot]@users.noreply.github.com>
…dropped from the recording management of a saved camera

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added fix beta This is in some form related to the current beta release labels Nov 27, 2026
@NorthernMan54
NorthernMan54 deleted the branch homebridge:beta-2.3.1 November 28, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta This is in some form related to the current beta release fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants