ioBroker.eusec icon indicating copy to clipboard operation
ioBroker.eusec copied to clipboard

[Bug]: camera "motion_detected" not working

Open scottmil opened this issue 2 years ago • 3 comments

Adapter version

0.9.1

JS-Controller version

4.0.23

Node version

17.9.0

Operating System type

Other

Operating system version

Raspberry Pi Raspian Buster

Describe the bug

Camera "motion_detected" does not change value from "false" to "true" when motion detection is enabled on my Eufy Cam2C (T8142Z) cameras and Eufy Battery Doorbell (T8210B). The Eufy iPhone app correctly records when motion is detected on the cameras.

BTW: The adapter does correctly record changes to the "ringing" status when the doorbell button is pressed.

To reproduce

  1. Set eusec "motion_detection" to "true" by enabling camera motion detection using the Eufy iPhone app. (I can also enable motion detection using a custom Hubitat driver and device.)
  2. Manually create a motion detected Eufy event by standing in front of a camera while simultaneously watching for change in state of the eusec "motion_detected" state. (I also created a Blockly script to notify Hubitat of a change in state of the eusec "motion_detected". )
  3. The "motion_detected" state never changes from "false" to "true" in ioBroker. Hubitat is also never notified of a change in state.
  4. Screenshots Eufy Camera Motion
Script

Screenshots & Logfiles

No response

Additional context

No response

scottmil avatar Jun 29 '22 01:06 scottmil

@scottmil

motion_detected is only based on push notifications (no other known method). If you have deactivated push notifications, you will never receive a motion detection.

bropat avatar Jul 03 '22 10:07 bropat

Per the attached iPhone Eufy app screenshot for my Eufy Battery Doorbell, it appears that push notifications are activated. I receive motion detection notifications on my iPhone, but not in ioBroker. Is there somewhere else I need to configure push notifications?

In ioBroker, I also set “notification_motion” from false to true for my Eufy Doorbell, but it had no effect.

As mentioned previously, ioBroker does change the value of the Doorbell “ringing” state when I press the doorbell button.

Doorbell Notification

Doorbell-Notification Motion

scottmil avatar Jul 03 '22 20:07 scottmil

04-July-2022 Update: 1. I discovered that Eufy will only generate notifications if BOTH "Video Recording" AND "Notification" are checked in the Eufy app Security Settings. Checking only "Notification" did not generate a notification on either my iPhone or ioBroker. 2. After experimenting, I found that the eusec object "person_detected" was a more reliable monitor of motion detection compared to the "motion_detected" object. I edited my Blockly script to notify Hubitat of changes in the "person_detected" state, and it appears to be working consistently.

iobroker-person_detected Blockly-Hubitat Hubitat-notified

scottmil avatar Jul 04 '22 20:07 scottmil

Thank you!!

On Nov 4, 2022, at 10:18 AM, bropat @.***> wrote:

Closed #263 https://github.com/bropat/ioBroker.eusec/issues/263 as completed.

— Reply to this email directly, view it on GitHub https://github.com/bropat/ioBroker.eusec/issues/263#event-7742635526, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQGB2UJGHH2YC5YXZ7AD5DWGVANDANCNFSM52EBJJCQ. You are receiving this because you were mentioned.

scottmil avatar Nov 04 '22 17:11 scottmil