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

Pressing doorbell button results in flapping dp #548

Open
Matzebhv opened this issue Jul 7, 2023 · 24 comments
Open

Pressing doorbell button results in flapping dp #548

Matzebhv opened this issue Jul 7, 2023 · 24 comments
Assignees
Labels
question Further information is requested Testphase
Milestone

Comments

@Matzebhv
Copy link

Matzebhv commented Jul 7, 2023

Hi,
i have the following problem:
Pressing the doorbell button once results in flapping -> ring.0.doorbell_200421625.Events.doorbell.
As a result my scripts will send dozen of pictures if someone rings at my door.
This was one short press:
ring

Any ideas?
Matze

@mcm1957
Copy link
Member

mcm1957 commented Jul 8, 2023

Please add revision information:

adapter release
admin release
js-controller release
node version

@mcm1957 mcm1957 added the question Further information is requested label Jul 8, 2023
@Matzebhv
Copy link
Author

Matzebhv commented Jul 9, 2023

adapter 3.4.0
admin 6.6.0
js-controller 5.0.6
node 18.16.1

@Hini2001
Copy link

I have the Same Problem. Plus the Motion DP does the Same. It "flaps" several Times.

Adapter: 3.4.0
Admin: 6.3.5
Js-controller: 4.0.23
Node: 16.18.0

This Starts to Happen after Update Adapter to 3.4.0

@Hini2001
Copy link

Good Morning.
After Last nights Automatic Backup of the iobroker and the restart of the Adapter, it seems that my Problem ist gone. I will have an eye on it.

@Hini2001
Copy link

From now in the Motion DP ist flapping again. Nothing Changed. Just kept the system running.
Not as Bad as the Last Time. But it ist flapping again. I'll try top restart the Adapter and have a Look.

@Matzebhv
Copy link
Author

Matzebhv commented Jul 19, 2023

This Starts to Happen after Update Adapter to 3.4.0

Yes, downgrade to 3.3.1 resolves this problem. Will stay there untill a fix is available.

@Matzebhv
Copy link
Author

3.3.1 is flapping again.

@Huskerdu24
Copy link

Same Issue here:
Adapter 3.4.0
Admin: 6.6.1
node.js 18.16.1
JS 5.0.8
Debian 6.2.16-3-pve

@crusader85
Copy link

Same Problem here. Also all actual versions

@Hini2001
Copy link

Hini2001 commented Aug 6, 2023

Any solutions? 🤔

theimo1221 added a commit that referenced this issue Aug 6, 2023
@theimo1221 theimo1221 self-assigned this Aug 6, 2023
@theimo1221 theimo1221 added this to the 3.4.1 milestone Aug 6, 2023
@theimo1221
Copy link
Collaborator

Should work with 3.4.1

@Matzebhv
Copy link
Author

Matzebhv commented Aug 7, 2023

It seems to work with 3.4.1

@Hini2001
Copy link

Still flapping DP while Motion AND Press Doorbell, even with 3.4.1

@theimo1221
Copy link
Collaborator

@Hini2001 please provide additional details on which state is flapping in what frequency/time

As written in the added log message my "debouncing" just blocks duplicate events within 25s:
"Doorbell pressed --> Will ignore additional presses for the next 25s."

@Matzebhv
Copy link
Author

Its flapping again here too.
flapping

Timestamp:
First press 10:01:24
Flap: 10.01:44
Flap: 10:02:11
Flap: 10:02:58
Flap: 10:03:33
Flap: 10:04:07
Flap: 10:04:39
Flap: 10:05:11

@Hini2001
Copy link

@Hini2001 please provide additional details on which state is flapping in what frequency/time

As written in the added log message my "debouncing" just blocks duplicate events within 25s: "Doorbell pressed --> Will ignore additional presses for the next 25s."

It is the "Motion" DP in the Events folder.
After the real Motion was detected the state flaps several Times. For example:
21:34:05
21:36:16
21:36:32
21:38:12

