Added bark recognizer and encapsulate automatically close behaviour for DogDoor