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!
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:
- Open Mi Home β Go to the Automation tab (image icon) βοΈ down).
- Click + Add β Select If...
- In the list of devices, find your Contact Sensor and select the Open event.
- In the To block, select Notification β Phone Call.
- 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
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:
- In Mi Home, go to Profile β Settings β Voice Assistant and connect Google Assistant.
- Open the Google Home app β click + β Automation.
- Select If... β Device Managed β Find your Contact Sensor and Event Open.
- 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).
| Method | Hub required | It 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:
- Sign up for IFTTT and connect the Xiaomi Mi Home service (you will need a login / password from your Xiaomi account).
- Create a new applet (Create β If This) and select Door/Window sensor opens trigger.
- In the Then That block, select Make a web request (to call via API) or Send a notification (to push notification).
- 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?
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:
- In Mi Home, go to Profile β Settings β Region.
- Choose China. "" The app will suggest changing the server, OK.
- After changing the region, reconnect all devices (they will disappear from the list and you will need to add them again).
- 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.