If youโre a Xiaomi device owner and youโve tried to set up automation in a smart home, youโve probably come across the term Smart Scenes. Itโs not just โanother appโ on the companyโs long list of services, itโs a central scripting tool that connects Mi Home, Aqara, Yeelight and other compatible devices. Without Smart Scenes, your smart home will remain a set of disparate devices, and with it, will become a coherent system that responds to your habits.
But how does it work? Why do some users praise it for its flexibility while others complain about its limitations? And most importantly, how do you set up Smart Scenes to make it really easier than to add headaches? From basic principles to advanced life hacks that are not described in the official documentation, and you will learn what hidden features of Smart Scenes are available only through the use of the Internet. MIUI oral.
What is Smart Scenes in the Xiaomi ecosystem?
Smart Scenes (sometimes translated as โSmart Scenesโ in the Russian versions of the applications) is a built-in tool in the Mi Home app (or Xiaomi Home for global versions), which allows you to create chains of automated actions between Xiaomi devices. Simply put, it is the โbrainโ of your smart home that monitors the conditions (triggers) and triggers pre-programmed reactions.
For example, you can set up a scenario where:
- ๐น When the front door is opened (Aqara Door Sensor) the lights are turned on (Yeelight). LED) The camera is set to start recording (Xiaomi Camera 360)ยฐ).
- ๐ก๏ธ If the temperature in the room drops below 20ยฐC (Mi Temperature & Humidity Sensor), the heater (Mi Smart Space Heater).
- ๐ช When you leave the house (geolocation of the smartphone), turn off all sockets (Mi Smart Plug) and activate security mode.
It is important to understand that Smart Scenes is not a separate application, but a feature inside the Mi Home, but in some regions (e.g. China) it is included in a separate service Mi Home. AI Speaker or integrated into XiaoAI, Xiaomi's voice assistant, may have a different interface in the global versions, but the essence remains the same.
How Smart Scenes Works: Triggers, Conditions, and Actions
Any Smart Scenes scenario is based on the principle of โif you want toโ. โ T.O.: If a condition (trigger) is met, it triggers an action. Let's get a sense of the terminology:
- ๐ง Trigger is an event that triggers a script. It could be:
- โ๏ธ Condition is an additional rule that must be followed to trigger a trigger, for example, a scenario that "turns on the light when moving" may have a condition that "only if it's dark outside" (according to the light sensor).
- โก Action: A command that the devices execute, which can be on/off, changing mode, sending notifications, etc.
Example of a complex scenario with the condition:
โ ๏ธ Note: If you set the script "Enable the heater at temperatures below 18"ยฐC" without additional conditions, it will work even during the day when you are not at home. To avoid unnecessary electricity consumption, add the condition "only if someone is at home" (according to the motion sensor or geolocation of the smartphone).
| Type of trigger | Examples of Xiaomi devices | Example of scenario |
|---|---|---|
| Motion sensor | Mi Motion Sensor, Aqara Motion Sensor | Turn on the light in the hallway when detecting movement at night |
| Opening sensor | Mi Door/Window Sensor, Aqara Door Sensor | Send a notification if the window is open for more than 10 minutes |
| Geolocation | Smartphone with Mi Home | Turn off all sockets when the last user left the house |
| Voice command | XiaoAI Speaker, Mi AI Speaker | Say Alice, Mode of the Movie" โ Turn off the lights, turn on the TV |
| Schedule | Any device | Turn on the air humidifier every day at 20:00 |
๐ก
If your script doesnโt work, check the order of the conditions in Mi Home. โ Smart Scenes โ Select a script โ Conditions. Sometimes the "E/O" logic works unintuitively -- try to break down a complex scenario into a few simple ones.
How to set up Smart Scenes: step-by-step instructions
So, let's get to the practice. To create your first script, you can do the following steps:
- Open the Mi Home app and make sure all devices are added to the same room (like the Living Room), which is important because some triggers only work in one room.
- Click Add Scene (Add Script) โ Custom: If you want ready-made templates, select Template (e.g., "Sleep Mode" or "Nobody's Home").
โ๏ธ Pre-saving screenplay check
If your script doesnโt work, check out:
- ๐ Are all devices connected to the same Wi-Fi network? Some sensors (e.g. Aqara) require a separate hub (Aqara Hub).
- ๐ถ Is the signal level good? Battery-powered sensors can lose communication if they're too far from the router.
- โณ In the script settings, you can specify Delay before performing an action (for example, wait 30 seconds after detecting movement).
Common Problems and How to Solve Them
Even smart Scenes users sometimes have problems, and here are the most common problems and solutions:
โ ๏ธ Note: If geolocation scripts stop working after the Mi Home update, check the app's permissions in your smartphone settings. Recent versions of Android require separate permission for Exact Location (not just "Approximate Approximate").
| Problem. | Possible cause | Decision |
|---|---|---|
| The script is running with a delay. | Weak Wi-Fi signal or Xiaomi server overload | Use local scripts (if supported) or add a delay in settings |
| Action not being performed | Conflict with another script or offline device | Check logs in Mi Home โ The device โ Journal |
| Geolocation is not stable | Savings of battery on a smartphone | Add Mi Home to Battery Optimization Exceptions |
| The script works too often. | The sensitivity of the motion sensor is overstated | Set up the detection zone or add a condition by time. |
One of the most frustrating things about Smart Scenes is that it relies on Xiaomi's cloud servers, and if the Internet goes down, most scenarios will stop working.
- ๐ Use local scripts (available for some devices, such as Aqara via Aqara Hub).
- ๐ Set up a backup connection through 4G-router or second Wi-Fi channel.
- โก For critical devices (e.g. alarms), use standalone solutions like the Mi Home Security Kit.
How do you check if the script is running locally or through the cloud?
Advanced Features: What Smart Scenes Can Do Beyond Basic Scripts
Many users are limited to simple scenarios like "turn on the lights on motion," but Smart Scenes has much more to do with it. Here are a few hidden features:
- ๐ Cyclic scenarios: you can create a chain of action where the output of one scenario triggers another:
- ๐ Conditional logic with multiple triggers: use operators" (AND) and" (OR). For example: "If (movement detected) And (time between 22:00 and 06:00), turn on the nightlight".
- ๐ข Custom text notifications: In the script actions, you can configure a push notification with your message (for example, "The kitchen window has been open for 15 minutes now!").
- ๐ต Multimedia integration: Some scenarios allow you to control music playback on Mi speakers AI Speaker or Mi TVs TV.
For the most advanced users, you can use Home Assistant or Node-RED to integrate Xiaomi devices into more complex automation systems, in which case Smart Scenes can be used as a backup option or for simple tasks.
๐ก
The most reliable way to automate is to combine Smart Scenes (for basic tasks) and Home Assistant (for complex logic), for example, in Smart Scenes you adjust the response to sensors, and in Home Assistant you adjust the processing of data and notifications.
Another little-known trick is using virtual devices, and in the Mi Home, you can create a virtual switch that can control multiple scenarios at once.
- Create a virtual device in Mi Home โ Smart home. โ Virtual devices.
- Set up a script that includes this โswitchโ under a certain condition (e.g., schedule).
- Add another script that responds to the state of that virtual device and performs the desired actions.
Compatible devices: what works with Smart Scenes
In theory, Smart Scenes should support all devices added to the Mi Home, but in practice, there are nuances:
- โ Full support:
- โ ๏ธ Limited support:
- โ Not supported:
If your device doesnโt appear in the list of available scripts, try:
- Update the device through Mi Home โ The device โ Update of the PO.
- Reconnect the device to the app (sometimes changing the region to China and back).
- Use alternative applications like Aqara Home (for Aqara devices).
Smart Scenes Alternatives: When to Look for a Different Solution
Despite the advantages, Smart Scenes is not suitable for everyone, and here are some cases where you should consider alternatives:
- ๐ Your devices are from different manufacturers (e.g. Xiaomi) + Philips Hue + Sonoff: You should use Home Assistant, Google Home or Apple HomeKit.
- ๐ง You need complex logic (e.g., scenarios with delays, loops, or data processing). Smart Scenes is limited to the base operators".
- ๐ฑ You want to run a smart home without the internet.Most Xiaomi scenarios depend on the cloud.
- ๐ ๏ธ You like customization. In Smart Scenes, you can't change the interface, add your icons or use custom scripts.
If youโve decided to move away from Smart Scenes, here are some popular alternatives:
| The alternative | Pluses | Cons |
|---|---|---|
| Home Assistant | Local work, support for thousands of devices, flexible configuration | Complex installation, requires a separate server (Raspberry Pi) |
| Google Home / Apple HomeKit | Simple interface, voice control, cross-platform | Limited scripting logic, cloud dependency |
| Node-RED | Visual programming, integration with API, automation of any level | Requires technical knowledge, no mobile app |
| Aqara Home | Local scenarios (via Aqara Hub) are more stable than Mi Home | It only works with Aqara and Xiaomi devices. |
If youโre not ready to give up Smart Scenes altogether, but want more features, try combining systems.
- Use Smart Scenes for simple tasks (lights on, notifications).
- Set up Home Assistant for complex logic (data analysis, integration with other services).
- Link systems through MQTT or IFTTT.