Setup a call to the open sensor Xiaomi Contact Sensor: 3 working methods

Why Xiaomi’s button may not ring – and how to fix it

Xiaomi Contact Sensor (aka Mi Door/Window Sensor or Aqara Door Sensor) is originally designed to alert you to open doors/windows through in-app notifications. But many users want your phone to ring when it is triggered, like an alarm or alarm. This feature is not implemented out of the box, but it can be configured through automation in Mi Home, Google Home or third-party services like IFTTT.

The problem is that Xiaomi artificially restricts sensor functionality in Europe’s Mi Home region, where some automation scenarios that work in Chinese firmware are not available. So, to make a full call, you will either have to change the account region or use workarounds. In this article, 3 proven methods with step-by-step instructions relevant to Aqara and Mi Home Security sensors of all generations (including models 2023-2026).

Before you start setting up, make sure that:

  • πŸ“± Xiaomi Contact Sensor is connected to Mi Home app (version no lower than 6.5.4).
  • πŸ”‹ The sensor has enough charge (the battery level is checked in the card of the device).
  • πŸ“Ά The device is in the range of the hub (Xiaomi Gateway or Aqara Hub), without the hub sensor will not be able to send signals!
πŸ“Š What Hub Do You Use for Xiaomi Sensors?
Xiaomi Gateway 3
Aqara Hub M2
Aqara Camera Hub G2H
Other
I don't use the hub.

Method 1: Calling through automation in Mi Home (without third-party services)

The easiest method is to create a script in the Mi Home app itself that will call the phone when the sensor is triggered. Minus: only works if the phone is connected to the same Xiaomi account as the sensor.

Instructions:

  1. Open Mi Home β†’ Go to the Automation tab (image icon) βš™οΈ down).
  2. Click + Add β†’ Select If...
  3. In the list of devices, find your Contact Sensor and select the Open event.
  4. In the To block, select Notification β†’ Phone Call.
  5. Set the call duration (maximum 30 seconds) and save the script.

⚠️ Note: This method is unstable on Android 12+ Because of the background limitations, if the call doesn't work:

  • πŸ› οΈ Add Mi Home to battery optimization exceptions (in phone settings).
  • πŸ”Š Check if notifications for the application are disabled.
  • πŸ“΅ Make sure your phone is on mobile internet or Wi-Fi (the call won’t pass through) SMS).

β˜‘οΈ Check before setting up a call

Done: 0 / 4

Method 2: Integration with Google Assistant (call to any device)

If you want a call to reach multiple phones or Google Nest devices (like the Google Home speaker), use the Mi Home + Google Assistant bundle.

Step-by-step:

  1. In Mi Home, go to Profile β†’ Settings β†’ Voice Assistant and connect Google Assistant.
  2. Open the Google Home app β†’ click + β†’ Automation.
  3. Select If... β†’ Device Managed β†’ Find your Contact Sensor and Event Open.
  4. In the To block, select Play Sound β†’ specify the device (phone or speaker) and download the sound file (for example, the alarm clock ringing).

πŸ’‘ Useful tip: To make the call louder, use a siren or alarm record as a sound file. You can download custom audio through the Ringtone Maker service (select the format.mp3, duration).

MethodHub requiredIt works on iOS.Max. Duration of the call.Support for multiple devices
Mi Home (Internal Automation)βœ… Yes.βœ… Yes.30 seconds.❌ No.
Google Assistantβœ… Yes.βœ… Yes.60 seconds.βœ… Yes.
IFTTT (advanced)βœ… Yes.βœ… Yes.Unlimitedlyβœ… Yes.

Method 3: Advanced IFTTT setting (call + SMS + email)

IFTTT (If This Then That) allows you to create a chain of actions where the Contact Sensor triggers a call via Webhook or send a notification to Telegram/WhatsApp. This method is the most flexible, but requires configuration.

How to set up:

  1. Sign up for IFTTT and connect the Xiaomi Mi Home service (you will need a login / password from your Xiaomi account).
  2. Create a new applet (Create β†’ If This) and select Door/Window sensor opens trigger.
  3. In the Then That block, select Make a web request (to call via API) or Send a notification (to push notification).
  4. Use it for the call. API Twilio or CallMeBot (free to use) 1000 (e) a call/month. URL for CallMeBot: https://api.callmebot.com/start.php?source=ifttt&user=[YOUR_KEY]&text=Door+It's open! [YOUR_KEY] yours API-callmebot).

⚠️ Attention: When in use IFTTT The call may be delayed 5-15 For critical scenarios (e.g. alarms), it is better to duplicate notifications via SMS or a siren connected to the Xiaomi Gateway hub.

