Hikvision Events is an interface between a Hikvision NVR and SmartThings that allows events, such as line crossings and motion detection from cameras, to be available to Smartthings as sensors.
Hi rtorchia, Thanks for making your work available it's awesome, I'm was able to successfully get your Hikvision Events to work. I edited your code to get it to work with a 16 channel nvr. I have a DS-7716NI-I4/16P NVR running firmware V4.40.015. I'm using the motion and intrusion detection events to trigger lights to turn on. The script runs and logs the motion detection and relays it to smart things as you designed but I'm seeing a lot of the following messages.
--> list index out of range
Also I prefer to use the intrusion detection event. The NVR and Hik-Connect mobile app see the intrusion detection events 100% of the time but for some reason the HikvisionEventServer hardly ever records the event. Any ideas? I've been trying to figure out what's going on but I'm new to this and can't figure it out. Any help would be greatly appreciated
I've attached a zip with your script I edited and the config I'm using.
I am following your instructions for addings this smartapp to my smarthings hub.
When I do this;
( Tap on the Update from Repo button and select the Hikvision-Events repo.
Select the Hikvison Motion Sensors application and install it. )
There is nothing to add on the following window, just click to " " smartapps/rtorchia/Hikvisionevents.src/Hikvisionevents.groovy " and it says Update 0 Created 0 Skipped 1 erros.