iobroker-community-adapters / ioBroker.ring

Ring Video Doorbell Adapter
MIT License
29 stars 13 forks source link

Missing Ring Event as datapoint #373

Closed Wondermusic closed 1 year ago

Wondermusic commented 1 year ago

Describe the bug
There is no Event "Ding", just Motion

To Reproduce
Steps to reproduce the behavior:

  1. Go to Objects View -> doorbell_xxxxxx -> Events
  2. See missing Ding or Ring. There is just the Event motion

Screenshots & Logfiles
Unbenannt

Versions:

Voggl93 commented 1 year ago

I do have a similar issue. There is only a motion event and for some reason its not responding to motion; there is no status change when motion should be detected. A Snapshot is created but the sensor.motion datapoint is not responding.

Does someone have a solution?

theimo1221 commented 1 year ago

@Voggl93 could you change log level to debug and look out for Recieved Motion Event xxx. If it does show up then the state should change as well. If the message doesn't occurs the adapter doesn't get the needed Event from Ring Api.

Best regards Thiemo

Voggl93 commented 1 year ago

I've changed the loglevel of iobroker to debug but there is no message like Received Motion Event xxx. If i push the button it registers an the datapoint kind is changed to ding but there is also no message in the log.

The only message i get from the ring adapter is something like "Recieved new Refresh Token. Will use the new one until the token in config gets changed"

theimo1221 commented 1 year ago

@Voggl93 just to prevent a miss understanding, did you change the log level of your ring instance to debug or just the iobroker level?

Voggl93 commented 1 year ago

Yeah did that but seems that i've missed with the Mouse. So it was still on Info. Changed it this morning and when I left the House for work there is no Motion Event xxx. I've attached a Screenshot where it should have been. I've left the House at 5:53am according to the Ring Video

Voggl93 commented 1 year ago

Ah yeah Here comes the screenshot Screenshot_2022-10-13-06-44-32-745_com android chrome

theimo1221 commented 1 year ago

@Voggl93 except 5:26:41.586 you have no motion event, and even that one might be the initial "no motion". Did you move in front of the camera to trigger a motion event?

Additionally in the ring app, are alerts for motion on? If not that's the reason the ring api client doesn't receive the event thus not giving the adapter the needed info.

Voggl93 commented 1 year ago

Yes i did move in Front of the camera but not at 5.26am.

So i've enabled the movement detection but the notification was disabled. Now enabled i do get notification from my Ring App b In my Smartphone but theres nothing triggering in the Adapter.

theimo1221 commented 1 year ago

@Voggl93 Did you activate motion notification in ring app, or just the notification from ring on your phone?

Did you restart the adapter afterwards?

Wondermusic commented 1 year ago

Sorry for the late reply, haven't got a mail about the answers.

This is all I get, after changing the loglevel of the ring- Adapter to debug:

2022-10-14 08:50:39.350 - debug: ring.0 (7867) Device 81034201 ("Haustür"): Recieved Update
2022-10-14 08:50:39.354 - debug: ring.0 (7867) Device 81034201 ("Haustür"): Update Snapshot Object
2022-10-14 08:50:39.803 - debug: ring.0 (7867) Device 81034201 ("Haustür"): Update Health Callback
2022-10-14 08:52:39.766 - debug: ring.0 (7867) Device 81034201 ("Haustür"): Recieved Update
2022-10-14 08:52:39.771 - debug: ring.0 (7867) Device 81034201 ("Haustür"): Update Snapshot Object
2022-10-14 08:52:40.238 - debug: ring.0 (7867) Device 81034201 ("Haustür"): Update Health Callback

Motion is not neccessary for me, but the ring event.

Voggl93 commented 1 year ago

@theimo1221 I've activated the notification in the Ring App. All 3 Options are activated (Ring notification, movement detection and movement notification) Still no luck in iobroker. The only time I do get an Motion.sensor Log is after i've rebooted the Ring Adapter. Motion Event (false) or Something Like that.

theimo1221 commented 1 year ago

@Voggl93 could you try removing all iobroker tokens on the ring website and generate a new one?

Voggl93 commented 1 year ago

Yes i can do that. Will give you an updated maybe this evening or tomorrow.

Voggl93 commented 1 year ago

Still no luck. I've deleted every authorised Client on my ring account and then reauthorised my smartphone an iobroker. Adapter is green but no event triggering

Wondermusic commented 1 year ago

@theimo1221 same thing here with my problem. I did the same as Voggl93. Still no ding event visible.