The First Motion detections after a restart of the Adapter are normal. Motion = true. No Motion = false. End.
After a couple of detections the Flapping Starts. From 4 flappings Up to 12 or more.
After restart again No Flapping during the First Motion detections.

@theimo1221
Copy link
Collaborator

Could you set the log level to debug, please?

There should be messages like Recieved Motion Event. If those occure this would be an issue either within the ring-api or from ring themselve.

@dgreif do you have an idea regarding this events flapping?

@Hini2001
Copy link

Hini2001 commented Aug 26, 2023

Hey. Sorry. Today I looked in the Debug_Log and copied this:

ring.0
2023-08-26 14:10:09.631	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:09:44.250	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:09:42.873	debug	Get Livestream request for ???xxx??? to value false

ring.0
2023-08-26 14:09:42.631	info	Device ???xxx??? ("Haustür"): Could not create snapshot

ring.0
2023-08-26 14:09:42.631	debug	Reason: "Error: Snapshot for Haustür (doorbell_v4 - Doorbell 2) failed to refresh after 15 seconds. This is normal behavior since this camera is unable to capture snapshots while streaming"

ring.0
2023-08-26 14:09:42.631	info	Couldn't get Snapshot from api.

ring.0
2023-08-26 14:09:27.850	debug	Device ???xxx??? ("Haustür"): Done creating livestream to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/livestream???xxx???_1693051744628.mp4

ring.0
2023-08-26 14:09:27.731	debug	Device ???xxx??? ("Haustür"): Update Livestream Object

ring.0
2023-08-26 14:09:27.629	debug	Device ???xxx??? ("Haustür"): delayed uuid recording

ring.0
2023-08-26 14:09:16.416	debug	Get Livestream request for ???xxx??? to value false

ring.0
2023-08-26 14:09:05.417	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051744628.jpg

ring.0
2023-08-26 14:09:05.403	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:09:04.629	debug	Device ???xxx??? ("Haustür"): Recieved Ding Event ([Object: null prototype] { ding: [Object: null prototype] { streaming_protocol: 'ring_media_server', riid: '39901133ed302aaa1e52ae8ff661eef0', created_at: '2023-08-26T12:05:03.023Z', e2ee_method: 1, location_id: 'a????-????', device_name: 'Haustür', doorbot_id: ???xxx???, e2ee_enabled: false, streaming_data_hash: 'sh-v1|p0_i????', device_kind: 'doorbell_v4', detection_type: 'human', id: '7271600835856239251', request_id: '367f4559f1654344be0e4d7553577354', image_uuid: '999254d4-ce7a-4733-b257-4208053a0493:???xxx???', properties: [Object: null prototype] }, aps: [Object: null prototype] { alert: 'There is a Person at your Haustür', sound: 'Motion.wav' }, subtype: 'human', action: 'com.ring.push.HANDLE_NEW_motion'})

ring.0
2023-08-26 14:09:04.628	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (true)

ring.0
2023-08-26 14:09:02.910	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051742249.jpg

ring.0
2023-08-26 14:09:02.885	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:09:02.249	debug	Device ???xxx??? ("Haustür"): delayed uuid recording

ring.0
2023-08-26 14:09:01.330	debug	Device ???xxx??? ("Haustür"): Done creating livestream to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/livestream???xxx???_1693051719247.mp4

ring.0
2023-08-26 14:09:01.134	debug	Device ???xxx??? ("Haustür"): Update Livestream Object

ring.0
2023-08-26 14:08:42.606	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:08:40.024	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051719247.jpg

