MI HOME: Scenario execution via local network or via Xiaomi cloud server
5 min readWhen Xiaomi smart home scenario will execute via local network, and when via cloud server?




How would this same scenario work in Cloud mode?
- The motion sensor will send a signal to the gateway.
- The gateway through the Internet will send the command to the Xiaomi cloud server.
- The Xiaomi server (in my case, located in China), by the scenario, will give a command to turn on the light bulb and send it to the gateway via the Internet
- The gateway, having received the command, will send it to the light bulb via Bluetooth
- The scenario involves devices connected to different gateways. For example, a motion sensor has connected to gateway 1, and a lamp connected to gateway 2. In this case, you just need to change the device binding, reset one of them, and add it again, specifying a different gateway (the device settings will be saved).
-
The scenario uses a WIFI device. Well, modern Mi Home ecosystem remains working without cloud connections even for WiFi devices, but anyway, The 2.4 GHz WiFi network is usually already overloaded, so it is better to use other wireless protocols. In addition, devices that have a full Internet stack on board are less secure. One day, if you neglect security, you may find that your wifi surveillance camera is trying to guess passwords for some Wordpress site (this is from real cases).
-
A scenario is enabled or disabled from another scene. This is the most insidious case. It is very convenient when, depending on certain conditions, you can disable or enable the execution of another scene. But, after the first such "external control" the script will switch to Cloud mode, even if initially it is saved as LAN.
Xiaomi Mijia Smart Multimode Gateway 2

Xiaomi Mijia Smart Multimode Gateway 2 is a smart-home hub (model DMWG03LM) using Zigbee 3.0, Bluetooth Mesh, Wi-Fi. It integrates with Xiaomi Home / Mi Home with China-region pairing where specified.
approx. $42.08
Choose and buyNew Xiaomi Smart Home Display Mini Intelligent Tou

Xiaomi Smart Home Display Mini is a speaker. The supplied evidence describes a touchscreen smart speaker/display running Xiaomi HyperOS and controlling Mijia smart devices.
approx. $113.89
Choose and buyXiaomi Mijia Portable Electric Kettle: Boil Water

Xiaomi Mijia Portable Electric Cup 2 is an electric water-heating appliance with capacity 350 mL, rated power 300 W. Does not support Xiaomi Home/Mi Home.
approx. $64.72
Choose and buyXiaomi Center Gateway Smart Home Hub 4

Xiaomi Smart Home Central Gateway ZSWG01CM links Bluetooth and Bluetooth Mesh devices, with dual-band Wi-Fi, Ethernet and local automation support.
approx. $16.60
Choose and buyXiaomi Miaomiaoce Digital Baby Smart Thermometer -

Xiaomi Miaomiaoce Digital Baby Smart Thermometer - Clinical Accuracy Thermometer - Constant Monitor - High Temperature Alarm is a temperature and humidity device. Xiaomi Home / Mi Home compatibility is not supported or not evidenc...
approx. $25.69
Choose and buy