question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

camera.onNewDing.subscribe doesn't work with motion anymore

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sjiampojamarncommented, Jan 11, 2020

I think I found the issue!! Ring has always had a concept of a session based on a hardware_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

Yes. Quick check. It works!!. Thank you for the great finding and awesome work.

0reactions
dgreifcommented, Jan 11, 2020

I think I found the issue!! Ring has always had a concept of a session based on a hardware_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 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found