A new app called Knock allows you to unlock your Mac with a simple knock on your iPhone. The devices are paired using Bluetooth and apparently it doesn’t take much battery life to keep the app running on your phone all day long. I doubt it though.