Greetings! Newbie here - I'm about 2 weeks in, have everything working in a basic way, and am now in the midst of tweak mode.
My NVR does not have alarm outputs but I was pleased to discover that some of the newer cameras do have "HTTP Data Transmission" abilities. I am able to create a device with a corresponding DNI and the event logs show activity that seems to be encoded as base64 coming in on port 39501. These events only occur when there is motion.
Is there a simple way to use this to trigger a virtual device/sensor to use in RM? I've been looking at sample drivers without getting a grasp of what exactly is necessary to accomplish this. As mentioned, I was thinking any traffic from the IP/MAC might be able to trigger this rather than decode and parse the incoming message (although that would certainly be a bonus).
Fwiw, the decoded "body:" portion is XML like this:
I use blue iris that records my hikvision cameras to send a web request to hubitat and use the local end point trigger in rule machine to turn lights on at night. You should be able to do the same thing directly from the camera though i think.
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.
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.
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.
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.
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.
@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.