Skip to content

feat(unifi-protect): add configurable doorbell ring timeout#2044

Open
AlexF090 wants to merge 4 commits into
koush:mainfrom
AlexF090:feat/unifi-protect-ring-timeout
Open

feat(unifi-protect): add configurable doorbell ring timeout#2044
AlexF090 wants to merge 4 commits into
koush:mainfrom
AlexF090:feat/unifi-protect-ring-timeout

Conversation

@AlexF090

@AlexF090 AlexF090 commented May 19, 2026

Copy link
Copy Markdown

Summary

  • Adds a Ring Timeout setting (in seconds) to UniFi Protect doorbell cameras with the BinarySensor interface
  • Replaces the hardcoded 25 s timeout with the user-configured value in both resetRingTimeout() and the stale-state guard in
    main.ts
  • Defaults to 25 s when no value is set or an invalid value is stored
  • Updates engine.io, ws, and werift to latest versions (security/stability fixes)
  • Bumps transitive package-lock.json dependencies across affected plugins to resolve known CVEs
  • Adds .devcontainer configuration for reproducible development environment

Test plan

  • Open settings for a UniFi Protect doorbell camera → Ring Timeout setting visible
  • Change timeout value → ring event clears binaryState after the configured duration
  • Non-doorbell cameras → setting not shown
  • Invalid/zero value → falls back to 25 s default
  • Server starts cleanly after dependency updates
  • Existing HomeKit + Alexa doorbell notifications unaffected (both use one-shot events, independent of timeout duration)

AlexF090 added 4 commits May 19, 2026 16:00
- add Ring Timeout setting for BinarySensor cameras
- use configured timeout when clearing binaryState after ring events
- replace hardcoded 25s ring timeout checks with configurable value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant