The mode is now set to MODE_ALL_ON, when the motion ended event occurs.