If you're a Xiaomi device owner and you've ever thought about how to make your home smarter, you've probably come across the term Smart Scenes. It's one of the key features of the Mi Home ecosystem (now renamed Xiaomi Home App), which allows you to connect different gadgets and automate routine activities. Imagine you come home, the lights turn on automatically, the air conditioner adjusts to a comfortable temperature, and the robot vacuum cleaner starts cleaning - all without you. Smart Scenes are responsible for these "magic" scenarios.
But how do these scenarios work? Which devices support the function? And most importantly, how do you customize Smart Scenes to suit your needs if you're new to the smart home world? In this article, we'll take everything from basic principles to advanced automation examples. And how do Smart Scenes differ from the usual triggers in other smart home systems and why Xiaomi's ecosystem is considered one of the most flexible for creating complex chains of action.
What is Xiaomi Smart Scenes and Why You Need It
Smart Scenes (or “smart scripts”) is a tool in the Xiaomi Home app that allows you to link different Xiaomi and MiJia devices to each other according to given conditions. Simply put, you create a “if (condition), then (action)” rule.
- 🌅 If it gets dark outside (according to the light sensor), turn on the Yeelight smart lamp.
- 🚪 If the door sensor Xiaomi Door/Window Sensor is activated (door open), send a notification to your phone and turn on the camera Xiaomi Home Security Camera.
- 🌡️ If the temperature in the room has risen above 25°C (according to Xiaomi Temperature & Humidity Sensor), turn on the Xiaomi Mi Air Conditioner.
The main advantage of Smart Scenes is the ability to combine devices of different categories (sensors, lamps, household appliances) into a single system without the need to write code or use third-party services like Home Assistant. Everything is configured through a mobile application, and the logic of scripts is built on the principle of a designer.
In this case, scenarios can be either simple (one condition is one action) or complex with multiple triggers and chains of commands. For example, a “Leave the House” scenario can turn off all the lamps, lower the blinds, turn on security mode on the cameras and send you a push notification.
What Xiaomi devices support Smart Scenes
Not all Xiaomi gadgets can participate in scenarios. To work Smart Scenes device must:
- Connect to the Xiaomi Home app (not via Mi Fit or other apps).
- Support for Zigbee (for most sensors) or Wi-Fi (for lamps, sockets, household appliances).
- Compatible with your region (some devices only work in China)
Here are the main categories of devices that can be used in scenarios:
| Category | Examples of devices | Role in the script |
|---|---|---|
| Sensors. | Xiaomi Door/Window Sensor, Aqara Motion Sensor, Xiaomi Temperature & Humidity Sensor | Triggers (conditions for starting the script) |
| Smart lighting | Yeelight LED Bulb, Xiaomi Philips Smart LED, Mi LED Desk Lamp | Performers (on/off, color change) |
| Household appliances | Mi Air Conditioner, Mi Air Purifier, Viomi Robot Vacuum | Performers (temperature regulation, start of cleaning) |
| Smart sockets | Xiaomi Mi Smart Plug, Aqara Smart Wall Plug | Power management of other devices |
| Multimedia. | Mi TV, Mi Box S, Xiaomi Soundbar | On/off, volume control |
Important: Aqara and Yeelight devices (part of Xiaomi’s ecosystem) also support Smart Scenes, but they may require a separate app (like Aqara Home) to connect, which then integrates with Xiaomi Home.
⚠️ Note: If you use Zigbee devices (such as Aqara sensors), you will need a Xiaomi Mi Home Gateway to work smoothly.
How to create Smart Scenes in the Xiaomi Home app: step-by-step instructions
It takes 5-10 minutes to set up a smart script if you've already connected all the devices to an app. Here's a step-by-step algorithm:
- Open the Xiaomi Home app and go to the Scripts tab (the icon with three dots in the bottom menu).
- Select the type of script: 🔄 Automatic – starts under condition (for example, when the sensor is triggered). 🖱️ Manual – starts manually by pressing a button in the application.
Add in the action.
- Select an executing device (e.g. Yeelight Bulb).
- Specify a command (for example, “Enable 100% brightness”).
- Save the script and give it a title (e.g., “Light in Motion”).
Trigger devices connected to the network|Executing devices included|The time of the action does not conflict with other scenarios.|The title of the script reflects its function.-->
Once saved, the script will automatically work, and to test it, you can manually initiate the condition (e.g., wave your hand in front of a motion sensor).
⚠️ Note: If the script doesn't work, check: Are the devices connected to the same Xiaomi account, is the phone (or gateway) on the same Wi-Fi network as the devices, is there a time limit in the script settings (for example, "Only works from 8:00 to 22:00»).
Examples of Smart Scenes for the home
Smart Scenes is limited only by your imagination and a set of devices, and here are some ready-made ideas that you can adapt to your needs:
1. "Smart Awakening"
Time: 7:00 (alarm clock on the phone or smart watch Xiaomi Mi Band).
Action:
- 💡 Turn on the Yeelight smart bulb at 30% brightness (soft light).
- ☕ Enable the Viomi Smart Kettle (if it supports remote control).
- 📻 Turn on the radio on Mi. TV or the Xiaomi Mi column AI Speaker.
2. "Nobody's Home" (security mode)
Condition: Geolocation of all family members shows that they are further than 500 m from the house (uses the Geofencing feature in Xiaomi Home).
Action:
- 🔒 Turn off all smart outlets (except the refrigerator).
- 🎥 Enable recording on Xiaomi Home Security Camera.
- 🚨 Send a notification to your phone if the motion sensor is triggered.
3. "Comfortable Sleep."
Condition: 23:00 or command by voice ("Alice, good night").
Action:
- 🌙 Turn off all lights in the house.
- 🌬️ Turn on the Xiaomi Mi Air Purifier air purifier on night mode.
- 🔇 Install Do Not Disturb on all family phones (via Xiaomi Home) + Mi Cloud).
💡
For geo-location scenarios, make sure that the Xiaomi Home app has access to your phone’s location.
4. "Electricity savings"
Condition: The Aqara Light Sensor detects sufficient natural light.
Action:
- 💡 Turn off smart lamps in rooms.
- 🔌 Disable smart outlets to which chargers are connected.
You can combine these scenarios or add them to it, like adding to Smart Awakening, the launch of the Viomi robot vacuum cleaner 30 minutes after you're up, so it can clean the room while you're eating breakfast.
Advanced capabilities: logical operators and delays
Basic scenarios cover most household tasks, but for complex automation, Smart Scenes has additional tools:
- 🔄 Logical operators: you can use "I" (all conditions must be met), "OR" (one condition is sufficient). > 25°C And humidity. < 40%, then turn on the humidifier».
- ⏱️ Delays in execution: add pause between actions, for example: “Switch on the lights” → Turn it off after 5 minutes if no movement is detected».
- 📅 Schedule: limit the script to days of the week or time, for example: "The Plant Watering script only works on Mondays and Thursdays».
- 🔄 Cycles and Repetitions: run the action several times (e.g., flash the lamp 3 times when the smoke sensor is triggered).
To access these features in the script editor, click on the icon ⚙️ («Additional settings) next to a condition or action.
An example of a complex scenario with the operator "I"
Complex scenarios require testing, because logic chains can conflict, for example, if you have two scenarios: one turns on the light when you move, and the other turns it off after 10 minutes without moving, make sure they don't block each other.
Frequent Problems and How to Solve Them
Even a smart home system can fail, and here are the typical Smart Scenes issues and ways to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| The script doesn't work. | The trigger device is disconnected from the network | Check the sensor power (replace the battery if it's an Aqara Sensor) |
| The action is carried out with a delay | Weak Wi-Fi or Zigbee signal | Move the Xiaomi Gateway closer to your devices or add a signal repeater |
| The script works by accident. | Incorrectly configured condition (e.g. motion sensor responds to pets) | Adjust the sensitivity of the sensor or add an additional condition (for example, "only if illumination is available"). < 10 lux») |
| Voice commands are not working. | There is no connection with Xiaomi AI Speaker or Alice | Reconnect the column in the app and check the voice settings in Settings → Voice control |
If the problem is not solved, try:
- Reboot the Xiaomi Gateway (turn off power for 10 seconds).
- Update the device firmware (Profile tab) → Settings → Update of the PO).
- Remove and recreate the script (sometimes helps with logic glitches).
⚠️ Note: If you are using Aqara devices with Zigbee 3.0 protocol, make sure your Xiaomi Gateway supports this version.Old gateways (such as Mi Home Gateway 1) may not see new sensors.
Smart Scenes vs. Third-party Smart Home Assistant (Yandex Alice)
Smart Scenes in Xiaomi Home is a handy out-of-the-box solution, but it has limitations compared to third-party platforms.
| Criteria | Xiaomi Smart Scenes | Home Assistant | Yandex Alice |
|---|---|---|---|
| Difficulty setting up | Just (via mobile app) | Difficult (requires knowledge) YAML, Docker) | Average (configure via the application “Yandex”) |
| Supported devices | Just the ecosystem. Xiaomi/Mijia/Aqara | Any (through plugins and integrations) | Limited list (mostly popular brands) |
| Scenario flexibility | Limited by logical operators | Full freedom (Python scripts, terms, cycles) | Basic scenarios (without complex logic) |
| Dependence on the cloud | Yes (without the internet scripts don't work) | No (you can set up local management) | Yes. |
| Cost | Free (within the ecosystem) | Free (but you may need a server) | Free of charge. |
The choice of platform depends on your tasks:
- 🏡 If you only have Xiaomi devices and need simple scenarios, Smart Scenes is enough.
- 🛠️ If you want to combine devices from different brands or need a complex logic – consider Home Assistant.
- 🗣️ If the priority is voice control in Russian, Yandex Alice will do (but with device restrictions).
💡
The main advantage of Smart Scenes is its simplicity and close integration with the Xiaomi ecosystem, which is enough for most users to automate 80% of household tasks.