How to get API-callmebot?
1. Go to Telegram bot @CallMeBot. 2. Send the command /getkey. 3. Copy the received key and paste it into the URL for IFTTT.

Frequent mistakes and their solutions

If the call doesn’t work, check out these points:

  • πŸ”Œ Hub offline: Reboot Xiaomi Gateway (shut down power for 10 seconds) The problem is more common at first-generation hubs (Gateway) v1).
  • πŸ“΅ Sensor not synced: Hold the button on the sensor for 5 seconds until the blue indicator flashes, then reconnect it to Mi Home.
  • πŸ”• Call is blocked: On Android, check the permissions for Mi Home in Settings β†’ Annexes β†’ Permits β†’ Notifications. On iOS, turn on Notifications β†’ Sounds.
  • 🌐 Regional problems: If the sensor is bought for China and the Mi Home account is European, automation scenarios may not work).

πŸ”§ Aqara sensors (e.g. Aqara Door and Window Sensor) P1) Support more flexible automation than the original Mi Home Security.If you need advanced scenarios, consider buying an Aqara version of the sensor.

How to Change Region in Mi Home for Extended Features

If your sensor doesn't show all the automation options, chances are there's a problem in the account region.The Chinese version of Mi Home has more triggers available, including calling setup.

Instructions for changing the region:

  1. In Mi Home, go to Profile β†’ Settings β†’ Region.
  2. Choose China. "" The app will suggest changing the server, OK.
  3. After changing the region, reconnect all devices (they will disappear from the list and you will need to add them again).
  4. Now, additional options will be available in automation, including a call to the phone without restrictions.

⚠️ Note: When changing the region to China":

  • πŸ“΅ Notifications can be sent in Chinese (resolved by changing the system language to English).
  • πŸ”„ Some devices (such as Xiaomi Vacuum) may require Chinese firmware.
  • πŸ“‘ For stable operation it is recommended to use VPN servers in China (e.g. ExpressVPN or Astrill).

πŸ’‘

Before changing the region, back up your automation to Mi Home: go to Profile β†’ Settings β†’ Backup and save your data to Google Drive.

Alternative solutions: siren, lamp, smart socket

If calling your phone isn’t suitable (for example, due to poor communication), consider these options:

  • 🚨 Siren: Connect to the hub Xiaomi Gateway siren Aqara Alarm (model) DJT11LM). In automation, select the action Turn on the siren when the sensor is triggered.
  • πŸ’‘ Smart Lamp: Configure Yeelight or Philips Hue to blink red when you open the door. In Mi Home, select Change the Lamp Color.
  • ⚑ Smart socket: Connect any sound device (such as a radio) to the Xiaomi Smart Plug socket and program it to turn on when the sensor is triggered.

πŸ“Œ Key takeaway: To maximize reliability, combine multiple methods, such as configuring a call at the same time. IFTTT And you're guaranteed to get an alert even if the Internet crashes.

πŸ’‘

The best solution for alarms is a combination of sensor + hub + siren. Calling the phone should be an additional channel, not the only one.

FAQ: Answers to Frequent Questions

Can I set up a call without a Xiaomi Gateway hub?
No. Xiaomi Contact Sensors only work through a hub (or Aqara Hub) without which they can't send signals to an app or other devices, except for Matter-enabled sensors (like the Aqara P2), but they don't support calls directly yet.
Why is the call going off with a delay?
The delay is due to the: πŸ“‘ Slow Internet connection (the hub transfers data to the Xiaomi server, and the latter to the phone). πŸ› οΈ Optimize the battery on the phone (Android kills the background processes of Mi Home). 🌍 Geographical remoteness of servers (if the region of the account is China and you are in Europe) Solution: use local automation (via Home Assistant) or connect the siren directly to the hub.
How do I turn off the call at night?
In Mi Home or Google Home, add a time condition: In an automation scenario, click Add a condition. Select a time and specify an interval (e.g., 08:00–22:00). Save the changes - the call will only work at a predetermined time.
Does this method work on the iPhone?
Yes, but with limitations: βœ… Calling through Mi Home works (but can be blocked by Do Not Disturb mode"). βœ… Google Assistant on iOS supports automation, but the call will come as a push notification (no call sound). ❌ IFTTT On iOS, you can't initialize a real call, just a notification. iPhone is better off using a siren or a smart lamp.
Can I connect the sensor to another smart home system (HomeKit, Alexa)?summary> Yes, but you will need a hub intermediary: HomeKit: Use Aqara Hub M2 (supports HomeKit through a firmware update). Alexa: Connect the Xiaomi Gateway hub through the Mi Home skill in the Amazon Alexa app. Home Assistant: Set up integration through Xiaomi Miio (device token will be required). After connecting, set up automation in the relevant application (e.g. Apple Home or Alexa Routines).