You can purchase a smart lock that you control with your phone easily enough, but it's much more fun to actually make one yourself. YouTubers Hacker House make one with a Raspberry Pi.