the way she works is that after 5 am she will attack once at random and your supposed to bassicaly either guess when she will attack and close the door or close the door untill you hear her laugh a last time which means she moved away.
however i havent confirmed it myself but it seems to work where if you keep the camera on that last room shes in before she attacks (you dont have to bo activly looking at it) it will stop her from doing anything