michor84 commented 1 year ago

I have the same issue. No ding event and no refresh, when the event occurs.

exaware commented 1 year ago

I also have the same problem. The ding datapoint missing and the motion datapoint works only one time after restart of the ring adapter. I also removed all iobroker token and generate new one. Notifications are all activated.

theimo1221 commented 1 year ago

I'm sorry, but it is working for me with 6 devices without any issues.

exaware commented 1 year ago

Hello @theimo1221, several users have the same issue. Do you really think that we make all the same mistake? I think somewhere there must be a difference. I can successfully request snapshots and livestreams. But only the events don't work. There is no entries about incomming events in the log of the adapter. But the notifications on Ring-App and Echo-Dot are working.

theimo1221 commented 1 year ago

Hello @exaware,

first things first: I don't have a ring doorbell but I have 4 Stickups and 3 Floodlights in my account, so while I can't explicitly test doorbell events I do can test normal camera events.

To recieve events the following steps need to happen (compare FAQ):

Now when a event occurs the chain is as following:

  1. Ring Camera must inform Ring server
  2. Ring has to decide whether this is an event which needs a push notification
  3. The connection between Ring Api Client instance and ring must still exist
  4. Ring has to decide whether the Ring Api Client is a valid push target
  5. The Ring Api Client must react on the event
  6. The Ring Api Client has to trigger the suscribed event from this adapter
  7. The adapter has to react on the triggered event

Now we can check for some cases:

Additionally my logic isn't written like if it's not my ip or stars don't align then don't react on events. So as atleast some users do get events correctly I don't see any options on my side for now.

exaware commented 1 year ago

I don't have a Protect-Abo. Do I need also enable "Smart Alerts" for motion notification?

theimo1221 commented 1 year ago

I don't have a Protect-Abo. Do I need also enable "Smart Alerts" for motion notification?

I'm neither an employee of ring nor do I have any source stating on which factors ring decides whether you are worthy to recieve notifactions or not (compare https://github.com/iobroker-community-adapters/ioBroker.ring/issues/284#issuecomment-1177271779). So while it might help having a Protect-Abo it might not be a deciding factor at all.

In June my iobroker on my main server was "blacklisted" as well (recieving no events) while it was working for other users. For me the problem resolved after removing all authorized client devices on the ring website, waiting one day with adapter turned off and the starting with a freshly generated token.

exaware commented 1 year ago

I removed all clients more times. But I didn't wait a day. That's a good Idea but I can receive Snapshots and Livestreams. Only the motion notifications are not working. As I know if you be on the black list, you can't also receive Snapshots.

exaware commented 1 year ago

