Samfox2 / homebridge-videodoorbell

Video-Doorbell plugin based on homebridge-camera-ffmpeg for Homebridge.
Apache License 2.0
97 stars 17 forks source link

Motion #36

Closed RobertDWhite closed 4 years ago

RobertDWhite commented 5 years ago

Can this plugin handle motion? If not, would you suggest a homebridge plugin pair to handle motion alerts?

Samfox2 commented 5 years ago

If you put a motion sensor into the same room as your video doorbell, a motion detection will also trigger a snapshot message to your mobile.

roe1974 commented 4 years ago

with ios13 the motion sensor ist not working anymore. There is a solution for homebridge-camera-ffmpeg see: https://github.com/NorthernMan54/homebridge-camera-ffmpeg/commit/1d874eeff060b122c95ea98f3370fa56838aeb12 is it possible to fix it here also ? regards, Richard

Samfox2 commented 4 years ago

Should work if you add

   "button": true   

to your config file. You get a switch that you can use with any automation to trigger the doorbell.

roe1974 commented 4 years ago

i actually trigger the video doorbell with: curl -X POST -d 'ding=dong&dong=ding' http://IP_OF_HOMEBRIDGE_RUNNING_DEVICE:5005

.... and there is no more picture in the rich notifications. is the button not doing the same as the curl comand ? i think the button has to be "part" of the camera ....

Richard

roe1974 commented 4 years ago

i want to „activate „ the video doorbell without the notification „it has rang“ ... like the motion sensor would do ...

Samfox2 commented 4 years ago

Yes, the button should do the same but I will have a look...

Samfox2 commented 4 years ago

Ok, webserver should work now. Please update to the latest version.

roe1974 commented 4 years ago

ok... i can test it on monday ... but how ist works now ? i use the curl call for the ring and the switch for the motion sensor ? richard

Samfox2 commented 4 years ago

Both methods should work now - however, they will act like a doorbell with the „doorbell rang“ message. I will see if an additional motion sensor can be implemented.

roe1974 commented 4 years ago

@Samfox2 any news about additional motion sensor for rich notifications ? regards richard

Samfox2 commented 4 years ago

In iOS 13.2 there is a separate camera setting for triggering notifications if the cam detects motion. Maybe this works out of the box with a motion sensor in the same room?

roe1974 commented 4 years ago

just tested ... when i activate this feature and exit the settings ... then enter again in settings, the switch is turned off ... so it stays not on :-(

Samfox2 commented 4 years ago

Great feature 👎

Samfox2 commented 4 years ago

@roe1974 ok, added an additional motion service + switch for your automations. Please upgrade to the latest version. To get it to work you have to remove your current videodoorbell from home and add it as a new one, otherwise the new service cannot be recognized. To receive rich notifications triggered by motion please activate them in home app.

sanychonline commented 4 years ago

Does motion event initiated by camera could be triggered by plugin? I have activated motion triggering in Apple Home, but still have no any notifications about motion. The button set to true in a config.

Samfox2 commented 4 years ago

You have to enable notifications for motion event in home app - cam settings - notifications - motion. You can test it with the separate motion switch afterwards.

sanychonline commented 4 years ago

It is enabled. It might as per your recent updates. But still does not work.

IMG_3338

{ "platform": "Video-doorbell", "name": "DoorBell", "cameras": [ { "name": "Hikvision", "manufacturer": "Hikvision", "model": "DS-KB8112-IM", "firmwareRevision": "1.4.5.190219", "port": 5005, "button": true, "throttle": 3000, "motion": true, "videoConfig": { "source": "-rtsp_transport tcp -re -i rtsp://user:pass@172.16.1.4/Streaming/channels/101", "stillImageSource": "-i rtsp://user:pass@172.16.1.4/ISAPI/Streaming/channels/101/picture", "maxStreams": 5, "motion": true, "maxWidth": 1280, "maxHeight": 720, "vcodec": "h264", "audio": true, "packetSize": 188, "debug": false, "maxFPS": 24 } } ] }

sanychonline commented 4 years ago

May I ask you create another port webhook for motion? "port": 5005, -- keep this one for doorbell events "motion_port": 5006, --create something like this? So I can trigger the motion sensor through the (ifttt.com + ezviz platform)

Samfox2 commented 4 years ago

Sorry, holiday time :-) but you can trigger the motion button with the http-motion plugin.

sanychonline commented 4 years ago

Thanks for advice! I have successfully implemented this idea...

Samfox2 commented 4 years ago

Good to hear and thx for the feadback.