Setting up flow for triggering lights when motion detected