[quote=“loukt, post:14, topic:197072”]The I_HikvisonIPCamera.xml contains the data to let work a Hikvision IP camera except the Motion Detect function,
which was not working.
But…[/quote]
Just wanted to say thanks for putting this together, and to the original contributors. Using the troubleshooting curl command line you specified with my LaView LV-PB932F4 (rebranded Hikvision bullet cams), I was able to discern that my ‘eventType’ was ‘linedetection’ and get the motion sensing working.
For anyone else trying to use this plugin, it absolutely does NOT work well with UI5, the APIs for device creation are all wrong (though it has some code commented out you can hack through). I also found this code does not work well for hard-wired POE cameras like I have, even ignoring the hard-coded model #s in the source code.
I’ve stripped the code down to ignore the model, and only focused on getting the linedetection search working for my cameras (no wifi setup, no audio sensor, no PTZ, etc), so this may not work for anyone else, but after days of getting this working properly I figured the least I could do was contribute back in case it helps anyone else. The polling getStreamEvents() function was brutal to get working with multiple cameras (it kept crashing my VeraPlus Lua loop), which is where I spent most of my time debugging and modifying the code to streamline it (I’m filtering down to just get the eventType fields, not the whole alertStream).
I’d recommend adding the cameras via the ‘Add Device’->Generic IP Cam->Manual process, and then simply add change the Impl File (to the attachment below after uploading it to the Vera) manually after the camera device is created. I struggled trying to get things working using the original thread directions (via the Create Device in Apps) and it would cause my VeraPlus UI7 to constantly crash (I think it was related to the Streaming functions wreaking havoc for some reason).
Also, I cannot get video streaming to work through my LaView NVR. It defaults to video emulation mode, leveraging the ‘/ISAPI/Streaming/channels/101/picture’ URL for each camera, and because I’m using an NVR with the ‘Virtual Host’ option, there doesn’t appear to be a way to give it an RTSP stream that it would be happy with. Oh well, at least I can see the images, and leverage the linedetection logic!