I tried version 3.0.1 as like described in this in Thread (#284). Version 3.0.1 works fine for me. I also tried a newer version like 3.0.3 and the newest version 3.1.3, but it didn't work. By the way, I have the Ring Doorbell Wired.

theimo1221 commented 1 year ago

I tried version 3.0.1

That one has a much older version of ring api client library and without recent security patches so use at own risk

exaware commented 1 year ago

What would be the alternative? The newest ring adapter with a more secure ring api which is not working? If someone can fix the problem with the newest ring api, I am ready to test it.

theimo1221 commented 1 year ago

What would be the alternative? The newest ring adapter with a more secure ring api which is not working? If someone can fix the problem with the newest ring api, I am ready to test it.

Compare it to driving, I'd rather not use my car at all if there are some security issues with it, than saying "nah I can't get it fixed now, so I can continue driving"

denjo1982 commented 1 year ago

wenn ich alles neu installiere version 3.1.3 und neuen token erstelle und auch nur iobroker bei ring angemledet, fuktioniert es einmal, danach nicht mehr. deswegen sie alle versionen über 3.0.1 unbrauchbar und defekt oder sowas.

FeLiiix commented 1 year ago

wenn ich alles neu installiere version 3.1.3 und neuen token erstelle und auch nur iobroker bei ring angemledet, fuktioniert es einmal, danach nicht mehr. deswegen sie alle versionen über 3.0.1 unbrauchbar und defekt oder sowas.

same behavior..

version 3.0.1 works.

Ceel84 commented 1 year ago

Same problem 3.0.1 works

Captain-patty commented 1 year ago

Where do I get 3.0.1 now, the oldest I can choose under "install speciic version is 3.0.3!?

Wondermusic commented 1 year ago

Where do I get 3.0.1 now, the oldest I can choose under "install speciic version is 3.0.3!?

type in console: iobroker upgrade ring@3.0.1

Captain-patty commented 1 year ago

Thank you @Wondermusic. Unfortunately no improvement. The ring.0.doorbell.(ID).state is not there anymore. Why the hell? :(

Wondermusic commented 1 year ago

Thank you @Wondermusic. Unfortunately no improvement. The ring.0.doorbell.(ID).state is not there anymore. Why the hell? :(

The datapoint has another name:

doorbell-event

The datapoint has another name:

Captain-patty commented 1 year ago

But all I have is this

image

Wondermusic commented 1 year ago

Delete the whole object tree and restart the adapter. I think I did the same after downgrade to 3.0.1, but I'm not sure...

Captain-patty commented 1 year ago
image

Now it is completely broken. No more states in the tree.

Wondermusic commented 1 year ago

Huh... OK?! I didn't had that problem. What if you delete the whole adapter and try to reinstall with: iobroker install ring@3.0.1

Problem is - I don't know what this issue is. I'm just a user, not a programmer. On my side it worked with the upgrade routine i mentioned above. Otherwise maybe @theimo1221 can help you with this problem.

Wondermusic commented 1 year ago

I've tested now Version 3.1.9, but still the same issue. There is no ring event and under events there is again only the motion event visible.

denjo82 commented 1 year ago

Es ist leider so das bei den neueren Versionen also alles was höher ist wie 3.0.1 es nur einmal funktioniert mit frischen token, danach nicht mehr. Außer man macht wieder ein frischen token. Es funktioniert nur 3.0.1, verstehe nur nicht warum und warum nichts geändert wird?

Captain-patty commented 1 year ago

I guess the the problem is, like @theimo1221 said, he has nor Ring, only cams and they are working. It#s a pitty, since it has been ok previously and was one for all time destroyed by an update. :(

denjo82 commented 1 year ago

Hat der Entwickler nur Kameras oder wie?

Captain-patty commented 1 year ago

Hello @exaware,

first things first: I don't have a ring doorbell but I have 4 Stickups and 3 Floodlights in my account, so while I can't explicitly test doorbell events I do can test normal camera events.

To recieve events the following steps need to happen (compare FAQ):

Now when a event occurs the chain is as following:

  1. Ring Camera must inform Ring server
  2. Ring has to decide whether this is an event which needs a push notification
  3. The connection between Ring Api Client instance and ring must still exist
  4. Ring has to decide whether the Ring Api Client is a valid push target
  5. The Ring Api Client must react on the event
  6. The Ring Api Client has to trigger the suscribed event from this adapter
  7. The adapter has to react on the triggered event

Now we can check for some cases:

  • Point 1 and 2: As you guys get events on your phones these are correct
  • Point 3: As you guys report it even shortly after start this can't be the reason. Additionally every 2 hours the connection is terminated and reinitialized
  • Point 4: This is not in my hands and as there is no official documentation this could rely on different factors (existing subscription, amount of cameras, amount of events, ....)
  • Point 5 and 6: Not in my hands also
  • Point 7: As soon as the event is triggered it get's logged Recieved Motion Event at debug level. As even this doesn't occur for some users one of the previous points has to fail.

Additionally my logic isn't written like if it's not my ip or stars don't align then don't react on events. So as atleast some users do get events correctly I don't see any options on my side for now.

See here @denjo82

denjo82 commented 1 year ago

Okay, danke für die info. Dann lasst uns mal sammeln für den Entwickler damit das ein Ende hat. Wäre froh wenn der Adapter vernünftig weiter entwickelt wird.

Wondermusic commented 1 year ago

Gute Idee - die kleine ist grad als Black Friday Angebot drin -> 40,-. @theimo1221 Ist das ok für Dich? 5 Tage Zeit zum antworten... ;-) Danach kostet die wieder 60,-

denjo82 commented 1 year ago

Zusammen schmeißen sagte ich aber nicht das ich alleine bezahle. 5€ würde ich dazu geben

exaware commented 1 year ago

Würde mich auch mit 5€ beteiligen

muehle79 commented 1 year ago

Ich wäre auch mit 5€ dabei

Wondermusic commented 1 year ago

Zusammen schmeißen sagte ich aber nicht das ich alleine bezahle. 5€ würde ich dazu geben

So wars auch nicht gemeint -> Lach Wäre natürlich auch mit 5 dabei!

Wondermusic commented 1 year ago

For our English speaking users...

We are asking to collect for a Ring Doorbell for Theimo1221, so he can include their functions in future Versions of his ring adapter. Someones here who wants also donate some bucks? :-)