help taking pic 3 seconds after door lock is opened

is there anyway with my ip camera i can get a picture taken 3 seconds after the door lock ( zwave yale real liveng ) is unlocked and sent or stored somewhere, preferably sent to my cell as a text ?