Controlling your house door lock is easy with a smart phone. All you need is to install a lock that's capable of being controlled wirelessly by a smartphone via wireless or Bluetooth. Check out the Kwikset lock to give you an idea.
Now, if you already have a door lock installed that's capable of doing this, then you need to read, or look up the directions from your lock's manufacturer in order to find the exact steps required to pair your phone with your door lock.