Execute Workflow Only Once a Day

Execute Workflow Only Once a Day

Sometimes, a workflow should run only once per day. For example, our “Good Morning” scene triggers when motion is detected—but only once each morning. With a simple trick and Hub Mode in Controller for HomeKit, you can easily achieve this.

Start Event

First, add the start event. In our example, this is the motion sensor in the hallway.

Condition

Next, set a time condition between 6:00 AM and 10:00 AM to cover both weekday and weekend wake-up times.

Steps

Add the Step “Execute Scene”

Start by adding “Execute Scene” and select “Good Morning”.

Add the Step "Wait"

Then, add a “Wait” step and set it to match the selected time period. In this case, 4 hours (from 6:00 AM to 10:00 AM).

Settings

Under Settings, ensure that “Restart Workflow” is set to “Keep the current workflow running”. This prevents the workflow from restarting if motion is detected again within the set time period.

Final Overview

When motion is detected in the hallway in the morning, the “Good Morning” scene runs. Thanks to the Wait step, the workflow only executes once during the set timeframe.