It’s easier for us to diagnose issues if you don’t share screenshots. Instead, follow Community Questions Guideline #14 by posting the, properly formatted, YAML configuration for the automation. This can be found by clicking the breadcrumb menu (3 dots) at the top right and selecting “Edit in YAML”. Copy that and paste it, using 3-ticks ``` on the line above and the line below the configuration code.
Based on what is in the screenshots you have posted, your actions currently turn the lights on and then immediately turn them off.
If that is not your goal, you have two options:
- Use separate automations for turning on and turning off the targeted entities.
- Use an If/Then or Choose action so that a specific trigger causes a specific action. One way to do this is to use Trigger IDs.