Turn off automatically

While not “automatic,” you may want to vote for something like this. If a button existed, you could press when you come/go to toggle the camera on and off.