ring.0
2023-08-26 14:08:40.011	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:08:39.248	debug	Device ???xxx??? ("Haustür"): Recieved Ding Event ([Object: null prototype] { ding: [Object: null prototype] { streaming_protocol: 'ring_media_server', riid: '39901133ed302aaa1e52ae8ff661eef0', created_at: '2023-08-26T12:05:03.023Z', e2ee_method: 1, location_id: 'a????-????', device_name: 'Haustür', doorbot_id: ???xxx???, e2ee_enabled: false, streaming_data_hash: 'sh-v1|p0_i_???L3wB9ooZb41ei0aK5eOLcQK-msZ9EnzCeTeXixDPuacVzVJ2yQ4CJQzN6434lCkzh8yHfE4k1q1QfBGEvrkBaCkicCbZUBppAPweaA4tiOEoNWv-aGpzE4eXkgdKNywkJ0CEIfP7VnS8K8lLdicm5GoeNwHIHhkbA2Dz_ciJRLOsyxNj_V9NUVtxTur7w_ypSvfkcU=', device_kind: 'doorbell_v4', detection_type: 'human', id: '7271600835856239251', request_id: '367f4559f1654344be0e4d7553577354', image_uuid: '999254d4-ce7a-4733-b257-4208053a0493:???xxx???', properties: [Object: null prototype] }, aps: [Object: null prototype] { alert: 'There is a Person at your Haustür', sound: 'Motion.wav' }, subtype: 'human', action: 'com.ring.push.HANDLE_NEW_motion'})

ring.0
2023-08-26 14:08:39.246	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (true)

ring.0
2023-08-26 14:08:38.652	debug	Device ???xxx??? ("Haustür"): Update Health Callback

ring.0
2023-08-26 14:08:38.242	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:08:38.241	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:08:38.239	debug	Device ???xxx??? ("Haustür"): Recieved Update

ring.0
2023-08-26 14:08:37.791	debug	Device ???xxx??? ("Haustür"): Update Health Callback

ring.0
2023-08-26 14:08:37.316	debug	Refresh complete

ring.0
2023-08-26 14:08:37.315	debug	Location has 0 Intercoms

ring.0
2023-08-26 14:08:37.312	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:08:37.311	debug	Device ???xxx??? ("Haustür"): Recieved Update

ring.0
2023-08-26 14:08:37.310	debug	Location has 4 Cameras

ring.0
2023-08-26 14:08:37.309	debug	Recieved 0 Devices in Location Zu Hause

ring.0
2023-08-26 14:08:37.303	debug	Process Location Zu Hause

ring.0
2023-08-26 14:08:37.227	debug	Location a????-???? ("Zu Hause"): Recieved Location Connection Status Change to false

ring.0
2023-08-26 14:08:37.226	debug	Received 1 Locations

ring.0
2023-08-26 14:08:35.901	info	Recieved new Refresh Token. Will use the new one until the token in config gets changed

ring.0
2023-08-26 14:08:35.642	debug	As the configured refresh token hasn't changed the state one will be used

ring.0
2023-08-26 14:08:35.641	debug	Retrieve Locations

ring.0
2023-08-26 14:08:35.639	debug	Refresh Ring Connection

ring.0
2023-08-26 14:08:27.194	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:08:22.291	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:08:01.506	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051680607.jpg

ring.0
2023-08-26 14:08:01.492	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:08:00.867	info	Recieved new Refresh Token. Will use the new one until the token in config gets changed

ring.0
2023-08-26 14:08:00.607	debug	Device ???xxx??? ("Haustür"): delayed uuid recording

ring.0
2023-08-26 14:07:54.574	debug	Get Livestream request for ???xxx??? to value false

ring.0
2023-08-26 14:07:46.135	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051665194.jpg

ring.0
2023-08-26 14:07:46.089	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:07:45.194	debug	Device ???xxx??? ("Haustür"): delayed uuid recording

ring.0
2023-08-26 14:07:41.084	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051660292.jpg

ring.0
2023-08-26 14:07:41.064	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:07:40.292	debug	Device ???xxx??? ("Haustür"): delayed uuid recording

ring.0
2023-08-26 14:07:39.351	debug	Device ???xxx??? ("Haustür"): Done creating livestream to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/livestream???xxx???_1693051637290.mp4

ring.0
2023-08-26 14:07:39.223	debug	Device ???xxx??? ("Haustür"): Update Livestream Object

