How to Build and Configure Xiaomi Mi Cube Smart Cube: A Complete Guide to 2026

The Xiaomi Mi Cube is a compact device that turns ordinary gestures into commands to control a smart home, which can turn on lights, run scripts or control multimedia in one motion, but many users face difficulties during the assembly and initial setup phase, and in this article, we will learn how to properly assemble the cube, connect it to the Mi Home system and avoid typical errors.

The Mi Cube design is simple, but has its own nuances: improper positioning of magnetic elements or errors when synchronizing with the application can make the device useless. Weโ€™ll take a closer look at every step from unpacking to integration with other Xiaomi gadgets, including compatibility with Mi Home, Google Assistant and Apple HomeKit (via workarounds). Particular attention will be paid to hidden functions of the cube that are not described in the official instructions, for example, setting up a double-press or using as a remote for Mi TVs TV.

What is included in the kit Xiaomi Mi Cube and how to check the configuration

Before assembly, make sure the box has all the necessary elements.The standard Mi Cube kit (MJTD01YL or MJTD02YL models) includes:

  • ๐Ÿ“ฆ The main body of the cube (upper and lower parts)
  • ๐Ÿงฒ Magnetic holder (sometimes attached to the housing)
  • ๐Ÿ”‹ Battery CR2032 (already installed or in a separate bag)
  • ๐Ÿ“„ Short instructions in several languages (without Russian)
  • ๐Ÿ”˜ Reset button (embedded in case, not removable)

If you bought the cube separately (like on AliExpress or in unofficial stores), check for seals on the box.Fake devices often come without a magnetic holder or with a low-quality battery, resulting in a quick discharge.The original Mi Cube has:

  • ๐Ÿ” Mi logo on top panel (engraved, not sticker)
  • ๐Ÿ“Œ Serial number on battery sticker
  • ๐ŸŽจ Matte coating of the case (glossy plastic - a sign of counterfeit)
๐Ÿ“Š Where did you buy your Xiaomi Mi Cube?
Official Xiaomi Store
AliExpress
Ozon/Wildberries
Another Chinese marketplace
Gift/I don't remember

Important: If you don't have a CR2032 battery, don't use cheap ones, they can leak and damage contacts. Recommended brands are Duracell, Energizer or Panasonic.

Step-by-step assembling the cube: from battery to magnetic fastening

The Mi Cube takes no more than 5 minutes to assemble, but requires careful handling.

  1. Install the battery, flip the bottom of the cube up. Press the latch of the battery compartment (which is next to the reset button) and carefully remove the lid. Put the battery CR2032 upside down (it has a marking on it). Close the lid until you click. ๐Ÿ’ก If the lid doesn't close, check if the battery is skewed. Sometimes the contacts are bent during transportation, they can be straighten neatly with a needle.
  2. Stick the magnetic holder to any flat surface (table, wall, torzer). The optimal height is 70-100 cm from the floor to make the cube easy to rotate. The surface should be clean and dry. Do not stick the holder on metal or thick wooden surfaces - this will worsen the operation of the sensors.
  3. Install the cube on the holder. When properly assembled, it should: ๐Ÿ”„ Easy to rotate around its axis ๐Ÿ”Š Produce a short beep when pressed on any edge ๐Ÿ’ก Blink with a white LED (below the top panel)

โ˜‘๏ธ Checking the Mi Cube build

Done: 0 / 5

If the cube does not respond to the action, try:

  1. Remove and re-insert the battery.
  2. Press the reset button (hold 5 seconds until the LED flashes).
  3. Check if the LED is closed with a sticker (sometimes it interferes with the sensor).

Connect Xiaomi Mi Cube to the Mi Home app

Without a connection to the Mi Home, the cube will only work as a toy.

  1. Install the app Download Mi Home from Google Play or App Store. Sign up or sign in to an existing Xiaomi account.
  2. Add Device In App Go to Profile โ†’ Settings โ†’ Add Device. Select Smart Home, then Sensors, and find Mi Cube (or Xiaomi Magic Cube). Click Add.
  3. Keep the cube 10 to 20 cm away from your smartphone. Press and hold any face of the cube for 3 to 5 seconds until the LED blinks quickly. The app will show a message saying "Device found." Confirm the connection.

