Skip to main content

Standard IFTTT

Using Aqara Studio, you can quickly set up your own automation by specifying what triggers it (When), setting conditions (And), and defining the actions (Then) you want to happen.

Create an Automation

To learn how to create an IFTTT automation, please refer to Automation - Create an Automation.

Set Up Automation

See below for how to set up an IFTTT automation flow.

1. Configure When

The When step defines the point triggering your automation, either a device event or a specific time. Aqara Studio continuously monitors these events or times, such as "human presence detected in room" or "temperature exceeds 28°C".

Add triggers

  1. Click Add Trigger.

  2. Choose Device or Scheduled Trigger.

  • If you choose Device:
    1. Add a device event
      In the Device popup, select the device and function card you want, then click Confirm. Now, in the When section, you'll see Studio will monitor this device event and its default value 24/7.
    2. Edit the value
      If you'd like to listen for another value, click the blue text in the event to modify it.
      1. Add time constraints You can add two types of time constraints for event listening: the effective time period and the required event duration.
        • Set effective listening period
          To monitor events only during specific dates/times, click ... > Time Period to configure.

          tip

          Setting the time range as 00:00:00-00:00:00 means this logic is active all day.

        • Set event duration requirement If you want the automation to trigger only when an event lasts a certain period, click ... > Duration Time to set it.

    • If you choose Trigger Time:
      1. Select which weekdays the action should run (multiple selections supported).

        Choose weekdays
      2. Set the type of time.

        Choose time type
        tip

        When selecting sunrise or sunset, please enter your home's latitude and longitude in the following format:

        • North latitude, east longitude: use positive numbers (e.g., 35.0° N → 35.0)
        • South latitude, west longitude: use negative numbers (e.g., 120.0° W → -120.0)
        Enter latitude/longitude
      3. Set the exact time.

        Set specific time

Select Event Logic

When you add multiple triggers, you can flexibly set their relationship logic:

  • Any condition is triggered: The automation will proceed if Studio detects any one of the conditions is met.
  • Trigger in sequence: Automation proceeds only if all conditions are met in the specified sequence.
Set trigger logic

2. (Optional) Configure And

The And section is for adding extra conditions to further refine when your automation should be triggered. Only after the When conditions are met will the system start query whether the And conditions are met. Automation will only proceed if all or some of these conditions are satisfied, depending on your logic settings.

For example: Set "someone detected in the room" as a When condition, then add "air conditioner is on" in And. The automation only proceeds when both conditions are true.

Add Condition

  1. Click Add Condition.
  2. Choose Device.
  3. Select the needed device and its function card, then click Confirm.
    After completion, you'll see the chosen device condition in the And section, showing its default state.
  4. Edit target values for condition To check for other device states or values, click the blue field in the condition, then select or enter your target value as needed.
  5. Configure time constraints You can apply two types of time limits: an effective period or a required minimum duration. The setup is the same as the When step.

Set Condition Logic

When you add multiple status conditions, set the logic for judgment as follows:

  • All conditions are met: Actions will be executed only when all conditions are met.
  • Any condition is met: Actions will be executed if any conditions are met.
Set condition logic

3. Configure Then

The Then section defines what happens when your automation is triggered. For example, you can control device switches, adjust values, etc. You can also insert delays between actions to customize the sequence.

In Then, you can add multiple actions. Each action can be set up for a specific device and control item. Common actions include:

  • Switching devices on/off;
  • Adjusting temperature;
  • Brightening or dimming the lights.;
  • Inserting delay steps so certain actions are executed after a set pause.

All actions and delays in the Then area will execute in order, providing smart and flexible linkage.

Add Actions

Actions refer to the device actions and delay steps that should be performed after the automation is triggered.

The process:

  1. Click Add Action.
  2. Choose Device or Delay execution.
  3. Select the needed device and its function card, then click Confirm.
    • If you choose Device:

      1. Add device action In the Device popup, select the required device and function card, then click Confirm. Now you can see the selected device action in Then with default parameter value. You can further change the value as needed.
      2. Edit action parameters To adjust the action's parameters, click the blue field and select or input the target value.
      3. Configure time constraints You can specify an effective period for the action, just like in the When section.
    • If you choose Delay: Click the blue duration field to change the delay length.

      tip

      Delay only affects the actions that follow it.
      For example:

      • Action A
      • Delay
      • Action B

      In this sequence, once the triggers are met, Studio will first execute Action A immediately, then wait for the delay period, and then execute Action B. The delay is only for postponing Action B; Action A executes right away.

      If your sequence is:

      • Delay
      • Action A

      Studio will first wait for the specified delay, then execute Action A.

Set Execution Logic

After adding multiple actions, you can choose how they are executed:

  • Execute all: Whenever the triggers are met, Studio executes all set actions, one after another.
  • Execute in rotation: Each time the trigger fires, only one action is executed, rotating through the set list in order each time. The sequence repeats in a loop.
Set action execution logic

4. Test Automation

After configuration, click the Test button to check your automation.

5. Save

Once you confirm your automation works as expected, click Save. The new IFTTT automation (enabled by default) will appear in the Automation page.