[OBSOLETE] Smart Security Camera SmartApp - Now with Local Video Recording Support!

Is there any way to have this trigger with a code entered from the Kwikset 910 using this smart app: [Depricated] Lock Code Manager

If you can set this to trigger on a hello home action, just have your code entry trigger a hello home action via the LCM app and boom!

Might require some work by @blebson to do. Shouldn’t be too much though.
http://docs.smartthings.com/en/latest/smartapp-developers-guide/routines.html?highlight=hello%20home

When a lock is unlocked it’s not guaranteed that the event will fire immediately, so you might miss the capture. It’s worth a shot though. HAH!

I guess I solved what I asked in my prior post. Used info from How to set Smart Home Monitor status from SmartApp and modified your code a bit. Now I got it to work along with the Smart Home Monitor.

Hello SRIRAM, can you please elaborate on what you have achieved making this smartapp working with SHM? That sounds interesting to me. Many thanks.

This smartapp is working very nicely with my D-Link DCS-5222 (many thanks!), however the lack of cloud video in its SmartThings integration is clearly a limit. I can still access videos remotely through the D-Link mydlink app but it’s not exactly the same especially since that app is less reliable than smartthings (generally slower, sometimes it doesn’t connect to the camera, UI is quite old and dysfunctional, etc). Dumb question - would it work if I run the standard D-Link device handler in parallel within ST, basically installing the same camera twice? That way I could enjoy this smartapp with its advanced features and leverage ST cloud services for videos at the same time.

Yes you can, I’m not sure if there will be any performance difference but it is definitely possible.

If only my ST would find the D-link camera through its automatic discovery
system. No joy with that! It worked in the past but not anymore, not sure
why. Is there a manual way to configure a D-link camera under the standard
SmartThings device handler so that I can run it in parallel to your
smartapp (as we said above)? Thanks

Hi Antongiulio

The original implementation by Ben subscribes to events from sensors only. So for example whenever the motion sensor becomes active a video gets recorded. This is triggered irrespective of the status of SHM. In my use I wanted the video to be recorded only when SHM was in a particular mode.

I got the app in this thread to be triggered only if my SHM is in Armed-Away mode by doing the following
Add this to list of subscribed events

def subscribeToEvents() {
//all sensor events from orignal implementation
subscribe(location, “alarmSystemStatus”, alarmHandler)
}

You could define alarmHandler routine for debug purposes as follows

def alarmHandler(evt) {
  log.debug "Alarm Handler value: ${evt.value}"
  log.debug "alarm state: ${location.currentState("alarmSystemStatus")?.value}"
}

All the video and picture taking in the sendMessage routine can be encompassed within

def status = location.currentState("alarmSystemStatus")?.value
log.debug "$status"
if(status == "away"){
// the video + picture taking part
}

alarmSystemStatus has state values away/stay/off depending on the 3 main settings of SHM (Armed-Away, Armed-Stay, Disarmed). Hope this helps

Just to clarify, my SmartApp has a mode restriction, not a SHM restriction.

Yes I observed that. Its just me I guess, I had gotten used to changing
status directly on the SHM interface. I guess I could use routines that
changes both SHM status and the mode. That way I could just use the mode
restriction you have put in.

Hi Ben - thanks for all your hard work. Relatively new to ST … installed your D-Link camera manager for my two
Dlink 5222Ls - and your app got my cameras to work with ST so thanks for that!

Now - trying to get the two DLINKS I have to trigger a recording based on an event. The prob I am having is it seems the
camera recording on the SD card is only recording just a couple seconds of video - (I am also using your smart security camera app for this). Can’t seem to get it to go longer no matter what - made changes in the length of time video records in the app … and increased the max file size in the event setup on the DLINK camera.

Any ideas? Thanks again.

PS …I also tried removing the SMART SECURITY smartapp - and just used a custom monitoring rule - and again - even though the recording length to the DLINK cam is set in that rule at 60sec I get a very short (3 sec? ) recording. Just using the DLINK camera software and motion/PIR I get full length recordings for whatever I set…

Tom

For me I can only get them to record a max of 30 seconds at a time. I think one of my older cameras can record 2min at a time but it’s not in HD. Not sure if there is any way to get around that.

HI Ben … 30 would be GREAT … but I am only getting 3 seconds no matter what I do.

Tom

Might have to pay around with the quality settings, I set it up a long time ago and am not sure how I did it. It may only be available by using URL commands, I don’t know.

New to Smartthings and having a great time learning. Love your Connect app and have it working great with my DCS-933L. Couple things (apologies if they are covered elsewhere):

Can Sound detection be toggled using your app (ie like motion can)?
Can either sound or motion detected be used in Smartthings to trigger other events (ie alarm)?
Is there an easy way to toggle motion (and sound if possible) using other events in Smartthings? (ie simple motion detection on when in Away mode)

I am still getting my feet wet so prefer a routine over a Smartapp, but would use either.

Thanks for your work on this.

You could customize the DTH code to allow toggling of the sound detection but I don’t have any intention of adding additional features at this time. The connection to the camera is unidirectional which means you can have ST trigger things on the camera (like turning on Motion, etc) but you cannot trigger things in ST from the camera.

Hello Ben, is there any outdoor HD camera which is supported by your smartapp and that you would recommend? Many thanks.

Check out the D-Link Camera (Connect) post for a full list of supported cameras.

Hi Ben,

I have to say this Smart App ranks right up at the top with the cool factor, thanks for developing it for us!

I have a couple of feature request I am hoping you might consider, or let me know if I could pay you to add them.

  1. Provide a way for the PTZ camera to return to their home position after they are done recording the event
  2. Allow multiple instances of the app so I could have the camera move to a different position if a different sensor is activated.

Some background to better understand the request. I have a 5029L installed centrally in my home. It can see the doors in the front, back, and side of my house very clearly when I change positions. In the home position it covers about 80% of my house but there is the possibility of missing something. I would like have it move to get a better view of each door when that door sensor is activated (3 instances), and then return back to the home position when it was done recording.

Is this possible?

You should already be able to install multiple instances of the SmartApp. You just need to go back into the marketplace and install the SmartApp once for each instance you need.

As for returning to home, I currently do this with webCoRE. You should be able to subscribe to the record button and have it return to the home position when it changes from ‘on’ (or changes to ‘off’).

1 Like