When creating an Applet on IFTTT, a delay can be added to have the Applet’s action run a preset time after the Applet’s trigger occurs.
Currently, the occurs after the Applet trigger, and if applicable queries and filter code, and before the action. It’s not possible to add delays between actions* within a single Applet but with Webhooks service, you'll be able to delay the time between actions by chaining several Applets together.
*Please note that multiple actions are available to users on Pro and Pro+ plans.
Scenario: When I click my Aqara Wireless Mini Switch, I want my Wyze smart bulb to turn on for 2 minutes, then turn off again.
Step 1: Head to the IFTTT Webhooks service and press connect. After connecting, you'll be returned to the Webhooks service page where a Documentation button will now be visible. Press the Documentation button then remember the Webhooks key displayed at the top of the page.
Time to create Applets and chain them all together!
Step 2: Create Applet 1.
- Trigger: Add Click (for Wireless Single Rocker / Mini switch) trigger
- Action 1: Add Wyze - Turn bulb on action.
- Action 2: Add Webhooks service - Make a Web request action. In the Method dropdown menu, select 'GET', and in the 'Content Type' dropdown menu, select 'application/json'.
- In the URL field add the following URL: https://maker.ifttt.com/trigger/[eventName]/with/key/[yourKeyHere]
- Replace [eventName] with an event name of your choice, such as turnBulbOff.
- Replace [yourKeyHere] with the Webhooks key from the documentation page in Step 1.
Step 3: Create Applet 2.
- Trigger: Add Webhooks service - Receive a web request trigger.
- In the event name field, add the same event name that you added to your Webhooks URL in bullet 2 of step number 3 above, such as turnBulbOff.
- In the event name field, add the same event name that you added to your Webhooks URL in bullet 2 of step number 3 above, such as turnBulbOff.
- Add a delay of 2 minutes.
- Action: Add Wyze - Turn bulb off action.
When the first Applet runs, your Wyze smart bulb will turn on and send a webhook to trigger Applet number 2. The delay timer in Applet 2 will run for two minutes, before turning off your light again. You can re-create this same setup for similar multiple action delays; use a different event name each time in your Webhooks URL.