#Motion automation to not turn off the lights if manually controlled

1 messages · Page 1 of 1 (latest)

supple sentinel
#

Hello there,

I have an automation that triggers the lights on on motion and off after motion has been cleared. I'd like to improve that, if user presses the "hold" button for lights, or if lights have been set from dashboard to certain value, motion shall not turn them off and user has from then the full control.

I'm seeing 2 options how to implement:

  1. have a motion trigger and one helper, that goes to "on" if user presses the button or lights have been controlled from the dashboard. In this case I think I need an automation that will use lights entity change as a trigger and turn off the helper. Helper will go back on when lights go off.
  2. use single automation with motion and use "wait_for" event. Event can be user press which would cancel the rest of the automation. If motion cleared event comes first, lights go off.

Is there any better recommended way?