dgreif / ring

Unofficial packages for Ring Doorbells, Cameras, Alarm System, and Smart Lighting
MIT License
1.22k stars 163 forks source link

Front Door Camera no longer showes AppleTV Motion Notification #1474

Closed eightball011854 closed 2 months ago

eightball011854 commented 2 months ago

Is there an existing issue for this?

Describe The Bug

I recently added a 3rd ring cam to HB, and now my original one, which is the front door cam, no longer shows notifications on the apple TV.

The driveway cam (2nd) and the stick-up cam (3rd) do show the notificationdnotifications

To Reproduce

No response

Expected behavior

Expected all notifications to show

Relevant log output

No response

Screenshots

No response

Homebridge Ring Config

{
    "unbridgeCameras": true,

Additional context

No response

OS

macos

Node.js Version

v20.16.0

NPM Version

10.8.2

Homebridge/HOOBs Version

v1.8.4

Homebridge Ring Plugin Version

v13.1.0

Operating System

MaxOS

tsightler commented 2 months ago

You didn't provide any logs so it will be challenging to solve your problem without them and very limited information, however, we can try. When there's a motion event, do you see that logged in Homebridge? If so, there's little for us to do on the plugin side, as we only update state, it's up to Homekit to handle notifications. However, I would strongly suggest you follow the steps in https://github.com/dgreif/ring/wiki/Notification-Troubleshooting and see if that helps before going any further.

eightball011854 commented 2 months ago

sorry about that @tsightler happy to provide the logs just not sure what is sensitive information

i did try the notification troubleshooting, and downgrading the Plugin version as well

eightball011854 commented 2 months ago

[8/20/2024, 10:43:20 AM] [homebridge-ring] Front Door Detected Motion. Loading snapshot before sending event to HomeKit [8/20/2024, 10:43:21 AM] [homebridge-ring] Preparing Live Stream for Front Door [8/20/2024, 10:43:21 AM] [homebridge-ring] Stream Prepared for Front Door (0.325s) [8/20/2024, 10:43:22 AM] [homebridge-ring] Activating stream for Front Door (0.387s) [8/20/2024, 10:43:22 AM] [homebridge-ring] iceConnectionStateChange: completed [8/20/2024, 10:43:22 AM] [homebridge-ring] UNKNOWN MESSAGE [8/20/2024, 10:43:22 AM] [homebridge-ring] { body: { doorbot_id: 34168905, is_ok: false, text: 'Unexpected message without a session ID: Signal(message=Message(method=ICE, dialogId=9a40ae4e-6781-4ee3-9534-9034fc6ee036, riid = null, body=Body(doorbotId=34168905, sessionId=null, userId=null, properties=[mlineindex, ice])), envelope=null)' }, dialog_id: '9a40ae4e-6781-4ee3-9534-9034fc6ee036', method: 'notification' } [8/20/2024, 10:43:22 AM] [homebridge-ring] connectionStateChange: connecting [8/20/2024, 10:43:22 AM] [homebridge-ring] iceConnectionStateChange: new [8/20/2024, 10:43:22 AM] [homebridge-ring] iceConnectionStateChange: checking [8/20/2024, 10:43:22 AM] [homebridge-ring] Activating Session [8/20/2024, 10:43:22 AM] [homebridge-ring] Streaming active for Front Door (0.81s) [8/20/2024, 10:43:22 AM] [homebridge-ring] iceConnectionStateChange: new [8/20/2024, 10:43:22 AM] [homebridge-ring] iceConnectionStateChange: connected [8/20/2024, 10:43:22 AM] [homebridge-ring] connectionStateChange: connected [8/20/2024, 10:43:22 AM] [homebridge-ring] Received stream data from Front Door (1.007s) [8/20/2024, 10:43:40 AM] [homebridge-ring] Front Door Doorbell Pressed [8/20/2024, 10:43:52 AM] [homebridge-ring] UNKNOWN MESSAGE [8/20/2024, 10:43:52 AM] [homebridge-ring] { body: { doorbot_id: 34168905, session_id: 'eyJraWQiOiJTaWduYWxsaW5nIiwiYWxnIjoiSFMyNTYifQ.eyJkaW5nX2tpbmQiOiJtb3Rpb24iLCJkb29yYm90X2lkIjozNDE2ODkwNSwicGluZ19pbnRlcnZhbCI6MTAsImRpbmdfaWQiOiI3NDA1Mjc4NjYwNzAzOTAzODE3IiwiaXAiOiIzNS44My4xNTEuMTIwIiwiY3JlYXRlZF9hdCI6MTcyNDE3NTc5NzkxMSwicm1zX2ZxZG4iOiIzNS04My0xNTEtMTIwLjM1NDUwODY2MDc1NC51cy13ZXN0LTIucHJvZC5ybXMucmluZy5kZXZpY2VzLmEyei5jb20iLCJzZXNzaW9uX2lkIjoiZWVhYTk3NTgtOWJiMS00MGFkLWE2NjItOWJjNTM5ODYzY2UxIiwiZXhwIjoxNzI0MjYyMjAyLCJpYXQiOjE3MjQxNzU4MDIsInJtc192ZXJzaW9uIjoiNzc0NjkwYzAifQ.f82lZOwu-eOp5gCzEdd3tL-Jk1RO5W20IoI48eeIaAQ', stealth_mode: false }, dialog_id: '9a40ae4e-6781-4ee3-9534-9034fc6ee036', method: 'camera_options' }

eightball011854 commented 2 months ago

logs above, sorry about that @tsightler

tsightler commented 2 months ago

What else is involved here? What is starting the live stream? Do you have multiple Apple TVs? Clearly the plugin is detecting the events as you can see they are logged:

[8/20/2024, 10:43:20 AM] [homebridge-ring] Front Door Detected Motion. Loading snapshot before sending event to HomeKit
...
[8/20/2024, 10:43:40 AM] [homebridge-ring] Front Door Doorbell Pressed
eightball011854 commented 2 months ago

i have 3 apple tvs @tsightler

tsightler commented 2 months ago

Above it shows that, almost immediately on motion, a livestream was started. I'm going to guess that was a PiP notification on one of the Apple TVs, unless you manually started a livestream on a device. This appears to indicate that the event was sent, which is all the plugin itself can do. How notifications are handled on a given event is completely controlled by Homekit.

My guess is that this is just yet another issues cause by Apple's "random device is a hub" architecture, but that is just a guess. Maybe the new feature to select a preferred hub in iOS 18 will help.

eightball011854 commented 2 months ago

thanks @tsightler maybe i will remove the camera from homekit and re-add

tsightler commented 2 months ago

I'm going to go ahead and close this as all indications are that the plugin is behaving as it should. What devices are notified or where things play is 100% up to Homekit. All the plugin can do is make the device available and send the notifications and the logs indicate that this is happening.

shaileshck commented 1 week ago

similar issue I have been also facing.. I have single Apple TV, HomeKit notifications stopped. If I try to view live cam from homkit its streamed but similar error 8/20/2024, 10:43:22 AM] [homebridge-ring] UNKNOWN MESSAGE [8/20/2024, 10:43:22 AM] [homebridge-ring] { body: { doorbot_id: 34168905, comes up on red.

shaileshck commented 1 week ago

To update after resetting Notifications have started but the error on HomeKit continues. Doesnt seem issue is something to do with Notifications.