Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No snapshot cached for ... - avoidSnapshotBatteryDrain: true - snapshot lifetime over 2 minutes? #502

Closed
nicoh88 opened this issue Nov 26, 2020 · 6 comments
Labels
bug Something isn't working
Projects

Comments

@nicoh88
Copy link

nicoh88 commented Nov 26, 2020

Bug Report

Describe the Bug

No snapshot cached for ... with avoidSnapshotBatteryDrain: true in config.json. Snapshot lifetime longer as 2 minutes?

To Reproduce

Restart Homebridge, snapshots are okay, after 2 minutes with avoidSnapshotBatteryDrain: true, No snapshot cached for ..., after 10 minutes, new snapshot cached, after 2 minutes, No snapshot cached for ..., ...

Expected behavior

Ring Spotlight Cam Wired (hp_cam_v2)

  • Name: Garten
  • ALL IS OK ✅
  • avoidSnapshotBatteryDrain has no effect ✅
  • Snapshots ok ✅

Ring Stick Up Cam Wired (cocoa_camera)

  • Name: Kinderzimmer Felix
  • Not ok, is plug-in - avoidSnapshotBatteryDrain should have no effect ❌
  • Check if "Battery-Mode" or "Plug-In"?

Ring Video Doorbell 3 Plus (doorbell_scallop)

  • Name: Haustür
  • Is hardwired, but battery
  • avoidSnapshotBatteryDrain has effect ✅
  • Snapshot lifetime only 2 minutes
  • Snapshot lifetime longer as 2 minutes, with battery devices with active avoidSnapshotBatteryDrain? ❌

Screenshots/Logs

