To open the door...
Stroke the dog's nose!