MI HOME: light management in the bathroom
4 min read

- If the door is opened and the light is off (this can be determined by the light sensor in the motion sensor, or according to the state of the light bulb - "off"; you can also use the script on/off, but this is undesirable because such script will work through the cloud) - turn on the light
- If the door is opened and the light is on then off the light.
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 buylinptech Human Body Presence Sensor ES3 6M 180Indu

linptech ES3 presence sensor with up to 6 m, 180° infrared/pyroelectric detection and ambient-light sensing for smart-home automation.
From $26.71 + shipping
Choose and buyXiaomi 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.
Check prices
Choose and buyXiaomi Mi Smart Socket 2 Bluetooth Gateway Version

Xiaomi Mijia Smart Socket 2 ZNCZ07CM is a 10 A smart plug with 2.4 GHz Wi‑Fi, Bluetooth 4.2 gateway functions, energy statistics and Mi Home control.
From $30.19 + 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 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 buy2025 Aqara Door Window Sensor P1 Zigbee 3 0 Smart

Aqara Door and Window Sensor P1 is a Zigbee 3.0 magnetic contact sensor for door/window security automations; marketplace titles conflict on Mi Home versus Aqara/HomeKit ecosystems.
From $23.05 + shipping
Choose and buy
