[BETA] Hikvision Actuator for Input Alarms and Motion Detection

I am looking for beta testers for a driver that I believe has potential to become a built-in after spending some time in community, which is where I'll put the first general release and use HPM at that time.

This driver allows you to trigger Input Alarms on Hikvision cameras and control the enabled/disabled state of the Motion Detection Event and PIR Event (if equipped) by calling its custom commands from your rules. The driver implements the Actuator capability, which has no required commands or attributes of its own. Its all custom.

I developed this driver to complete my migration from Vera, which I have been using for the last 10 years. In Vera, I had the luxury of performing these actions with 10 lines of luup code in a scene, that was nothing more than a call out to curl using locally stored XML files. Came to find out I don't have such luxury in HE. Instead, I have a much better luxury, and its pretty groovy.

So this is also a working example of an HTTP GET/PUT XML-based app using the HE/Groovy httpget/put methods and Basic Authentication (httpBuilder would provide support for Digest but that class is not allowed in user code).

I am all new at this so please bear with me while I get up to speed with HPM and everything else, so I can do things right and make it all pretty like you guys do. But for now, the driver code can be found on github trs56 HubitatPublic:
I don't think I'm posting these links right either...
HikVision Camera Controller

And the doc, which is required reading, can be found here:
Hikvision Actuator User Guide

For questions and support, please message me here. Thank you.

1 Like

Generally you'll want to post the RAW code link so that it can be quickly imported: https://raw.githubusercontent.com/trs56/HubitatPublic/main/Hikvision_Actuator_for_Input_Alarms_and_Motion%20Detection.groovy

3 Likes

Closed per use of [RELEASE] Hikvision Camera Controller 1.0 for future development.