iobroker-community-adapters / ioBroker.ring

Ring Video Doorbell Adapter
MIT License
30 stars 14 forks source link

Missing Ring Event as datapoint #373

Closed Wondermusic closed 1 year ago

Wondermusic commented 2 years 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:

brunsheinz commented 1 year ago

Ich wäre auch mit 5 € dabei , wohin ? über Paypal?

Wondermusic commented 1 year ago

Ich wäre auch mit 5 € dabei , wohin ? über Paypal?

Danke für die Spendenbereitschaft. :-) Aber immer ruhig mit den jungen Hühnern... lach Wir warten mal 2-3 Tage und schauen wie viele sich beteiligen wollen und ob @theimo1221 überhaupt damit einverstanden ist. Der Black Friday Verkauf geht ja noch 5 Tage...

Momentan hätten wir 25,- Euro zusammen.

alex-meyus commented 1 year ago

Dabei. +5 Euro

Loctit3 commented 1 year ago

Dabei +5€

theimo1221 commented 1 year ago

Good Morning Guys,

While this is very kind of you it does come with some expectations on your side. Yes a ring doorbell would help me looking further into this and I definitely would, but there are two worst case scenarios for you guys:

But I'm eager to try it, so I'll even fill up the missing amount from my side to buy it🙂

This is the paypal fundraiser link to contribute: https://www.paypal.com/pools/c/8PgROKsJau

Best regards

Thiemo

denjo82 commented 1 year ago

So ich hab jetzt 10€ gespendet, bedeutet wenn alle mit machen sind die 40€ erreicht

exaware commented 1 year ago

I think, before Thiemo buying a Ring Bell, everyone should write their Ring Bell Version. Maybe only a specific variant of Ring Bell has this problem. I make the beginning. I have:

Video Doorbell Wired

Loctit3 commented 1 year ago

Ring Video Doorbell (2. Generation)

denjo82 commented 1 year ago

Doorbell pro 2

muehle79 commented 1 year ago

Doorbell (3.Generation)

theimo1221 commented 1 year ago

Ring Video Doorbell (2. Generation)

As this has a battery as well (easier development at desk) I added 20€ as well

Ceel84 commented 1 year ago

Ring wired

alex-meyus commented 1 year ago

Ring wired

Ceel84 commented 1 year ago

I donate 5€

Wondermusic commented 1 year ago

Ich habe die Doorbell Wired.

Ziel erreicht für die Ring Video Doorbell 2... 👍

heikowe commented 1 year ago

Ring Video Doorbell (4.Generation)

denjo1982 commented 1 year ago

kann es jemand bestätigen das die 3.0.1 version sich nicht mehr starten lässt, die neue version 3.1.9 funktioniert leider auch nur einmal. dann muss man den key wieder erneuern

Voggl93 commented 1 year ago

3.0.1 läuft bei mir ohne Probleme.

denjo1982 commented 1 year ago

welches node.js hast du drauf??

Voggl93 commented 1 year ago

Aktuell 16.18.0

denjo1982 commented 1 year ago

NPM 8.19.2 js: 4.0.23 Node.js: v16.18.1

bekomme ihn nicht zum laufen

heikowe commented 1 year ago

ja, 3.0.1 (und auch neuere) scheinen nicht mit node 16.x zu laufen. Und dafür die node version downgraden ist natürlich auch nicht so schön

denjo1982 commented 1 year ago

ich musste gestern mein system neu aufsetzten und vorher lief er perfekt. wundert mich alles irgendwie

heikowe commented 1 year ago

hattest du vorher eine node Version < 16 ? und welche hast Du jetzt? Also bei mir laufen alle Versionen vom ring adapter bis auf die aktuellste nicht mit node 16

denjo1982 commented 1 year ago

ja hatte ich, mein system halte ich immer aktuell

Voggl93 commented 1 year ago

Also ich habe Node.js 16.18.0 Npm 8.19.2

Und 3.0.1 läuft problemlos

heikowe commented 1 year ago

Node.JS 16.18.1 NPM 8.19.2

Bei der Adapter Version 3.0.1 (und allen weiteren bis auf die neueste) erhalte ich diesen Fehler:

`

host.iobroker 2022-11-30 11:25:59.696 error instance system.adapter.ring.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
host.iobroker 2022-11-30 11:25:59.696 error Caught by controller[0]: code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
host.iobroker 2022-11-30 11:25:59.696 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:103:18)
host.iobroker 2022-11-30 11:25:59.696 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1057:19)
host.iobroker 2022-11-30 11:25:59.695 error Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:971:27)
host.iobroker 2022-11-30 11:25:59.695 error Caught by controller[0]: at resolveExports (node:internal/modules/cjs/loader:522:36)
host.iobroker 2022-11-30 11:25:59.695 error Caught by controller[0]: at throwExportsNotFound (node:internal/modules/esm/resolve:365:9)
host.iobroker 2022-11-30 11:25:59.696 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.ring/build/lib/ringApiClient.js:7:15) {
host.iobroker 2022-11-30 11:25:59.696 error Caught by controller[0]: }
host.iobroker 2022-11-30 11:25:59.695 error Caught by controller[0]: at new NodeError (node:internal/errors:387:5)
host.iobroker 2022-11-30 11:25:59.695 error Caught by controller[0]: at packageExportsResolve (node:internal/modules/esm/resolve:649:3)
host.iobroker 2022-11-30 11:25:59.695 error Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:562:31)
host.iobroker 2022-11-30 11:25:59.695 error Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:833:27)

`

denjo1982 commented 1 year ago

welchen js-controller habt ihr drauf?

denjo1982 commented 1 year ago

also bei mir laüft sogar nur die github version, da ist irgendwo ein fehler ich weiß leider nur nicht wo. an node js 16 liegt es nicht

Captain-patty commented 1 year ago

Bei mir läuft gar keine Version, nicht einmal die 3.0.1. Bei mir taucht der State "ring" einfach nicht mehr auf. :(

theimo1221 commented 1 year ago

Some deletes, as this is an issue thread about ring adapter and not a forum about other adapter

Thanks to you guys I recieved my doorbell. And what should I say, I get Doorbell Events:

image

With 3.2.1 I made a slight change to order of setting doorbell state and starting the recording and increased the log depth.

So with Loglevel Debug you should get a debug message like:

Device xxxxx ("Arbeitszimmer"): Recieved Doorbell Event ({ ding: { streaming_protocol: 'ring_media_server', created_at: '2022-12-02T16:20:21.539Z', e2ee_method: 0, location_id: 'xxxxxx', device_name: 'Arbeitszimmer', doorbot_id: xxxx, e2ee_enabled: false, streaming_data_hash: 'sh-v1|tGE9I-9ZpynQdmZC1WcNwC..`
denjo1982 commented 1 year ago

how do I install the 3.2.1???

theimo1221 commented 1 year ago

how do I install the 3.2.1???

Either by changing npm version or by install from github option

theimo1221 commented 1 year ago

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

denjo1982 commented 1 year ago

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

exaware commented 1 year ago

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 commented 1 year ago

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

image
Loctit3 commented 1 year ago

3.2.1 instant connection first trys with doorbell press event worked perfect

theimo1221 commented 1 year ago

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 commented 1 year ago

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

denjo1982 commented 1 year ago

it works for me but only once with a large delay

exaware commented 1 year ago

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

theimo1221 commented 1 year ago

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

Voggl93 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

heikowe commented 1 year ago

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 commented 1 year ago

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

denjo82 commented 1 year ago

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

Wondermusic commented 1 year ago

@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