Back
Aqara Home for EU  Door and window sensor is closed. Apilio Update a variable in Apilio to true.

Update Apilio variable when Aqara door or window sensor closes

Connect

How this automation works

Automate your smart home by updating a variable and logic evaluation in Apilio when an Aqara door or window sensor closes. This Applet runs whenever your selected Aqara Home EU sensor detects the closed state, automatically updating a variable in Apilio and triggering a logicblock evaluation. Ideal for automating routines like turning off lights or securing your space when windows or doors are shut.

If
Aqara Home for EU  icon
Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the door and window sensor is closed.
Date DeviceName DeviceAction
Then
Apilio icon
Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will update a boolean variable in Apilio to true.
variable_identifier
And
Apilio icon
Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will initiate the evaluation of the specified logicblock in Apilio.
logicblock_identifier

Services used in this Applet

Create your own Aqara Home for EU and Apilio workflow

Create custom workflows effortlessly by selecting triggers, queries, and actions. With IFTTT, it's simple: “If this” trigger happens, “then that” action follows. Streamline tasks and save time with automated workflows that work for you.

104 triggers, queries, and actions

Absence is detected

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when absence detected.

Bell ringing was detected

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when When Bell ringing is detected

Camera detects motion

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the specified camera detects motion. To use this trigger, camera's motion detection should be turned on.

Camera detects sound

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the specified camera detects sounds. To use this trigger, camera's sound detection should be turned on.

Click (for Wireless Double Rocker switches)

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the specified double rocker switch is single clicked/double clicked/long pressed.

Click (for Wireless Single Rocker / Mini switch)

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the specified single rocker switch is single clicked/double clicked/long pressed.

Cube flip to side 1

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the cube flip to side 1

Cube flip to side 2

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the cube flip to side 2

Cube flip to side 3

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the cube flip to side 3

Cube flip to side 4

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the cube flip to side 4

Cube flip to side 5

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the cube flip to side 5

Cube flip to side 6

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the cube flip to side 6

Current temperature

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns the current temperature.

Current humidity

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns current humidity.

Current Motion Status

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns the current motion status.

History of Boolean Values

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns up to the last 10 values of a Boolean variable.

History of Numeric Values

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns up to the last 10 values of a Numeric variable.

History of String Values

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns up to the last 10 values of a String variable.

Clear a string variable in Apilio

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will clear a string variable in Apilio.

Close the curtain

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will close the curtain of your choosing.

Close the door

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will close the door, gate, window of your choosing

Disable motion detection

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will disable motion detection of the specified camera.

Disable sound detection

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will disable sound detection of the specified camera.

Do a mathematical operation with a numeric variable

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
Add or subtract a value from a numeric variable in Apilio.

Enable / Disable motion detection

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will enable / disable motion detection of the specified camera.

Enable / Disable sound detection

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will enable / disable sound detection of the specified camera.

Enable motion detection

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will enable motion detection of the specified camera.

Enable sound detection

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will enable sound detection of the specified camera.

Feeding for once

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will make feeder feed once

Initiate a logicblock evaluation in Apilio

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will initiate the evaluation of the specified logicblock in Apilio.

Absence is detected

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when absence detected.

Bell ringing was detected

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when When Bell ringing is detected

Camera detects motion

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the specified camera detects motion. To use this trigger, camera's motion detection should be turned on.

Camera detects sound

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the specified camera detects sounds. To use this trigger, camera's sound detection should be turned on.

Clear a string variable in Apilio

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will clear a string variable in Apilio.

Click (for Wireless Double Rocker switches)

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the specified double rocker switch is single clicked/double clicked/long pressed.

Click (for Wireless Single Rocker / Mini switch)

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the specified single rocker switch is single clicked/double clicked/long pressed.

Close the curtain

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will close the curtain of your choosing.

Close the door

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will close the door, gate, window of your choosing

Cube flip to side 1

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the cube flip to side 1

Cube flip to side 2

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the cube flip to side 2

Cube flip to side 3

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the cube flip to side 3

Build an automation in seconds!

You can add delays, queries, and more actions in the next step!

More on Aqara Home for EU and Apilio

About Aqara Home for EU

Aqara offers a wide range of smart products ranging from a variety of sensors to switches,lights and hubs and a comprehensive home automation system with various kinds of smart control. We believe that everyone deserves a smart home solution that is accessible, beautifully designed, and easy to set up.

Explore Aqara Home for EU

More integrations with Aqara Home for EU

About Apilio

Build your own smart home automations with any device or service on the IFTTT platform. With Apilio, you can combine multiple IFTTT triggers and define custom conditions. And it doesn't stop there: You can of course also define a sequence of multiple actions - even with delays!

Explore Apilio

More integrations with Apilio

IFTTT helps all your apps and devices work better together

Get started for free