Lights won't turn off

My goal is to have a motion sensor turn on the lights at the front of the house when motion is detected; however I do NOT want it to turn them off if they were already turned on manually. I was trying this because with a simple motion start = turn lights on, motion stop = turns lights off set up it turned the lights off even if I had manually switched them on and wanted them to stay on.

So I configured a scene to turn lights on when motion is detected, delay 30 seconds, and then turn the lights off, with no scene to turn the lights off. The problem is the lights stay on forever, even when motion is no longer detected, and even if I manually turn the lights off it just turns them right back on (while no motion is being detected). I’m not sure how that workflow makes sense, for some reason it keeps turning the lights on even though the motion sensor is no longer alarming??

Any ideas?

Figured it out, I thought the scene triggers were AND not OR. One of the triggers was if the light was off, so it was an infinite loop.

What’s the best way to accomplish this?

[quote=“citywok, post:2, topic:186002”]Figured it out, I thought the scene triggers were AND not OR. One of the triggers was if the light was off, so it was an infinite loop.

What’s the best way to accomplish this?[/quote]

Have a look at Conditional Scene Execution for an explanation and examples of how to achieve better control of scenes.