ring.0
2023-08-26 14:07:37.605	debug	Device ???xxx??? ("Haustür"): Recieved Ding Event ([Object: null prototype] { ding: [Object: null prototype] { streaming_protocol: 'ring_media_server', riid: '39901133ed302aaa1e52ae8ff661eef0', created_at: '2023-08-26T12:05:03.023Z', e2ee_method: 1, location_id: 'a????-????', device_name: 'Haustür', doorbot_id: ???xxx???, e2ee_enabled: false, streaming_data_hash: 'sh-v1|p0_i (...) BNu1oLrxG4j2NWrBPow=', device_kind: 'doorbell_v4', detection_type: 'human', id: '7271600835856239251', request_id: '367f4559f1654344be0e4d7553577354', image_uuid: '999254d4-ce7a-4733-b257-4208053a0493:???xxx???', properties: [Object: null prototype] }, aps: [Object: null prototype] { alert: 'There is a Person at your Haustür', sound: 'Motion.wav' }, subtype: 'human', action: 'com.ring.push.HANDLE_NEW_motion'})

ring.0
2023-08-26 14:07:37.604	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (true)

ring.0
2023-08-26 14:07:22.192	debug	Device ???xxx??? ("Haustür"): Recieved Ding Event ([Object: null prototype] { ding: [Object: null prototype] { streaming_protocol: 'ring_media_server', riid: '39901133ed302aaa1e52ae8ff661eef0', created_at: '2023-08-26T12:05:03.023Z', e2ee_method: 1, location_id: 'a????-????', device_name: 'Haustür', doorbot_id: ???xxx???, e2ee_enabled: false, streaming_data_hash: 'sh-v1|p0_i_???9Hnx-p58vhD53WXegqFV20wb8QwJN-GanIpS6VM-Lb8MTqLHFD9hPIgVkAmzx9dXcb_AQIUjvq_gO3nsj1S5gEQD7d9j5Mn8DeFY88BNDDp8kJ-p5dlemMNlPFZ-Bon-ylCBNu1oLrxG4j2NWrBPow=', device_kind: 'doorbell_v4', detection_type: 'human', id: '7271600835856239251', request_id: '367f4559f1654344be0e4d7553577354', image_uuid: '999254d4-ce7a-4733-b257-4208053a0493:???xxx???', properties: [Object: null prototype] }, aps: [Object: null prototype] { alert: 'There is a Person at your Haustür', sound: 'Motion.wav' }, subtype: 'human', action: 'com.ring.push.HANDLE_NEW_motion'})

ring.0
2023-08-26 14:07:22.192	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (true)

ring.0
2023-08-26 14:07:17.903	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051637289.jpg

ring.0
2023-08-26 14:07:17.894	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:07:17.290	debug	Device ???xxx??? ("Haustür"): Recieved Ding Event ([Object: null prototype] { ding: [Object: null prototype] { streaming_protocol: 'ring_media_server', riid: '39901133ed302aaa1e52ae8ff661eef0', created_at: '2023-08-26T12:05:03.023Z', e2ee_method: 1, location_id: 'a????-????', device_name: 'Haustür', doorbot_id: ???xxx???, e2ee_enabled: false, streaming_data_hash: '???E4eXkgdKNywkJ0CEIfP7VnS8K8lLdicm5GoeNwHIHhkbA2Dz_ciJRLOsyxNj_V9NUVtxTur7w_ypSvfkcU8dqIU-RfAppVJwb3umV4_DysFHh7BiE9n7JS6XSygJMpbQt_G4C_HNpMGIvtZN6zfY9JG6Mk-34Qo', device_kind: 'doorbell_v4', detection_type: 'human', id: '7271600835856239251', request_id: '367f4559f1654344be0e4d7553577354', image_uuid: '999254d4-ce7a-4733-b257-4208053a0493:???xxx???', properties: [Object: null prototype] }, aps: [Object: null prototype] { alert: 'There is a Person at your Haustür', sound: 'Motion.wav' }, subtype: 'human', action: 'com.ring.push.HANDLE_NEW_motion'})

