HELP! How to, if lights are on, do nothing?

Maybe I’m complicating it, but I’m looking for the simplest way to accomplish this.

I have lights in the bedroom that are set to come on at 40% and a certain RGB color at sundown. However, if we’re already in the room with just regular white lights on, it’s frustrating when it dims and changes.

I feel like I’m just complicating it in my head, and curious if anyone else did it.

Specifically I’m looking for: If lights are on, do nothing. If they aren’t on, execute scene.sundownlights.

Add a state condition to your automation to make sure the lights are off.

You can do an If-then in your automation. If bedroom light is on, then do nothing, else do scene.