diff options
| author | Luke Hoersten <[email protected]> | 2026-07-17 20:04:05 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-07-17 20:04:05 -0500 |
| commit | 118a04f9a56ab338da746f566fca8799fbd3e13d (patch) | |
| tree | f1ee7c611ff585e51c50bf03ea2cdaaf6eda030d /tools | |
| parent | 3350c4b1541d626189bc6554a774c6503e4c2f52 (diff) | |
scrypted: subscribe only to selected wake-trigger interfaces
attachListener listened on BinarySensor+MotionSensor+ObjectDetector
unconditionally and relied on handleCameraEvent to filter by trigger —
correct, but a doorbell-only viewport still took a callback per motion
re-assert on a chatty camera, and the "subscribed to [...]" log implied
all three were wake sources. The listener set now follows the selected
triggers (zero triggers = tap-only: no listeners at all), and the
idempotency key becomes a "cameraId|triggers" signature
(attachedCameraId -> attachedListenerSig) so a trigger change forces a
re-attach through the existing rebind path. Event-time filtering stays
as defense in depth (ObjectDetector still needs the person-class check).
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