ring.0
2023-08-26 14:07:17.289	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (true)

ring.0
2023-08-26 14:07:13.442	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:07:12.409	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:07:06.219	debug	Device ???xxx??? ("Haustür"): Update Health Callback

ring.0
2023-08-26 14:07:05.812	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:07:05.811	debug	Device ???xxx??? ("Haustür"): Recieved Update

ring.0
2023-08-26 14:07:05.412	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:07:05.334	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:06:52.962	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:06:47.829	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:06:42.343	debug	Get Livestream request for ???xxx??? to value false

ring.0
2023-08-26 14:06:37.591	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:06:32.507	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:06:32.039	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051591442.jpg

ring.0
2023-08-26 14:06:32.030	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:06:31.442	debug	Device ???xxx??? ("Haustür"): delayed uuid recording

ring.0
2023-08-26 14:06:31.209	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051590410.jpg

ring.0
2023-08-26 14:06:31.189	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:06:30.409	debug	Device ???xxx??? ("Haustür"): delayed uuid recording

ring.0
2023-08-26 14:06:28.016	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051587147.jpg

ring.0
2023-08-26 14:06:27.969	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051587151.jpg

ring.0
2023-08-26 14:06:27.956	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:06:27.954	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:06:27.339	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:06:27.275	debug	Device ???xxx??? ("Haustür"): Done creating livestream to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/livestream???xxx???_1693051560332.mp4

ring.0
2023-08-26 14:06:27.151	debug	Device ???xxx??? ("Haustür"): delayed uuid recording

ring.0
2023-08-26 14:06:27.147	debug	Device ???xxx??? ("Haustür"): delayed uuid recording

ring.0
2023-08-26 14:06:27.147	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:06:27.146	debug	Device ???xxx??? ("Haustür"): Update Livestream Object

ring.0
2023-08-26 14:06:17.105	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:06:11.594	debug	Device ???xxx??? ("Haustür"): Done creating snapshot to /opt/iobroker/node_modules/iobroker.ring/snapshot/doorbell_???xxx???/snapshot???xxx???_1693051570961.jpg

ring.0
2023-08-26 14:06:11.501	debug	Device ???xxx??? ("Haustür"): Update Snapshot Object

ring.0
2023-08-26 14:06:10.961	debug	Device ???xxx??? ("Haustür"): delayed uuid recording

ring.0
2023-08-26 14:06:10.488	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)

ring.0
2023-08-26 14:06:08.442	debug	Device ???xxx??? ("Haustür"): Recieved Ding Event ([Object: null prototype] { ding: [Object: null prototype] { streaming_protocol: 'ring_media_server', riid: '39901133ed302aaa1e52ae8ff661eef0', created_at: '2023-08-26T12:05:03.023Z', e2ee_method: 1, location_id: 'a????-????', device_name: 'Haustür', doorbot_id: ???xxx???, e2ee_enabled: false, streaming_data_hash: '???E4eXkgdKNywkJ0CEIfP7VnS8K8lLdicm5GoeNwHIHhkbA2Dz_ciJRLOsyxNj_V9NUVtxTur7w_ypSvfkcU8dqIU-RfAppVJwb3umV4_DysFHh7BiE9n7JS6XSygJMpbQt_G4C_HNpMGIvtZN6zfY9JG6Mk-34QofjwysUE4Zl3d07dEDqtQVuUikAWQHZcQjtq8Y-0DmgzjtuchAZ4A9dxwW_gmHXih-nSy_Al9W2s4JJdlBkVg6hihbSGjQRSIfErmZcJmnm6_fpgLQzUKu', device_kind: 'doorbell_v4', detection_type: 'human', id: '7271600835856239251', request_id: '367f4559f1654344be0e4d7553577354', image_uuid: '999254d4-ce7a-4733-b257-4208053a0493:???xxx???', properties: [Object: null prototype] }, aps: [Object: null prototype] { alert: 'There is a Person at your Haustür', sound: 'Motion.wav' }, subtype: 'human', action: 'com.ring.push.HANDLE_NEW_motion'})

