camera.onNewDing.subscribe doesn't work with motion anymore
See original GitHub issueI mostly followed ring/examples/example.ts
camera.onNewDing.subscribe(ding => {
const event =
ding.kind === 'motion'
? 'Motion detected'
: ding.kind === 'ding'
? 'Doorbell pressed'
: `Video started (${ding.kind})`
Only ding and other events were detected but not when there were motions.
It used to work but not now. I’m not sure if it’s related to recent changes in F2A/OAuth2 I have seen in HomeAssistant and python-ring-doorbell projects where I got them working with recent fixes.
However, for this node ring, somehow my motion detection capability’s gone while other functions seem to be working just fine.
Is anyone experiencing the same?
FYI: my ring git’s synced to HEAD, tag: v5.10.0 $ node -v v8.10.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Motion Detection & Notification Not Working - Reolink
Reason and fixes for motion detection security cameras not detecting motion, detect movement but not record, no motion notification & alert.
Read more >My camera does not record motion-triggered events ... - Support
If you subscribed to get the motion-triggered video recording (or you are using the free trial) and still do not get any motion...
Read more >Motion event videos are missing. - Wyze Support
Troubleshooting Steps. Make sure event recording is enabled in the Wyze app. Tap on your camera, then the Settings gear on the top...
Read more >Troubleshoot Nest camera alerts - Google Support
Google Nest cameras have advanced sound and motion detection that can help you monitor things without being distracted by background activity.
Read more >Solved: Motion detection not working anymore on camera
Solved: Have two Arlo wire-free cameras that after last power outage, both cameras would not record on motion anymore.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes. Quick check. It works!!. Thank you for the great finding and awesome work.
I think I found the issue!! Ring has always had a concept of a
session
based on ahardware_id
. What I never realized before was that each session can have its own settings. In this case, the session can subscribe and unsubscribe to motion and ding events. This is how each device that has the Ring app (phone, tablet, pc) can activate or deactivate the notifications for ding or motion events. Somehow your sessions settings must have gotten updated to unsubscribe from the motion events. I’ve added logic to automatically re-subscribe to those events for any camera that is unsubscribed when the code starts up. Please give v5.13.0
a try and see if you start receiving events again 😄