If the cube is not:

  • ๐Ÿ“ถ Make sure your smartphone is Bluetooth enabled and geolocated.
  • ๐Ÿ”„ Reboot the Mi Home app.
  • ๐Ÿ“ต Check if the antivirus is blocking Bluetooth access (especially for Avast or Kaspersky).
What if the Mi Cube is not connected to the Mi Home?
If the cube is not determined despite all manipulations, try: 1. Remove it from the list of devices in Mi Home (if it is listed as โ€œinactiveโ€). 2. Reset the cube settings (hold the reset button 10 seconds until double blinking). 3. Connect via another smartphone (sometimes changing the phone model, for example, from iPhone to Android helps). 4. Update the Mi Home firmware to the latest version. If nothing helps, the battery can be discharged (replace it, even if it is new).

Set up gestures and commands in Mi Home

By default, the Mi Cube supports 6 basic gestures, but you can reconfigure them or add them to them.

  1. In Mi Home, select your cube from the list of devices.
  2. Go to Settings. โ†’ Gesture management.
  3. Click on any gesture (e.g., โ€œClockwork Rotationโ€) and select the action: ๐Ÿ’ก Light Control (Yeelight, Philips Hue) ๐Ÿ”Š Media Control (Mi TV, Xiaomi Soundbar) ๐ŸŒก๏ธ Run scenarios (e.g., โ€œLeave Homeโ€) ๐Ÿ”Œ Socket Control (Xiaomi Smart Plug)

Standard gestures and their factory settings:

Gesture.Default actionExample of redefinition
Clockwise rotationTurn up the volume.Turn on the light in the living room
Turning against the clockTurn down the volumeTurn off all sockets.
Double-pushing on the edgePause/reproductionActivate the script of "Cinema"
Single tapSwitch the sound sourceOpen the curtains Xiaomi Curtain
ShakingTurn off the alarm clock.Turn on the "Do Not Disturb" mode

For advanced users, you can create chains of commands in Mi Home, for example, one tap on a cube will turn on the light, run a playlist on the Mi TV and close the curtains.

  1. Go to Automation โ†’ Scenarios.
  2. Create a new script with the trigger โ€œGest Mi Cubeโ€.
  3. Add a few actions and save.

๐Ÿ’ก

The Mi Cube supports up to 12 custom gestures if you use third-party firmware (e.g., through Home Assistant), however, this requires unlocking the device and may be unwarranted.

Integration with Google Assistant and Apple HomeKit

Officially, Mi Cube doesnโ€™t support Google Assistant or HomeKit, but there are workarounds:

Connecting to Google Assistant

  1. In Mi Home, link your Xiaomi account to Google (Profile โ†’ Settings โ†’ Accounts โ†’ Google).
  2. Open Google Home, click Add โ†’ Device โ†’ Set up your device.
  3. Select Xiaomi from the list of brands and log in.
  4. Once synchronized, the cube will appear in Google Home as "Unidentified Device" and can be added to a room and voice controlled (e.g., "OK Google, turn on the Kitchen through the Cube script").

Connect to Apple HomeKit (via Home Assistant)

Integration with HomeKit will require:

  • ๐Ÿ–ฅ๏ธ Installed Home Assistant (on Raspberry Pi or server).
  • ๐Ÿ”Œ Xiaomi Mi Home Integration plug-in.
  • ๐Ÿ“ฑ HomeKit Controller for Home Assistant.

Instructions:

  1. In Home Assistant, add Mi Home integration and log in.
  2. Find the Mi Cube in the list of devices and add it to the configuration.
  3. In the configuration.yaml file, write:
xioami_aqara:




gateways:




- key: YOUR_MI_HOME_KEY




mac: YOUR_GATEWAY_MAC




host: YOUR_GATEWAY_IP





homekit:




- name: HomeKit Bridge




port: 51827




filter:




include_entities:




- sensor.mi_cube_action
  1. Reboot Home Assistant and add a bridge to Apple Home via QR- code.

๐Ÿ’ก

To simplify the configuration of HomeKit, you can use ready-made Home Assistant images with pre-installed integrations (for example, Home Assistant OS with the addition of HACS).

Common mistakes and their solutions

