ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified utilities Safety 4/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?

Control your Xiaomi Mi Home devices locally with OpenClaw. Manage smart plugs, humidifiers, and cookers using natural language and local network commands.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/yiqiezhenxi/xiaomi-home-skill
Or

What This Skill Does

The Xiaomi Home Skill provides a robust interface for local control of your Xiaomi and Mi Home ecosystem devices via the OpenClaw AI agent. By leveraging the miiocli command-line tool, this skill enables direct communication with smart home appliances on your local network. It bypasses cloud latency by communicating directly with the device's IP address, requiring only a device token for authentication. This skill allows users to perform tasks such as toggling power states for smart plugs, adjusting operational modes for humidifiers, and monitoring status updates from intelligent appliances like rice cookers, all through natural language commands.

Installation

To install this skill, use the OpenClaw repository manager. Execute the following command in your terminal: clawhub install openclaw/skills/skills/yiqiezhenxi/xiaomi-home-skill After installation, locate the scripts/token_extractor.py file to fetch your device credentials from the Xiaomi Cloud. Store these tokens and device IP addresses in the references/devices.md file to ensure the AI can discover and interact with your hardware properly.

Use Cases

This skill is ideal for home automation enthusiasts looking to reduce their reliance on cloud-based smart home platforms. Common use cases include integrating your smart water heater into an automated morning schedule, setting your humidifier to 'max' when air quality sensors report low humidity, or checking if your rice cooker has completed its cycle without needing to open the official Mi Home app. It is especially useful for users who want to add smart logic to "dumb" appliances that are connected to a Xiaomi smart plug.

Example Prompts

  1. "Turn on the water heater so it's warm when I wake up."
  2. "Set the bedroom humidifier to high mode for the next three hours."
  3. "Is the rice cooker finished with the current cooking cycle?"

Tips & Limitations

Ensure your smart devices and the machine running OpenClaw are on the same local area network (LAN) to prevent connectivity timeouts. The skill relies on 32-character hex tokens; if your device fails to respond, re-run the token extractor script to ensure your credentials haven't rotated. Note that this skill primarily supports devices compatible with python-miio; complex devices with proprietary encryption may require custom MIOT property mapping inside the devices.md configuration file.

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-home-skill": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#smarthome#xiaomi#automation#iot#local-control
Safety Score: 4/5

Flags: network-access, file-read, code-execution