Stop automation when motion is detected

Yay!! Finally!! :grinning_face_with_smiling_eyes: