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.
2024 Xiaomi Human Presence Sensor Smart Human body

Xiaomi Human Presence Sensor is a smart sensor with presence detection. Supports Xiaomi Home/Mi Home.
From $22.31 + shipping
Choose and buyXiaomi Mijia Smart Neck Massager Shoulder and Neck

Xiaomi Mijia Smart Neck Massager is a neck and shoulder massager with functions neck/shoulder massage and hot compress, control Mi Home app / local controls. Supports Xiaomi Home/Mi Home.
From $65.74 + shipping
Choose and buyXiaomi Camera

Mi Camera 2K (Magnetic Mount) is a compact 3 MP indoor Wi-Fi camera with 2304 × 1296 video, 940 nm night vision, two-way audio and Mi Home app control.
From $80.01 + shipping
Choose and buyAqara D1 No Neutral 1Key

Aqara D1 single-key no-neutral Zigbee wall switch, commonly model QBKG21LM. It controls one wired circuit and requires a compatible gateway for Mi Home smart control.
From $42.85 + shipping
Choose and buyXiaomi Mijia Smart Bathroom Heater

Xiaomi Mijia Smart Bathroom Heater is a bathroom heater with device-specific functions and technical characteristics. It supports Mi Home/Xiaomi Home integration.
From $179.61 + shipping
Choose and buyAqara D1 Smart Wall Switch (2-Key)

Aqara D1 Smart Wall Switch (2-Key) is a two-button wireless Zigbee scene controller for smart-home lighting and automations, with Mi Home/HomeKit support depending on hub and region.
From $38.18 + shipping
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.
From $72.11 + shipping
Choose and buyXiaomi Wireless Smart Electric Digital Hygrometer

Xiaomi Wireless Smart Electric Digital Hygrometer Thermometer 2 is a temperature and humidity device (model LYWSD03MMC) using Bluetooth. It integrates with Xiaomi Home / Mi Home.
From $5.54 + shipping
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...
From $42.59 + shipping
Choose and buy