homebridge-camera-ffmpeg icon indicating copy to clipboard operation
homebridge-camera-ffmpeg copied to clipboard

Hikvision has hardware motion support

Open mrMiimo opened this issue 4 years ago • 6 comments

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.

mrMiimo avatar Sep 13 '21 15:09 mrMiimo

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.

Sunoo avatar Sep 13 '21 15:09 Sunoo

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 🙂

mrMiimo avatar Sep 13 '21 16:09 mrMiimo

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.... :)

beezkneezdeez avatar Sep 21 '21 23:09 beezkneezdeez

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 :)

sebastiaan88 avatar Oct 06 '21 17:10 sebastiaan88

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

steverae68 avatar Dec 30 '21 20:12 steverae68

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.

rbswift avatar Sep 17 '22 10:09 rbswift