Sunoo / homebridge-camera-ffmpeg

Homebridge Plugin Providing FFmpeg-based Camera Support
https://sunoo.github.io/homebridge-camera-ffmpeg/
Apache License 2.0
1.09k stars 227 forks source link

Hikvision has hardware motion support #1194

Open mrMiimo opened 3 years ago

mrMiimo commented 3 years ago

Hi, do you think it is possible to add Hikvision hardware motion support? I found this information:

https://ragingcomputer.com/2016/06/19/hikvision-motion-detection-in-openhab-using-node-js/

https://github.com/ragingcomputer/node-hikvision-api

Thanks in advance!

ps. if I can do anything else please let me know.

Sunoo commented 3 years ago

It definitely could be supported, though it’d probably be done as a helper plugin, like the ones I have for FTP and SMTP based motion alerts already.

However, I don’t own a Hikvision camera, so I don’t have much drive to work on this. Maybe some day I’ll give it a go, if nobody else steps up to do it.

mrMiimo commented 3 years ago

It definitely could be supported, though it’d probably be done as a helper plugin, like the ones I have for FTP and SMTP based motion alerts already.

I actually use "switch" based motion, because I take advantage of my security system's external motion sensors.

But the notifications arrive with a few seconds of delay and therefore when the image arrives, sometimes the object that triggers the movement is no longer there.

So, taking advantage of this API, I could have a faster notification and it could be useful for HKSV.

However, I don’t own a Hikvision camera, so I don’t have much drive to work on this. Maybe some day I’ll give it a go, if nobody else steps up to do it.

well, if you want I can let you access my webcams 🙂

beezkneezdeez commented 3 years ago

Hikvision is the largest manufacturer of cams in the world. I think a LOT of people would be very very grateful if you could incorporate this.... :)

sebastiaan88 commented 3 years ago

I second this. I have multiple hikvision cameras but no motion sensors (and door contacts don't seem to count to push with snapshot). I think there's xml access to the "motion" status of the cam, maybe with a work around this can already work with other plugins, but if simple its nice to incorporate :)

steverae68 commented 2 years ago

I too would love native motion detection however, I have been using Sunoo's SmtpEnabled motion detection plugin for donkeys now and it works perfectly with my HikVision cam's - super easy to configure too

It alerts me when motion is detected, I can then (if needed) switch to my Hikvision DVR software and view the feed from there, the motion alert is purely to tell me when something happened as my cams are all POE and record constantly

rbswift commented 2 years ago

This is really easy to do with node-red-contrib-hikvision-ultimate. Publish to MQTT with payload of the camera name for whatever hikvision motion or line crossing event you want and then add something like this to your Camera-ffmpeg config:

                    "mqtt": {
                        "motionTopic": "camera/motion",
                        "doorbellTopic": "camera/doorbell"
                    } 

Node-red gives you near limitless flexibility in however you want to set this up.