A method for operating a lock. A wireless command is received from a trusted device in a proximity range of the lock to enable a proximity mode. The proximity range is selectable by a user of the trusted device via an application. The proximity mode is enabled, and while enabled, a command is received to activate or deactivate the lock. The lock is activated or deactivated in response to the received activating or deactivating command.