Nov 26 15:49:42 frida homebridge[27530]: [2020-11-26 15:49:42] Homebridge is running on port 51829.
Nov 26 15:49:45 frida homebridge[27530]: [2020-11-26 15:49:45] [Ring] Location Mode: {"mode":"unset","lastUpdateTimeMS":1606207317019,"securityStatus":{},"readOnly":true,"notYetParticipatingInMode":[],"responseTimestamp":1606402185000}
Nov 26 15:49:45 frida homebridge[27530]: [2020-11-26 15:49:45] [Ring] Configuring 3 cameras and 4 devices for location "Münchberg" - locationId: 1234abcd-9876...
Nov 26 15:49:54 frida homebridge[27530]: [2020-11-26 15:49:54] [Ring] No snapshot cached for Garten
Nov 26 15:49:54 frida homebridge[27530]: [2020-11-26 15:49:54] [Ring] Loading new snapshot into cache for Garten
Nov 26 15:49:56 frida homebridge[27530]: [2020-11-26 15:49:56] [Ring] Snapshot cached for Garten (1.74s)
Nov 26 15:50:04 frida homebridge[27530]: [2020-11-26 15:50:04] [Ring] No snapshot cached for Haustür
Nov 26 15:50:04 frida homebridge[27530]: [2020-11-26 15:50:04] [Ring] Loading new snapshot into cache for Haustür
Nov 26 15:50:04 frida homebridge[27530]: [2020-11-26 15:50:04] [Ring] No snapshot cached for Kinderzimmer Felix
Nov 26 15:50:04 frida homebridge[27530]: [2020-11-26 15:50:04] [Ring] Loading new snapshot into cache for Kinderzimmer Felix
Nov 26 15:50:04 frida homebridge[27530]: [2020-11-26 15:50:04] [Ring] Snapshot cached for Haustür (0.231s)
Nov 26 15:50:04 frida homebridge[27530]: [2020-11-26 15:50:04] [Ring] Snapshot cached for Kinderzimmer Felix (0.237s)
Nov 26 15:50:14 frida homebridge[27530]: [2020-11-26 15:50:14] [Ring] Used cached snapshot for Garten
Nov 26 15:50:14 frida homebridge[27530]: [2020-11-26 15:50:14] [Ring] Loading new snapshot into cache for Garten
Nov 26 15:50:17 frida homebridge[27530]: [2020-11-26 15:50:17] [Ring] Snapshot cached for Garten (2.382s)
Nov 26 15:50:24 frida homebridge[27530]: [2020-11-26 15:50:24] [Ring] Used cached snapshot for Garten
Nov 26 15:50:34 frida homebridge[27530]: [2020-11-26 15:50:34] [Ring] Used cached snapshot for Garten
Nov 26 15:50:34 frida homebridge[27530]: [2020-11-26 15:50:34] [Ring] Loading new snapshot into cache for Garten
Nov 26 15:50:36 frida homebridge[27530]: [2020-11-26 15:50:36] [Ring] Snapshot cached for Garten (1.757s)
Nov 26 15:50:44 frida homebridge[27530]: [2020-11-26 15:50:44] [Ring] Used cached snapshot for Garten
Nov 26 15:50:54 frida homebridge[27530]: [2020-11-26 15:50:54] [Ring] Used cached snapshot for Haustür
Nov 26 15:50:54 frida homebridge[27530]: [2020-11-26 15:50:54] [Ring] Used cached snapshot for Kinderzimmer Felix
Nov 26 15:50:54 frida homebridge[27530]: [2020-11-26 15:50:54] [Ring] Used cached snapshot for Garten
Nov 26 15:50:54 frida homebridge[27530]: [2020-11-26 15:50:54] [Ring] Loading new snapshot into cache for Garten
Nov 26 15:50:56 frida homebridge[27530]: [2020-11-26 15:50:56] [Ring] Snapshot cached for Garten (1.611s)
Nov 26 15:51:04 frida homebridge[27530]: [2020-11-26 15:51:04] [Ring] Used cached snapshot for Haustür
Nov 26 15:51:04 frida homebridge[27530]: [2020-11-26 15:51:04] [Ring] Used cached snapshot for Kinderzimmer Felix
Nov 26 15:51:05 frida homebridge[27530]: [2020-11-26 15:51:05] [Ring] Used cached snapshot for Garten
Nov 26 15:51:14 frida homebridge[27530]: [2020-11-26 15:51:14] [Ring] Used cached snapshot for Haustür
Nov 26 15:51:14 frida homebridge[27530]: [2020-11-26 15:51:14] [Ring] Used cached snapshot for Kinderzimmer Felix
Nov 26 15:51:15 frida homebridge[27530]: [2020-11-26 15:51:15] [Ring] Used cached snapshot for Garten
Nov 26 15:51:15 frida homebridge[27530]: [2020-11-26 15:51:15] [Ring] Loading new snapshot into cache for Garten
Nov 26 15:51:18 frida homebridge[27530]: [2020-11-26 15:51:18] [Ring] Snapshot cached for Garten (2.885s)
Nov 26 15:51:24 frida homebridge[27530]: [2020-11-26 15:51:24] [Ring] Used cached snapshot for Haustür
Nov 26 15:51:24 frida homebridge[27530]: [2020-11-26 15:51:24] [Ring] Used cached snapshot for Kinderzimmer Felix
Nov 26 15:51:25 frida homebridge[27530]: [2020-11-26 15:51:25] [Ring] Used cached snapshot for Garten
Nov 26 15:51:34 frida homebridge[27530]: [2020-11-26 15:51:34] [Ring] Used cached snapshot for Haustür
Nov 26 15:51:34 frida homebridge[27530]: [2020-11-26 15:51:34] [Ring] Used cached snapshot for Kinderzimmer Felix
Nov 26 15:51:35 frida homebridge[27530]: [2020-11-26 15:51:35] [Ring] Used cached snapshot for Garten
Nov 26 15:51:35 frida homebridge[27530]: [2020-11-26 15:51:35] [Ring] Loading new snapshot into cache for Garten
Nov 26 15:51:36 frida homebridge[27530]: [2020-11-26 15:51:36] [Ring] Snapshot cached for Garten (1.608s)
Nov 26 15:51:44 frida homebridge[27530]: [2020-11-26 15:51:44] [Ring] Used cached snapshot for Haustür
Nov 26 15:51:44 frida homebridge[27530]: [2020-11-26 15:51:44] [Ring] Used cached snapshot for Kinderzimmer Felix
Nov 26 15:51:45 frida homebridge[27530]: [2020-11-26 15:51:45] [Ring] Used cached snapshot for Garten
Nov 26 15:51:54 frida homebridge[27530]: [2020-11-26 15:51:54] [Ring] Used cached snapshot for Haustür
Nov 26 15:51:54 frida homebridge[27530]: [2020-11-26 15:51:54] [Ring] Used cached snapshot for Kinderzimmer Felix
Nov 26 15:51:55 frida homebridge[27530]: [2020-11-26 15:51:55] [Ring] Used cached snapshot for Garten
Nov 26 15:51:55 frida homebridge[27530]: [2020-11-26 15:51:55] [Ring] Loading new snapshot into cache for Garten
Nov 26 15:51:57 frida homebridge[27530]: [2020-11-26 15:51:57] [Ring] Snapshot cached for Garten (1.649s)
Nov 26 15:52:04 frida homebridge[27530]: [2020-11-26 15:52:04] [Ring] No snapshot cached for Haustür
Nov 26 15:52:04 frida homebridge[27530]: [2020-11-26 15:52:04] [Ring] No snapshot cached for Kinderzimmer Felix
Nov 26 15:52:05 frida homebridge[27530]: [2020-11-26 15:52:05] [Ring] Used cached snapshot for Garten
Nov 26 15:52:14 frida homebridge[27530]: [2020-11-26 15:52:14] [Ring] No snapshot cached for Haustür
Nov 26 15:52:14 frida homebridge[27530]: [2020-11-26 15:52:14] [Ring] No snapshot cached for Kinderzimmer Felix
Nov 26 15:52:15 frida homebridge[27530]: [2020-11-26 15:52:15] [Ring] Used cached snapshot for Garten
Nov 26 15:52:15 frida homebridge[27530]: [2020-11-26 15:52:15] [Ring] Loading new snapshot into cache for Garten
Nov 26 15:52:17 frida homebridge[27530]: [2020-11-26 15:52:17] [Ring] Snapshot cached for Garten (2.319s)
Nov 26 15:52:25 frida homebridge[27530]: [2020-11-26 15:52:25] [Ring] Used cached snapshot for Garten
Nov 26 15:52:34 frida homebridge[27530]: [2020-11-26 15:52:34] [Ring] No snapshot cached for Haustür
Nov 26 15:52:35 frida homebridge[27530]: [2020-11-26 15:52:35] [Ring] No snapshot cached for Kinderzimmer Felix
...
Nov 26 15:56:22 frida homebridge[27530]: [2020-11-26 15:56:22] [Ring] No snapshot cached for Kinderzimmer Felix
Nov 26 15:56:22 frida homebridge[27530]: [2020-11-26 15:56:22] [Ring] Loading new snapshot into cache for Kinderzimmer Felix
Nov 26 15:56:22 frida homebridge[27530]: [2020-11-26 15:56:22] [Ring] No snapshot cached for Haustür
Nov 26 15:56:22 frida homebridge[27530]: [2020-11-26 15:56:22] [Ring] Loading new snapshot into cache for Haustür
Nov 26 15:56:23 frida homebridge[27530]: [2020-11-26 15:56:23] [Ring] Snapshot cached for Garten (1.716s)
Nov 26 15:56:23 frida homebridge[27530]: [2020-11-26 15:56:23] [Ring] Snapshot cached for Kinderzimmer Felix (1.533s)
Nov 26 15:56:26 frida homebridge[27530]: [2020-11-26 15:56:26] [Ring] Used cached snapshot for Garten
Nov 26 15:56:27 frida homebridge[27530]: [2020-11-26 15:56:27] [Ring] Snapshot cached for Haustür (4.775s)
Nov 26 15:56:31 frida homebridge[27530]: [2020-11-26 15:56:31] [Ring] Used cached snapshot for Garten
Nov 26 15:56:36 frida homebridge[27530]: [2020-11-26 15:56:36] [Ring] Used cached snapshot for Garten
Nov 26 15:56:36 frida homebridge[27530]: [2020-11-26 15:56:36] [Ring] Loading new snapshot into cache for Garten
Nov 26 15:56:38 frida homebridge[27530]: [2020-11-26 15:56:38] [Ring] Snapshot cached for Garten (1.811s)
Nov 26 15:56:41 frida homebridge[27530]: [2020-11-26 15:56:41] [Ring] Used cached snapshot for Garten
Nov 26 15:56:42 frida homebridge[27530]: [2020-11-26 15:56:42] [Ring] Used cached snapshot for Kinderzimmer Felix
Nov 26 15:56:42 frida homebridge[27530]: [2020-11-26 15:56:42] [Ring] Used cached snapshot for Haustür
Nov 26 15:56:45 frida homebridge[27530]: [2020-11-26 15:56:45] [Ring] Used cached snapshot for Haustür
Nov 26 15:56:45 frida homebridge[27530]: [2020-11-26 15:56:45] [Ring] Used cached snapshot for Kinderzimmer Felix
Nov 26 15:56:47 frida homebridge[27530]: [2020-11-26 15:56:47] [Ring] Used cached snapshot for Garten
...