ring.0
2023-08-26 14:06:08.441	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (true)`

at 14:06 the REAL motion was detected.
then the DP flapped at
14:07
14:07
14:07
14:08
14:09

in the Logfile the adapter reportet
Device ???xxx??? ("Haustür"): Recieved Motion Event (true)
at the same Times as above, but there was NO motion.
AND I recognized that the doorbell does a lot of Snapshots. Too much of them.

I hope this could help you.

Thanks and have a nice weekend!

@theimo1221
Copy link
Collaborator

Good Morning,

I reduced the log to the relevant lines:

ring.0
2023-08-26 14:10:09.631	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:09:44.250	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:09:04.629	debug	Device ???xxx??? ("Haustür"): Recieved Ding Event ([Object: null prototype] { ding: ...
2023-08-26 14:09:04.628	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (true)
2023-08-26 14:08:42.606	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:08:39.248	debug	Device ???xxx??? ("Haustür"): Recieved Ding Event ([Object: null prototype] { ding: ...
2023-08-26 14:08:39.246	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (true)
2023-08-26 14:08:38.242	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:08:27.194	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:08:22.291	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:07:37.605	debug	Device ???xxx??? ("Haustür"): Recieved Ding Event ([Object: null prototype] { ding: ...
2023-08-26 14:07:22.192	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (true)
2023-08-26 14:07:17.290	debug	Device ???xxx??? ("Haustür"): Recieved Ding Event ([Object: null prototype] { ding:...
2023-08-26 14:07:17.289	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (true)
2023-08-26 14:07:13.442	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:07:12.409	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:07:05.412	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:07:05.334	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:06:52.962	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:06:47.829	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:06:37.591	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:06:32.507	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:06:27.339	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:06:27.147	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:06:17.105	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:06:10.488	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (false)
2023-08-26 14:06:08.442	debug	Device ???xxx??? ("Haustür"): Recieved Ding Event ([Object: null prototype] { ding:...
2023-08-26 14:06:08.441	debug	Device ???xxx??? ("Haustür"): Recieved Motion Event (true)`

As we are only reacting on events from https://github.com/dgreif/ring I think @dgreif should give this a look:

this._ringDevice.onMotionDetected.subscribe(
{
next: (motion: boolean) => {
this.onMotion(motion)
},
error: (err: Error) => {
this.catcher(`Motion Observer recieved error`, err)
},
}
);

@niiccooo1
Copy link

Same problem here

Adapter: v4.0.0
js-controller: 4.0.24
Node: 18.17.1
NPM: 9.6.7

@crusader85
Copy link

Problem is still here.

@Chris25122
Copy link

Same problem here

Adapter: 5.0.0-alpha.0
js-controller: 5.0.13
Node: 18.17.1
NPM: 9.6.7

@McWoolf
Copy link

McWoolf commented Oct 21, 2023

Hatte das selbe Problem, jetzt nach update auf 5.0.1 scheint das Problem mal vorerst erledigt zu sein.

Adapter : 5.0.1
js-controler: 5.0.12
Node: 18.18.2
NPM: 9.8.1

@niiccooo1
Copy link

Kann ich nicht bestätigen:

(Die Klingel wurde nur einmal betätigt)

If there is a Doorbell Press Event

timestamp value acknowledged
2023-10-25T09:59:52.564Z true true
2023-10-25T09:59:57.564Z false true
2023-10-25T10:00:17.709Z true true
2023-10-25T10:00:22.631Z false true
2023-10-25T10:00:46.292Z true true
2023-10-25T10:00:51.290Z false true
2023-10-25T10:01:28.043Z true true
2023-10-25T10:01:33.033Z false true
2023-10-25T10:03:34.627Z true true
2023-10-25T10:03:39.647Z false true

Adapter : 5.0.1
js-controller: 5.0.12
Node: 18.18.2
NPM: 9.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Testphase
Projects
None yet
Development

No branches or pull requests

9 participants