Samfox2 / homebridge-videodoorbell

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

Button press event #73

Open UKenGB opened 3 years ago

UKenGB commented 3 years ago

Would like to use this with a Hikvision DS-HD1 doorbell camera. I believe I can access the live feed and snapshot source URLs (and set in config.json), but what about the button. Once installed, this device will ring the chime, but I also want notification sent to all devices logged in to that iCloud account. Is the button press notification sent to and used by HomeKit? What configuration is required for this?

Found no information about how this works - or doesn't. Could someone enlighten me?

Samfox2 commented 3 years ago

You need to trigger the button by yourself, e.g. by connecting the button to the gpio pins of a raspberry that sends a http request.

UKenGB commented 3 years ago

Hmm, not going to set up a Raspberry just for that. Do you know of any other way to detect the button push in HomeKit and/or Homebridge? Is there such a thing as a HomeKit sensor that sends a notification when it senses power, or contacts closed etc? Such a device would surely be useful, but I’ve not been able to find anything like it.

Ken G i l l e t t

////////

On 13 Nov 2020, at 19:54, Samfox2 notifications@github.com wrote:

You need to trigger the button by yourself, e.g. by connecting the button to the gpio pins of a raspberry that sends a http request.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Samfox2/homebridge-videodoorbell/issues/73#issuecomment-727000325, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGOFPTTQU7YDXMMZX3BFPH3SPWFHLANCNFSM4TUXPXYQ.

Samfox2 commented 3 years ago

Maybe you could use a cheep window contact sensor.

UKenGB commented 3 years ago

I’ve only seen the magnetic sensors which wouldn’t be any use, but yes, if I could find an actual contact sensor, that might be usable.

I was thinking of rigging up a Sonoff Mini to do it. Could be done and I use them very successfully elsewhere, but would require additional relay etc so hoped there was some sort of more suitable sensor available.

I’ll keep searching.

Ken G i l l e t t

////////

On 14 Nov 2020, at 11:48, Samfox2 notifications@github.com wrote:

Maybe you could use a cheep window contact sensor.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Samfox2/homebridge-videodoorbell/issues/73#issuecomment-727195137, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGOFPTUTCAD5UPUMSBZYUGTSPZU7BANCNFSM4TUXPXYQ.

Samfox2 commented 3 years ago

You can flash those Sonoff devices with a custom firmware that support homekit out of the box. With this it should be easy to make an automation that triggers the doorbell homekit switch.

UKenGB commented 3 years ago

I just use Homebridge and they all work wonderfully in HomeKit. I might look into flashing them, but right now, no real need as Homebridge ‘just works’ unlike Home.app which is appallingly bug ridden. Well, maybe not all bugs, just poor design.

I’m currently playing around with your plug-in and an old camera I had lying around. I can get familiar with it just using the trigger buttons you’re provided.

Hopefully the Hikvision doorbell won’t take too long to get here.

In the meantime, I’m trying to find where that test doorbell notification went. I got the notification on my Mac, but now it's disappeared. Sigh 🤔

Ken G i l l e t t

////////

On 14 Nov 2020, at 18:28, Samfox2 notifications@github.com wrote:

You can flash those Sonoff devices with a custom firmware that support homekit out of the box. With this it should be easy to make an automation that triggers the doorbell homekit switch.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Samfox2/homebridge-videodoorbell/issues/73#issuecomment-727247098, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGOFPTQWWKMZRW5J5J3CIVTSP3D4HANCNFSM4TUXPXYQ.

Samfox2 commented 3 years ago

Please make sure that notification for the doorbell is turned on.