homebridge-eufy-security / plugin

Homebridge plugin to control certain Eufy Security devices
Apache License 2.0
166 stars 24 forks source link

[enhancement]: dummy motion trigger switch for HSV #180

Open sheparddw opened 1 year ago

sheparddw commented 1 year ago

Describe the solution you'd like

Is there currently a way to manually trigger motion on a doorbell/camera? I am interested in using a separate motion sensor to trigger recordings for HSV.

I currently have motion notifications disabled for my doorbell as others in my house do not want to get notified every time there is motion (they only want to know when someone hits the button). But I would like video still saved to iCloud when motion is triggered. It would be great to have a dummy switch that when triggered would count as motion and save the video clip.

github-actions[bot] commented 1 year ago

Did you check this Road Map pages ?

sheparddw commented 1 year ago

Yes

sheparddw commented 1 year ago

Here is how homebridge-camera-ffmpeg implemented this: https://sunoo.github.io/homebridge-camera-ffmpeg/automation/switch.html

thieren commented 1 year ago

Hi @sheparddw

there is currently no feature like that implemented, but I did experiment with this while implementing HKSV earlier.

In theory this is doable but it would not be really self explaining to the user and I don't think you can accomplish the outlined idea in your first post with this.

A dummy switch could trigger the motion detection of the camera but for HomeKit this would seem as a normal motion that is detected. So everyone would still get the notification. This is solely on the side of HomeKit and I don't really see a thing that can be done on the plugin side about this.

Also there is an additional caveat regarding HKSV with this. And that's mainly the reason why I did not implement this until now: You can trigger the motion event with a dummy switch and a recording will be started. But if HKSV is configured you won't get a notification or a recorded timeline event in the camera view unless there is real motion detected in the video stream. That is because the data is first sent to apples servers and analysed. If the servers don't detect motion, a person, or so on they won't report back to HomeKit and there will not be a notification.

Because that could be confusing for the user (e.g. here's a dummy switch for motion, but if there is no real motion then it won't do anything) I didn't implement it yet.

sheparddw commented 1 year ago

👍🏻 HomeKit has options on notifications, so I think that is not a problem (it is the eufy app notifications that are all or nothing). So I think what you described would be perfectly acceptable behavior.

In my case, HomeKit should always see motion when my third party motion sensor triggers the camera as it would be right nearby but I can see how others might need a caveat written explaining this for the dummy switch.

Great work so far on HSV! This is a great feature and I look forward to the dummy switch getting implemented at some point to take further advantage of it. 🙂

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.