Hikvision IP Camera as a Motion Device

Blue iris is amazing.

I use sharptools.io as my hubitat dash. (work in progress )

1 Like

Yeah ok didn't realise that what about the email option in the hikvision config? Could you somehow make that work even with pushover maybe?

Thanks for chiming in. I realize there are other options but this one should be the quickest/least complex and could be useful by others with these cameras. I believe this is a recent addition to the camera firmware that many may not be aware of.


Originally I had hoped that I could send http requests from the camera to Maker API but that isn't the case.

1 Like

I have amcrest cameras and pair with this software to turn a email into a http hit to hubitat

This might work for your use case?

Thanks for this. I'm a long time tinycam user and will check it out - didn't even realize there was a windows version until now.

Thanks for the suggestions. I was hoping to "cut out the middle man" by notifying the hub directly, however. It seems within grasp (the hub is receiving these events) but I lack the experience/chops to seal the deal.

My backup plan was to wire ecolink z-wave dry contact sensors directly to the cameras in order to avoid having to run additional computers/email servers etc but I'll still have to weigh the options.

Looks good. Is it quick?

Typically from the time I have motion in front of the camera to the virtual motion sensor triggering is < 1s. I'm surprised at how fast it actually is. I suppose it may vary by camera, but mine are fast.

Spun up a linux vm and it works great. Seems like the best option for me at the moment. Thanks.

Cheers! Glad it worked for you!

A lot of the newer cameras don't have the wired alarm output, so I'm interested in getting the "HTTP Data Transmission" working. @Mr_B: What was your setup to receive the HTTP transmissions in your first post?

To boil it down, Hikvision DS-2CD2555FWD-IS with "HTTP Data Transmission" enabled can send encoded xml events to the app port (39501) on the Hubitat hub. That's as far as I got.

1 Like

Blue iris?

This will integrate wonderfully with any compatible ip cam and hubitat.

1 Like

I just moved over to Blue Iris a few weeks ago. It's amazingly flexible. Getting cameras to trigger hubitat automations and vis versa is easy. Plus it can do so much more. I was using iVMS before which worked good but limited.

2 Likes

@Mr_B: I took a stab at it and got HTTP Data Streaming to work. I'm a HW engineer, so my coding skills are very limited and date back more than a couple of decades. Give me a few days to flush out the code, add some features, learn how to setup a repository on github and I will share it.

2 Likes

@Mr_B: Just released the code here: [RELEASE] Hikvision Alarm (HTTP Listening/Data Streaming)

I hope this is useful for your needs!

Awesome. Will try it out.

I am also interested to try out this driver. I too have messed with the Hikvision HTTP Listening feature (which was added somewhere in the 5.5 firmware series, so you need a relatively recent camera) and wrote a rudimentary driver but I found that the transmission of the motion detection XML is pretty slow, so much so that I had to add an actual motion detector at the same location. Also, unless you really have the motion detection finely tuned, you will get a fierce number of false positives from the wind in the trees, the sun moving across the landscape, etc.

@SteveZed:
The actual performance of the motion detection is a completely separate issue with regards to false alerts, but that's independent of this feature. If you are able to limit the area in which motion is detected (unfortunately shadows move throughout the day), that will improve things. I find line-crossing and face detection less prone to false alerts. Of course, you can also use the power of Hubitat's rule machine to further refine, filter, and combine with other sensors and events to enhance the power and accuracy of alerts.

Yes, HTTP Streaming feature is not on the older cameras, so we may need to write a driver using ISAPI if that's possible - I'm going to look into this. I really wanted this for my indoor cube cameras because they have PIR which has virtually no false alerts at all and I can use them as motion sensors for automation and to enhance the security system, but the DS-2CD2432F-IW's don't have this feature on the latest v5.4.5 firmware. Fortunately, they have Alarm I/O connector and I can wire-in to a Konnected Pro zone that is also integrated to Hubitat that works really well. I have a newer DS-2CD2455FWD-IW coming, which doesn't have the Alarm I/O connector, but hopefully will have HTTP Streaming since it should come with at least v5.5.80 according to Hikvision's US website.

My cameras send the HTTP messages nearly instantaneously, so I'm happy about that. I'm not sure why yours would send it delayed? I have 2 cameras that support this and both are running x5.6.x.

Still worth a try though... Check it out at the link I provided a few messages up.