Simple scene question

I have a scene that turns on a light for 3 minutes if motion is detected. Works fine

However if I turn on the light manually so it will stay on, the scene still runs and turns out this light in 3 minutes. What can I add to this scene to …

  1. sense the light is manually operated, so do not turn off lights

  2. If the light is manually turned on, only turn off if no motion is detected for , say, 15 minutes.

Thanks much

The Smart Switch plugin might do what you want.

Set the manual timeout to 15 minutes, and the auto timeout to whatever you want.

I think:

  • If you turn it on manually, and no motion is detected, it will stay on for 15 minutes, and then out.
  • If you turn it on manually, and motion is detected, it will stay on for the longer of:
    • 15 minutes from when it was turned on
      OR
    • the time from the last motion detect + auto-timout