MI HOME: Scenario execution via local network or via Xiaomi cloud server
5 min readXiaomi Mijia Smart Gateway 3 - Mi Home Hub, ZigBee, WiFi, Bluetooth Compatible
When Xiaomi smart home scenario will execute via local network, and when via cloud server?
![Scenario mode](/_next/image?url=%2Fimages%2Farticles%2Fscene.jpg&w=640&q=75)
![Local operation mode](/_next/image?url=%2Fimages%2Farticles%2Flan.jpg&w=640&q=75)
![Local operation mode](/_next/image?url=%2Fimages%2Farticles%2Flan2.jpg&w=640&q=75)
![Local operation mode](/_next/image?url=%2Fimages%2Farticles%2Flan3.jpg&w=640&q=75)
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.
Comments:
Xiaomi Mi Motion Sensor 2 (Bluetooth Mesh Work Wit
![Xiaomi Mi Motion Sensor 2 - Human body sensor and ambient light detector, Mi Home compartible, works via Bluetooth Mesh Xiaomi Mi Motion Sensor 2 (Bluetooth Mesh Work With Mihome)](/_next/image?url=https%3A%2F%2Fmi-home-pro-img.s3.eu-west-3.amazonaws.com%2Fgoods%2Fxiaomi_mi_motion_sen.jpg&w=640&q=75)
Xiaomi Mi Motion Sensor 2 - Human body sensor and ambient light detector, Mi Home compartible, works via Bluetooth Mesh
approx. $12.41
Choose and buyAqara Presence Sensor FP2 (Global version)
![Aqara Presence Sensor FP2 is a smart home device that can detect presence, zone positioning, fall detection and alerts. It works with HomeKit and the Aqara Home App. Model: FP2. Aqara Presence Sensor FP2 (Global version)](/_next/image?url=https%3A%2F%2Fmi-home-pro-img.s3.eu-west-3.amazonaws.com%2Fgoods%2Faqara_presence_sensor_fp2_global.jpg&w=640&q=75)
Aqara Presence Sensor FP2 is a smart home device that can detect presence, zone positioning, fall detection and alerts. It works with HomeKit and the Aqara Home App. Model: FP2.
approx. $43.20
Choose and buyXiaomi Wireless Smart Electric Digital Hygrometer
![This wireless smart electric digital hygrometer thermometer is compatible with the Mijia app and allows you to monitor temperature and humidity in real time, and display history data for them. It features a user-friendly design and is perfect for use in homes, offices, and other indoor environments. Xiaomi Wireless Smart Electric Digital Hygrometer Thermometer 2](/_next/image?url=https%3A%2F%2Fmi-home-pro-img.s3.eu-west-3.amazonaws.com%2Fgoods%2Fnewest_xiaomi_mijia_bluetooth_thermometer_2_wirele.jpg&w=640&q=75)
This wireless smart electric digital hygrometer thermometer is compatible with the Mijia app and allows you to monitor temperature and humidity in real time, and display history data for them. It features a user-friendly design an...
approx. $6.45
Choose and buyXiaomi Smart Door Lock M20 Cat Eye Version
![The Xiaomi Smart Door Lock M20 Cat Eye Version is a high-tech smart door lock that offers full automatic unlocking using IPS visual screen, fingerprint, Bluetooth, and NFC technology. It can be controlled through the Mi Home app and supports up to 100 user profiles. With a sleek and stylish design, this smart door lock is perfect for modern homes and offices. Xiaomi Smart Door Lock M20 Cat Eye Version](/_next/image?url=https%3A%2F%2Fmi-home-pro-img.s3.eu-west-3.amazonaws.com%2Fgoods%2Fnew_xiaomi_smart_door_lock_m20_cat_eye_version_ful.jpg&w=640&q=75)
The Xiaomi Smart Door Lock M20 Cat Eye Version is a high-tech smart door lock that offers full automatic unlocking using IPS visual screen, fingerprint, Bluetooth, and NFC technology. It can be controlled through the Mi Home app a...
approx. $530.08
Choose and buyXiaomi Mijia Smart Gateway 3 - Mi Home Hub, ZigBee
![Xiaomi Mijia Smart Gateway 3 is a smart home hub that supports ZigBee, WiFi, and Bluetooth protocols, allowing you to connect and control all your smart devices through the Mi Home app. Xiaomi Mijia Smart Gateway 3 - Mi Home Hub, ZigBee, WiFi, Bluetooth Compatible](/_next/image?url=https%3A%2F%2Fmi-home-pro-img.s3.eu-west-3.amazonaws.com%2Fgoods%2Foriginal_xiaomi_miji1686234277.jpg&w=640&q=75)
Xiaomi Mijia Smart Gateway 3 is a smart home hub that supports ZigBee, WiFi, and Bluetooth protocols, allowing you to connect and control all your smart devices through the Mi Home app.
approx. $45.32
Choose and buyXiaomi Mijia Smart Human Body Sensor 2S
![The Xiaomi Mijia Smart Human Body Sensor 2S is a high sensitivity luminance detection motion sensor designed for smart homes. This intelligent device can link to other smart devices to create a seamless home automation experience. With its advanced sensing capabilities, the sensor can detect human movements with high accuracy and precision, making it ideal for use in security systems and home automation setups. It is easy to install and comes with a user-friendly interface that allows you to customize settings according to your needs. Upgrade your home with the Xiaomi Mijia Smart Human Body Sensor 2S and experience the convenience and security of smart home technology. Xiaomi Mijia Smart Human Body Sensor 2S](/_next/image?url=https%3A%2F%2Fmi-home-pro-img.s3.eu-west-3.amazonaws.com%2Fgoods%2Fxiaomi_mijia_smart_human_body_sensor_2s_high_sensi.jpg&w=640&q=75)
The Xiaomi Mijia Smart Human Body Sensor 2S is a high sensitivity luminance detection motion sensor designed for smart homes. This intelligent device can link to other smart devices to create a seamless home automation experience....
approx. $12.31
Choose and buyXiaomi Mijia Honeywell Fire Alarm Smoke Sensor Gas
![This Xiaomi Mijia Honeywell Fire Alarm Smoke Sensor Gas Detector is a perfect addition to your home security system. It detects fire, smoke, and gas, and can be controlled via the Mi Home App. It works with the Multifunction Gateway 2. Xiaomi Mijia Honeywell Fire Alarm Smoke Sensor Gas Detector](/_next/image?url=https%3A%2F%2Fmi-home-pro-img.s3.eu-west-3.amazonaws.com%2Fgoods%2Fxiaomi_mijia_honeywell_fire_alarm_smoke_sensor_gas.jpg&w=640&q=75)
This Xiaomi Mijia Honeywell Fire Alarm Smoke Sensor Gas Detector is a perfect addition to your home security system. It detects fire, smoke, and gas, and can be controlled via the Mi Home App. It works with the Multifunction Gatew...
approx. $32.23
Choose and buy