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

Missing Ring Event as datapoint #373

Closed
Wondermusic opened this issue Oct 11, 2022 · 108 comments
Closed

Missing Ring Event as datapoint #373

Wondermusic opened this issue Oct 11, 2022 · 108 comments

Comments

@Wondermusic
Copy link

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:

  • Adapter version: 3.1.3
  • JS-Controller version: 4.0.23
  • Node version: 16.16.0
  • Operating system: Ubuntu 22.04
@Voggl93
Copy link

Voggl93 commented Oct 12, 2022

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
Copy link
Collaborator

@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
Copy link

Voggl93 commented Oct 12, 2022

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
Copy link
Collaborator

@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
Copy link

Voggl93 commented Oct 13, 2022

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
Copy link

Voggl93 commented Oct 13, 2022

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

@theimo1221
Copy link
Collaborator

@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
Copy link

Voggl93 commented Oct 13, 2022

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
Copy link
Collaborator

@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
Copy link
Author

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
Copy link

Voggl93 commented Oct 14, 2022

@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
Copy link
Collaborator

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

@Voggl93
Copy link

Voggl93 commented Oct 14, 2022

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

@Voggl93
Copy link

Voggl93 commented Oct 15, 2022

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
Copy link
Author

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

@michor84
Copy link

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

@exaware
Copy link

exaware commented Oct 27, 2022

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
Copy link
Collaborator

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

@exaware
Copy link

exaware commented Oct 27, 2022

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
Copy link
Collaborator

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.

@exaware
Copy link

exaware commented Oct 28, 2022

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

@theimo1221
Copy link
Collaborator

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 #284 (comment)). 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
Copy link

exaware commented Oct 28, 2022

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
Copy link

exaware commented Oct 28, 2022

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
Copy link
Collaborator

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
Copy link

exaware commented Oct 30, 2022

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
Copy link
Collaborator

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
Copy link

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
Copy link

FeLiiix commented Nov 8, 2022

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.

@denjo1982
Copy link

how do I install the 3.2.1???

@theimo1221
Copy link
Collaborator

how do I install the 3.2.1???

Either by changing npm version or by install from github option

@theimo1221
Copy link
Collaborator

@Wondermusic, @muehle79, @Loctit3, @brunsheinz, @exaware Does 3.2.1 work on your instances?

@denjo1982
Copy link

3.2.1 is green, so connected. the token is new. objects are also there, but nothing is updated when the bell rings.

@exaware
Copy link

exaware commented Dec 2, 2022

After installing version 3.2.1 the events update only one time, same like at version 3.1.3. Motion, doorbell, snapshot and livestream work only one time.

@theimo1221
Copy link
Collaborator

I just went into my office and pressed the doorbell button and got the state and event immediatly again....

image

@Loctit3
Copy link

Loctit3 commented Dec 2, 2022

3.2.1 instant connection
first trys with doorbell press event worked perfect

@theimo1221
Copy link
Collaborator

I have another idea what the issue might be:

@denjo1982 and @exaware what is your iobroker hostname?
https://github.com/iobroker-community-adapters/ioBroker.ring/blob/master/src/lib/ringApiClient.ts#L40-L46

As mine is definitly unique due to own domain iobroker.xxxxxx.com

@exaware
Copy link

exaware commented Dec 2, 2022

My iobroker hostname is VM-IOBROKER
Maybe the '-' in the hostname is the problem?

@denjo1982
Copy link

it works for me but only once with a large delay

@exaware
Copy link

exaware commented Dec 2, 2022

I tried with another hostname, same behavior. Or do you mean iobroker host name?
image

@theimo1221
Copy link
Collaborator

@denjo1982 @exaware
Could you guys give me some info about your setup

  • Ring Protect Abo active?
  • Smartphone: iPhone or Android?
  • Ring Notifications Turned on?
  • Fresh Refresh Token before adapter installation?
  • Do you have other cameras and recieve motion events on them?
  • Is your ring account connect to any other services?
  • Doorbell Settings:
    image

