Skip to content

fix(accessory): keep a cached service on the accessory which a controller hands over to the plugin - #1148

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

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

Conversation

@ZeliardM

Copy link
Copy Markdown

A restored CameraController that is given its cached Motion Sensor back as sensors.motion (or its Occupancy Sensor as sensors.occupancy) takes it out of its service map, because the plugin now owns it. Accessory removes every service a controller leaves out of its map, so the plugin's sensor was removed from the accessory, and with it its link to the recording management, while the controller kept using it.

A service the controller leaves out of its map but still links to has been handed over to the plugin, so Accessory now keeps it. A sensor that is dropped or replaced is unlinked first, and is still removed.

Tested with two specs in Accessory.spec.ts, one for a controller that hands a service over and one for the camera. Both fail without the change. Build, lint, both type checks, strict TypeDoc and the test suite pass on Node 22, 24 and 26.

This and #1147 add changelog lines in the same two places, so whichever is merged second needs both kept.

🤖 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 25 commits November 15, 2026 21:09
…of its request

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…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>
…ller hands over to the plugin

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