If you’re just starting out with the Xiaomi ecosystem or have been using smart home devices for a long time, you’ve probably come across the concept of a smart button. This compact gadget looks simple, but it offers huge opportunities for automation of household processes. From turning on lights at a single click to running complex scenarios, all this can be done with a small button from Xiaomi.
In this article, we will explore in detail what Xiaomi’s smart button is, what models exist (including the popular Aqara Wireless Mini Switch and Mi Smart Button), how to connect them to the Mi Home or Apple HomeKit system, and what practical tasks they solve, and also tell about hidden features that many users do not even know about.
Spoiler: You can use this button to not only control the lights, but you can also fire up the voice assistant, activate No-Home mode, or even send notifications to your smartphone when you press them, all without the need for extra wires or complicated settings.
What is Xiaomi Smart Button and Why You Need It
Xiaomi’s smart button is a compact wireless device that communicates with other gadgets in the ecosystem via Zigbee, Bluetooth or Wi-Fi (depending on the model), and the main task is to run pre-programmed actions (scenarios) with one or more taps.
For example, you can set up:
- 💡 Single tap - turn on the light in the corridor;
- 🔄 Double press - start the coffee maker;
- 🔥 Long press - activate the "Care" mode (turn off all appliances except the refrigerator).
It’s essentially a physical trigger for automation that replaces voice commands or control through an app, especially when hands are busy or when you need to react quickly (like turning on the lights at night).
It is important to understand that the smart button does nothing by itself – it only sends a signal to the smart home system (Mi Home, Home Assistant, Apple HomeKit), and there is a programmed action.
Types of Xiaomi smart buttons: comparison of models
Xiaomi and its sub-brand Aqara have launched several smart button models, which differ in communication protocol, design and functionality, among others:
| Model | Protocol | Press types | Compatibility | Features |
|---|---|---|---|---|
| Aqara Wireless Mini Switch | Zigbee | Single, double, long | Home, Home Assistant, HomeKit (via Hub) | Compact, lasts up to 2 years on a battery CR2032 |
| Mi Smart Button | Bluetooth | Single, double. | Only Mi Home. | Supports voice assistant XiaoAI |
| Aqara Opple Switch (6 buttons) | Zigbee | 6 independent buttons | Mi Home, Home Assistant, HomeKit | Ideal for managing multiple devices |
| Xiaomi Mijia Bluetooth Button | Bluetooth | Single, double, long | Mi Home, Apple HomeKit (limited) | Supports geo-fences (location-by-location automation) |
The most popular model is the Aqara Wireless Mini Switch, because it runs on the robust Zigbee protocol, has a minimalist design and is compatible with most smart home systems, but the Mi Smart Button with Bluetooth is only suitable for basic tasks in the Xiaomi ecosystem.
⚠️ Note: Bluetooth buttons (such as Mi Smart Button) require a constant connection to a smartphone or Xiaomi Gateway hub. If the device goes out of range, the button will stop working.
How to connect Xiaomi’s smart button to Mi Home
The connection process depends on the model of the button, but the algorithm is similar in general. Consider the universal instruction for the Aqara Wireless Mini Switch (the most common model).
Step 1: Preparation
- 📱 Install the Mi Home app (available for Android and iOS).
- 🔋 Put the battery in. CR2032 button (companyed).
- 🌐 Make sure your Xiaomi Gateway hub (or other Zigbee hub) is connected to the network and up and running.
Step 2: Adding a device
- Open Mi Home and go to Devices → Add Device.
- Select the category "Smart Home» → «Switches».
- Find the Aqara Wireless Mini Switch and click “Add”.
- Press the button on the device for 5 seconds until the indicator flashes.
- Wait until the connection is completed (usually takes a lot of time). 10-30 seconds).
Step 3: Setting up scenarios
Once you've connected the button, you need to link the action to it.
- Go to the device menu in Mi Home.
- Select "Automation» → «Add automation».
- Specify the type of pressing (single, double, long).
- Select the devices or scripts that should work.
- Save the settings.
Install the Mi Home app|
Put the battery in the button.|
Connect Xiaomi Gateway to the network|
Being in the Wi-Fi coverage area|
Charge your smartphone (in case of a long setup)-->
If the button is not connected, check:
- 🔋 Battery (possibly drained or inserted incorrectly).
- 📶 Distance to hub (maximum) 10-15 footprint).
- 🔄 Reboot the Xiaomi Gateway Hub (remove the power cord for 10 seconds).
Practical examples of using a smart button
Now that the button is plugged in, it's time to think about how to use it to the maximum benefit. Here are some real-world scenarios from Xiaomi users:
1. Lighting control
- 💡 Single tap - turn on the light in the hallway.
- 🌙 Double press – Turn off all the lamps in the house.
- 🌅 Long press – activate night mode (muffled lights) + closed-curtain).
2. Security and imitation of presence
- 🚨 Single tap – turn on the surveillance cameras and send a notification to the phone.
- 🔒 Double press – activate No-Home mode (turn off all appliances except the refrigerator and turn on the siren when moving).
3. Climate management
- ❄️ Single press - turn on the air conditioner at 22°C.
- 🔥 Long press - start the heater and humidifier.
4. Quick action for the elderly or children
- 🆘 Triple pressing (if supported) - send SOS-report to relatives with coordinates.
- 📞 Double tap – call a pre-saved number.
One of the most creative options is to use a button as a remote for a media center, for example, you can program:
- 🎬 Single tap – turn on the TV and start Netflix.
- 🔊 Double press – turn off the sound on all speakers.
💡
If you have a smart lock Xiaomi, you can set the button at the front door: one click – open the lock, double – activate the mode “Guests” (turn on the light in the corridor and hallway).
Compatibility with other smart home systems
Xiaomi’s smart buttons aren’t limited to the Mi Home ecosystem; they can be integrated with other platforms, but there are nuances.
1. Apple HomeKit
Aqara buttons (like Wireless Mini Switch) are officially supported in HomeKit, but you need an Aqara Hub or HomePod Mini hub to do this.
- Add a hub to HomeKit through the Home app.
- Connect the button to the hub via Mi Home.
- A new device will appear in the house - set up automation.
2. Google Home / Assistant
There's no official support, but you can use Home Assistant as a bridge.
- Install Home Assistant on a Raspberry Pi or other server.
- Connect the Xiaomi Gateway hub through Xiaomi Miio integration.
- Set up automation through YAML-Configs or Visual Editor.
3. Home Assistant
The most flexible system for working with Xiaomi buttons, you can program any scenario, including:
- 📊 Conditional triggers (for example, the button only works at night).
- 🔄 Multiple actions at a single press.
- 📱 Notifications in Telegram or on a smartphone.
Example of code for Home Assistant (for single tap):
automation:
- alias: "The button at the door - turn on the lights"
trigger:
platform: device
device_id: [ID_your buttons
domain: mqtt
type: action
subtype: single
action:
service: light.turn_on
target:
entity_id: light.hallway⚠️ Note: When using Home Assistant, make sure that the Zigbee protocol doesn't conflict with other devices. For example, if you already have a Philips Hue hub, you may need a separate coordinator.
Frequent problems and their solutions
Even with a device as simple as a smart button, there can be challenges, and here are the most common problems and ways to solve them:
1.The button does not respond to pressing
- 🔋 Check the battery (replace it with a new one, even if the old one seems to work).
- 📡 Make sure the button is in the Hub’s range (maximum) 10-15 wallless).
- 🔄 Reconnect the button to Mi Home (remove and add again).
2.The button is triggered with a delay
- 📶 Check the signal quality. Zigbee/Bluetooth (There may be too much interference from other devices).
- 🔄 Reboot the Xiaomi Gateway Hub.
- 📵 Make sure your smartphone is Bluetooth enabled (if the button is running through it).
3.The button does not appear in Mi Home after connecting
- 📱 Update the Mi Home app to the latest version.
- 🌍 Check the region in your account settings (should match the hub region).
- 🔧 Reset the button to factory settings (press the button for 10 seconds until the indicator blinks).
4.The button only works occasionally
This may be related to:
- 🔋 A discharged battery (even if it is new, try replacing it with another one).
- 📡 Interference from other Zigbee devices (try changing the channel in the hub settings).
- 📵 Conflict with other automations (check the logs in Home Assistant if you use it).
How to reset the Xiaomi smart button to factory settings?
Hidden features of Xiaomi’s smart button
Many users use the smart button only for basic tasks, but it also has hidden features.
1.Management of the voice assistant
If you have a Xiaomi Smart Speaker or a smartphone with XiaoAI, you can program a button to run voice commands.
- 🎤 Single tap – say “Put the music on».
- 📡 Double tap: Say, "What is the weather today?».
2. Geozones and location-by-location automation
Some models (e.g. Xiaomi Mijia Bluetooth Button) support geofences.
- 📍 When leaving the house (by GPS) The button at the door activates the “Nobody’s Home” mode».
- 🏠 When returning - includes lights and air conditioning.
Integration with IFTTT
Through IFTTT (Automation service: You can link the button to external services:
- 📧 Send an email when pressed.
- 📝 Add a task to Google Keep or Trello.
- 🎵 Launch a playlist on Spotify.
4. Use as an alarm clock
You can program the button to:
- ⏰ Single press – postpone the alarm for 10 minutes.
- ☕ Double tap – start the coffee maker and turn on the light in the kitchen.
5. Control of electricity consumption
If the button is integrated with Xiaomi smart sockets, you can:
- ⚡ Long press - turn off all energy-intensive appliances (heaters, irons).
- 📊 Double tap – get a daily consumption report.
💡
Xiaomi’s smart button can work not only as a switch, but also as a trigger for complex scenarios, including interaction with external services through the use of a smart switch. IFTTT or Home Assistant.