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.
Thanks again for your contribution
16ch.zip