Skip to content

jallen2281/smartapp-camera-motion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

SmartThings SmartApp that creates a motion API Endpoint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 100.0%