Homebridge Ring Config

{
      "platform": "Ring",
      "refreshToken": "xyz",
      "hideDoorbellSwitch": true,
      "hideInHomeDoorbellSwitch": false,
      "hideCameraMotionSensor": false,
      "cameraStatusPollingSeconds": 20,
      "cameraDingsPollingSeconds": 2,
      "avoidSnapshotBatteryDrain": true,
      "debug": true
    }

Environment

  • OS: Debian 10.6
  • Node.js: v12.19.0
  • NPM: 6.14.9
  • homebridge-ring: 9.12.6
  • homebridge: 1.1.6
@nicoh88 nicoh88 added the bug Something isn't working label Nov 26, 2020
@nicoh88
Copy link
Author

nicoh88 commented Nov 26, 2020

Idea: What if the snapshot is delivered until the next cache time after 5/10 minutes. Without expiration time or until X hours. A small watermark with the snapshot time is then displayed at the bottom left of the snapshot.

Bildschirmfoto 2020-11-26 um 16 24

In the screenshot there is no answer from "Haustür" because there is currently no snapshot in the cache - as it expires after 2 minutes. 👎

@dgreif
Copy link
Owner

dgreif commented Dec 9, 2020

@nicoh88 sorry for the really delayed response. There are a number of other issues impacting a wider group so I have been mainly focused on those. Can you please follow the instructions here: https://github.com/dgreif/ring/wiki/Data-Discovery. This will allow me to see the exact setting for each of those cameras and make some tweaks to optimize for your setup. I recently learned of the "wired" mode for battery cameras, but haven't had a chance to see how the settings look when it's enabled.