@Voggl93
Copy link

Voggl93 commented Dec 2, 2022

So it seems @theimo1221 it has something to do with the Hostname.
I've installed 3.2.1 and it didn't work. Updated/Changed the Hostname and now events are triggering. Ding and Motion are working. I've tested this 3 times in a row now an everytime somethig triggered.

@exaware
Copy link

exaware commented Dec 2, 2022

My iobroker running into a Proxmox VM. Now I have changed the hostname of the VM and the hostname of iobroker. I didn't know that iobroker has a own hostname, really crazy. Now it's working with 3.2.1.

My old iobroker hostname was ioBroker. Here is the place I changed the hostname of iobroker:
image

@Voggl93
Copy link

Voggl93 commented Dec 2, 2022

@exaware same for me. Proxmox VM and old Hostname was standard ioBroker. Now everything is running as it should

@heikowe
Copy link

heikowe commented Dec 2, 2022

But why is the default Hostname "iobroker" not working with the Ring Adapter? Would be great to get a fixed new Version working with all Hostnames.

@theimo1221
Copy link
Collaborator

But why is the default Hostname "iobroker" not working with the Ring Adapter? Would be great to get a fixed new Version working with all Hostnames.

In my opinion there might be an easy reason for this:

The API want's a systemID to have a better identification for the counterpart accessing it (e.g. the installed ring app with a random id on a specific phone).
If now some hundred systems register with the same system id 'iobroker.ring' it is easy for them to block all of us.

I'll take a look on how to give every system a unique/random id to mitigate this as well

theimo1221 added a commit that referenced this issue Dec 2, 2022
* (theimo1221) #373 Fix event receiving for iobroker instances without unique hostname
@denjo82
Copy link

denjo82 commented Dec 3, 2022

How was that with the 3.0.1 version, it worked wonderfully there?

@Wondermusic
Copy link
Author

@theimo1221
Sorry, I am on a business trip. I'll try as fast as I can.

Ring Protect Abo active?
Yes

Smartphone: iPhone or Android?
Android

Ring Notifications Turned on?
Yes

Fresh Refresh Token before adapter installation?
Last Time when I changed to 3.1.9? No, after Inst.

Do you have other cameras and recieve motion events on them?
No

Is your ring account connect to any other services?
No

Doorbell Settings:

Screenshot_20221203_074509_Ring

@denjo1982
Copy link

so ich habe jetzt die neue version getestet und bei mir läuft es tadellos auch nicht nur einmal top

@exaware
Copy link

exaware commented Dec 4, 2022

For me the version 3.2.2 works fine with iobroker hostname "ioBroker".
@theimo1221 thank you for your work.

@Captain-patty
Copy link

Mine has obviously still no f*cking idea that it even is a ring :D

ring

@Captain-patty
Copy link

Or do I need the subscription? That would rather explain why it worked then and doesn't now. Because in the beginning you have some weeks free. I am pretty sure the Wifi signal was better, when it was active, also.

@MarioSander
Copy link

Hey Leute

wie habt ihr das mit dem Livestream gelöst?
wenn es klingelt soll auf der VIS der Livestream gezeigt werden, bei mir kommt aber irgendwie immer das letzte Video nicht der eigentliche Livestream.

@denjo1982
Copy link

Das geht nicht

@MeisterHeinz
Copy link

Dear @theimo1221
unfortunately I have the same problem: No ring event, only a motion event. I have adapter version 5.0.0-alpha.0
I also changed my hostname from iobroker to a unique hostname, reinstalled everything but there is only one event: motion.
btw, I have a subscription, so the reason is not the free plan.

@eumats
Copy link

eumats commented Nov 12, 2023

Hallo,

ich habe leider das gleiche Problem (nur motion unter events).

Versions:

Adapter version: 5.0.10
JS-Controller version: 5.0.16
Node version: 18.17.1
Operating system: Debian GNU/Linux 11 (bullseye)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests