Smart Scenes in Xiaomi: A Complete Guide to Smart Scenes for Home

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 smart devices do you have?
Smart lamps
Sensors (movements, doors, temperatures)
Robot vacuum cleaner
Security cameras
Smart sockets
None of the above.

What Xiaomi devices support Smart Scenes

Not all Xiaomi gadgets can participate in scenarios. To work Smart Scenes device must:

  1. Connect to the Xiaomi Home app (not via Mi Fit or other apps).
  2. Support for Zigbee (for most sensors) or Wi-Fi (for lamps, sockets, household appliances).
  3. Compatible with your region (some devices only work in China)

Here are the main categories of devices that can be used in scenarios:

CategoryExamples of devicesRole in the script
Sensors.Xiaomi Door/Window Sensor, Aqara Motion Sensor, Xiaomi Temperature & Humidity SensorTriggers (conditions for starting the script)
Smart lightingYeelight LED Bulb, Xiaomi Philips Smart LED, Mi LED Desk LampPerformers (on/off, color change)
Household appliancesMi Air Conditioner, Mi Air Purifier, Viomi Robot VacuumPerformers (temperature regulation, start of cleaning)
Smart socketsXiaomi Mi Smart Plug, Aqara Smart Wall PlugPower management of other devices
Multimedia.Mi TV, Mi Box S, Xiaomi SoundbarOn/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:

  1. Open the Xiaomi Home app and go to the Scripts tab (the icon with three dots in the bottom menu).
  2. 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"
Condition: (Motion sensor went off) And (time between 18:00 and 22:00) And (lighting) < Action: Turn on the Yeelight lamp in the warm light (2700K) 70-bright%.

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 causeDecision
The script doesn't work.The trigger device is disconnected from the networkCheck the sensor power (replace the battery if it's an Aqara Sensor)
The action is carried out with a delayWeak Wi-Fi or Zigbee signalMove 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 AliceReconnect the column in the app and check the voice settings in Settings → Voice control

If the problem is not solved, try:

  1. Reboot the Xiaomi Gateway (turn off power for 10 seconds).
  2. Update the device firmware (Profile tab) → Settings → Update of the PO).
  3. 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.

CriteriaXiaomi Smart ScenesHome AssistantYandex Alice
Difficulty setting upJust (via mobile app)Difficult (requires knowledge) YAML, Docker)Average (configure via the application “Yandex”)
Supported devicesJust the ecosystem. Xiaomi/Mijia/AqaraAny (through plugins and integrations)Limited list (mostly popular brands)
Scenario flexibilityLimited by logical operatorsFull freedom (Python scripts, terms, cycles)Basic scenarios (without complex logic)
Dependence on the cloudYes (without the internet scripts don't work)No (you can set up local management)Yes.
CostFree (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.

FAQ: Answers to Frequent Questions

Can you use Smart Scenes without the Xiaomi Gateway?
Yes, but with limitations. The gateway is only for Zigbee devices (motion sensors, door openings, etc.) Wi-Fi devices (lamps, sockets, appliances) work without a gateway, but for scenarios with Aqara or Xiaomi sensors to work smoothly, the gateway is a must-have, a bridge between sensors and the application.
Why is the script working with a delay?
Delays are usually associated with: Weak Wi-Fi or Zigbee signal (check the distance between devices and the gateway); Xiaomi cloud servers overload (especially during peak hours); incorrect script settings (for example, too short a delay between actions); Solution: reboot the gateway, check the Internet speed and optimize the logic of the scenario (remove unnecessary conditions).
Can I export/import scripts?
The standard Xiaomi Home app doesn't have this feature. However: You can copy the script (click on it). → «Copy") and change the terms slightly. To back up all settings, use the Backup to Profile function. → Settings → If you want to migrate to another account, you'll have to reconfigure scripts.
Does Smart Scenes work if the phone is turned off?
Yes, scripts are executed on the server side of Xiaomi and the gateway, so the phone is only needed for initial setup. However: If the script uses geolocation (e.g. Geofencing), then the phone must be turned on and connected to the Internet. Script alerts will only come when the phone is online.
How to remove unnecessary scripts?
To delete the script: Open the Script tab in Xiaomi Home. Find the script you want and swipe it left (on iOS) or click and hold it (on Android). Choose Delete and confirm the action. You can't restore the deleted script, so pre-screenshot its settings if you plan to create a similar one later.