[RELEASE] Security System: Intruder Alert with Actions

alrighty how about this,

My main goal is that When my doorbell is rung I get a picture of who is on my doorstep on my phone.

The door bell is currently hooked up to a Nexia Doorbell Sensor (DB100Z) with this device handler

I tried to add a switch to this smartapp but failed due to lack of know how to do that.

I have a couple of different foscam currently (C1, FI9831P, FI9900P) and all of these have a built in email and FTP functions. Is it possible to push a command via the doorbell to trigger one of those functions?