ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified utilities Safety 3/5

xiaomi

[English] Control Xiaomi Home devices via local LAN using miiocli. Supports status checks, toggling power, and MIOT property manipulation for devices like smart plugs, humidifiers, and rice cookers. | [中文] 通过局域网利用 miiocli 控制米家智能设备。支持查看状态、开关控制以及对智能插座、加湿器、电饭煲等 MIOT 设备的属性调优。

Why use this skill?

Integrate Xiaomi Mi Home devices into OpenClaw with this local-network controller. Features easy token extraction, fast LAN-based commands, and support for smart plugs, humidifiers, and more.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/yiqiezhenxi/xiaomi
Or

What This Skill Does

The Xiaomi skill provides a powerful, local-network control interface for your Mi Home ecosystem. By bypassing cloud latency, it allows OpenClaw to send direct commands to compatible devices like smart plugs, humidifiers, and rice cookers. It utilizes the miiocli library to communicate via the MIOT protocol, providing low-latency execution for automation tasks. The skill includes a robust token extraction utility that retrieves necessary authentication credentials directly from your Xiaomi Cloud account, simplifying the setup process for advanced users who want to manage their smart home programmatically.

Installation

To integrate this skill into your OpenClaw environment, execute the command: clawhub install openclaw/skills/skills/yiqiezhenxi/xiaomi. After installation, navigate to the scripts directory to run python3 scripts/token_extractor.py to authenticate and list your devices. Once you have your IP addresses and tokens, populate the references/devices.md file with your specific device details. The installation process automatically handles Python dependency conflicts, such as the common click version mismatch, to ensure a stable execution environment.

Use Cases

  • Smart Home Automation: Use natural language to toggle high-power appliances connected to smart plugs, such as turning off a water heater while away.
  • Climate Control: Automate your indoor environment by setting humidifier modes or humidity targets via conversational commands.
  • Kitchen Management: Remotely check the status of your rice cooker to see if a meal is ready or if the device is currently in a warming state.
  • Local Reliability: Maintain full control of your home devices even during internet outages, provided your local network is stable.

Example Prompts

  • "Turn on the water heater in the kitchen so it's ready when I get home."
  • "Set my humidifier to the maximum output mode."
  • "Check if the rice is finished cooking yet."

Tips & Limitations

For optimal performance, ensure your smart home devices and your OpenClaw agent are on the same local network subnet. If devices are on different VLANs, miiocli may struggle to discover them without manual IP configuration. Always keep your device tokens secure; they act as the administrative password for your local appliances. This skill is strictly for LAN-based control and will not work if the host machine running OpenClaw is disconnected from the local network. Periodically check references/devices.md for any changes in device IP addresses if you do not have static DHCP leases configured on your router.

Metadata

Stars879
Views0
Updated2026-02-11
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-yiqiezhenxi-xiaomi": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#xiaomi#smarthome#iot#mihome#automation
Safety Score: 3/5

Flags: network-access, file-read, file-write