Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.63 KB

README.md

File metadata and controls

23 lines (14 loc) · 1.63 KB

Camera Motion

Use your NVR software to trigger a SmartThings simulated motion sensor

I have lots of cameras that are controlled by dedicated NVR software. This system is very good at detecting motion, but I had no way to get the motion detection back into SmartThings to trigger devices (turn on lights)

I wrote this very simple SmartApp to create an HTTP REST endpoint for my NVR software to trigger. When motion is detected, the software hits the "active" URL, and when motion stops it hits the "inactive" URL.

I used iSpyConnect for this implementation, but BlueIris and ZoneMinder both support the same action. Lots of other high end NVRs also have this capability.

4-3-2015 8-58-41 am

After you copy the SmartApp code into your IDE, go back and hit the edit button for "HTTP Motion Endpoint" under "My SmartApps". Then, enable OAuth. If you do not do this, you'll get an error saying "Error - bad state. Unable to complete page configuration."

SmartThings My SmartApps IDE

Once you've installed the SmartApp, your mobile device will display the active and inactive URL. Simply copy those into your NVR's action space and everything should be good to go!

Protip: If you're using this to active some kind of lighting while the camera is running, make sure you have the camera motion detection setup so that when the lights go off you don't retrigger motion!

License

Copyright (c) 2015, Kristopher Kubicki All rights reserved.