Tidying up a bit, fix logic that a knock requires the door to be closed AND that it not be closed for a minute