Even after successful build, users face challenges, and here are the most common ones and ways to fix them:

  • ๐Ÿ”‹ Cube discharges quickly Reason: cheap battery or constant sync with Mi Home. Solution: Replace battery with Duracell or Energizer. In Mi Home settings, disable Cloud Sync for the cube. Reduce active scripts.
  • ๐Ÿ”„ Gestures are delayed Cause: weak Bluetooth signal or network congestion Solution: Make sure there are no obstacles between the cube and the Xiaomi Gateway. Reboot the gateway (turn off power for 30 seconds). Update the cube and gateway firmware.
  • ๐Ÿ“ต The cube doesn't respond to rotation Cause: improperly mounted on the holder or sensor damage Solution: Check that the cube sits tightly on the magnetic holder. Wipe the contacts on the bottom of the cube with alcohol. Reset (reset button 10 seconds).
How to check the performance of Mi Cube sensors?
Enable debugging mode in Mi Home (Settings โ†’ About โ†’ Click 5 times on the application version). After that, all sensor activations (rotation, pressing, shaking) will be displayed in the device logs.

โš ๏ธ Warning: If the cube has stopped responding to any action, do not disassemble it yourself - there are no service elements inside, and an attempt to repair will deprive you of warranty. Contact Xiaomi Service Center or replace the device under warranty (period - 12 months from the date of purchase).

Hidden features and life hacks for Xiaomi Mi Cube

In addition to the standard gestures, the Mi Cube has several hidden features:

  • ๐ŸŽฎ Used as a gamepad, Tasker (Android) or Shortcuts (iOS) can assign cube gestures to control games, such as spinning to jump, double tap to shoot, and require the AutoNotification plugin and the HTTP- customization of Mi Home API requests.
  • ๐Ÿ“ฑ Smartphone control In the Mi Home, you can link cube gestures to actions on your phone: Single tap to turn on the flashlight. Double tap to open the camera. Shake to turn on In the Plane mode. To do this, select "Phone Control" in the cube settings and assign actions.
  • ๐Ÿ”Š Voice prompts If you connect the cube to the Xiaomi AI Speaker, it will voice the executed commands (for example, โ€œLights on in the living roomโ€). To activate, go to Cube Settings โ†’ Voice notifications.

For automation enthusiasts, Mi Cube can be integrated with IFTTT (via Mi Home) and create action chains with other services, such as:

  • Shake the cube โ†’ send SMS via IFTTT.
  • Spin โ†’ posting a post on Twitter.
  • Double tap โ†’ launch of Spotify playlist.

๐Ÿ’ก

With the help of Home Assistant and the Xiaomi Miio plugin, you can expand the functionality of the cube to 20+ custom gestures, including combinations (for example, โ€œspin + pressโ€).

FAQ: Frequent questions about Xiaomi Mi Cube

Can I use Mi Cube without the Xiaomi Gateway?
Without a gateway, the cube will only work in tandem with a smartphone via Bluetooth, and the range will be reduced to 10 meters. To control other Xiaomi devices (lamps, sockets), the gateway is mandatory.
How to reset Mi Cube to factory settings?
Press and hold the reset button (located on the bottom panel under the battery) for 10 seconds until the LED blinks twice, after which the cube is removed from the Mi Home and can be reconnected.
Does the Mi Cube support multiplayer?
No, the cube is tied to one Mi Home account, but if you share access to the device through Family Sharing in the app, other users will be able to control it from their smartphones (but not reconfigure gestures).
Can I change the battery to a rechargeable one?
Technically yes, but not recommended. Mi Cube is designed for disposable 3V CR2032 batteries. Rechargeable batteries of the same size (e.g. Eneloop) have a voltage of 1.2V, which can lead to unstable sensors. If you want to use the battery, choose lithium versions with a voltage of 3V (e.g. Varta Rechargeable CR2032).
Does the Mi Cube work with other brands (Philips Hue, Samsung SmartThings)?
There is no direct integration, but you can configure interactions through Home Assistant, IFTTT, or Google Assistant. For example: Connect Philips Hue to Google Home. Connect Mi Cube to Google Home via Mi Home. Create a routine in Google Home where the cube gesture will trigger the control of Hue lamps.