Lights Stay on when automation triggered

I am trying to figer out how to keep a light when an automation is triggered and then turned off and the light that was on stays on.