Most of your description makes sense. The only part I'm a little unclear on is Snapshot lifetime longer as 2 minutes, with battery devices with active avoidSnapshotBatteryDrain. Can you expand on that? The snapshot lifetime for battery cams with avoidSnapshotBatteryDrain on is 10 minutes, not 2 minutes.

@nicoh88
Copy link
Author

nicoh88 commented Dec 9, 2020

@nicoh88 sorry for the really delayed response. There are a number of other issues impacting a wider group so I have been mainly focused on those. Can you please follow the instructions here: https://github.com/dgreif/ring/wiki/Data-Discovery. This will allow me to see the exact setting for each of those cameras and make some tweaks to optimize for your setup. I recently learned of the "wired" mode for battery cameras, but haven't had a chance to see how the settings look when it's enabled.

No problem. My Data-Discovery is here.

Most of your description makes sense. The only part I'm a little unclear on is Snapshot lifetime longer as 2 minutes, with battery devices with active avoidSnapshotBatteryDrain. Can you expand on that? The snapshot lifetime for battery cams with avoidSnapshotBatteryDrain on is 10 minutes, not 2 minutes.

OK I will try. Unfortunately, my English is not the best.

I have an iPhone and an iPad on the wall. The iPad has a permanent power supply and the Home app is always open. The Ring cameras are favorites in the Home app and here the iPad fetches a snapshot from the battery-operated cameras every 10 minutes. So far everything is fine!

When I open the Home app on my iPhone, I may not get a current snapshot of the battery-operated cameras.

IMG_1540

Why? I can only guess. In the first 2 minutes after a snapshot was cached by homebridge-ring, it is also distributed to the Home app. In the next 8 minutes, until the next snapshot, the snapshot is no longer sent to the home app. If I open the Home App in these 8 minutes, my iPhone does not get a current snapshot.

Do you understand now what I mean? Of course, if I leave the home app on the iPhone open (max. 8 minutes), I'll get the freshly cached snapshot at some point.

@dgreif
Copy link
Owner

dgreif commented Feb 15, 2021

@nicoh88 sorry for the super long delay on this issue. I've just released a fix in 9.15.0 for cameras in "wierd" mode (your cocoa_camera), but haven't had a chance to address battery cams with avoidSnapshotBatteryDrain yet. I'll let you know when I have that part fixed

@dgreif dgreif added this to In Progress in Ring Feb 20, 2021
@dgreif dgreif closed this as completed in e5a65e8 Feb 20, 2021
Ring automation moved this from In Progress to Closed Feb 20, 2021
@dgreif
Copy link
Owner

dgreif commented Feb 20, 2021

@nicoh88 Should be all fixed up in 9.15.2. Thanks for the very detailed report, and for your patience!

@nicoh88
Copy link
Author

nicoh88 commented Feb 21, 2021

@dgreif It works now! Thanks for your hard work on the plugin! 👍

One more point: Have you thought about a watermark in the lower left corner? So that you know what time the snapshot is from?

Bildschirmfoto 2020-11-26 um 16 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Ring
Closed
Development

No branches or pull requests

2 participants