xiaomi

Control Xiaomi Mi Home devices locally via MIOT property manipulation.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/zhangyanbo2007/openclaw --skill xiaomi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xiaomi
Source: https://github.com/zhangyanbo2007/openclaw/tree/main/workspace-fox-smarthome/skills/xiaomi-home-skill-1.0.0
Command: npx skills add https://github.com/zhangyanbo2007/openclaw --skill xiaomi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Enable local, code-level control of Xiaomi Mi Home devices over the LAN.

Core Features & Use Cases

  • Local Network Control: fast, direct communication without relying on cloud APIs.
  • Built-in Token Extractor: includes a script to fetch device IPs and Tokens from Xiaomi Cloud.
  • Pre-configured Workflows: supports smart plugs (e.g., water heaters), humidifiers, and rice cookers.
  • Automatic Dependency Fix: resolves Python dependency conflicts to work out of the box.

Quick Start

Run the token_extractor.py script to gather device IPs and tokens, then populate references/devices.md with your device information.

Frequently Asked Questions about xiaomi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control Xiaomi smart plugs and humidifiers over a local network?

You can control Xiaomi smart plugs and humidifiers over a local network by using the miiocli tool to directly communicate with devices via LAN, bypassing cloud APIs for faster response. The Skill provides pre-configured workflows for immediate device manipulation.

How do I get the device IP and token for Mi Home local control?

To get the device IP and token for Mi Home local control, run the built-in token_extractor.py script which fetches the required credentials from Xiaomi Cloud. You then populate references/devices.md with this information to enable LAN communication.

Does local Mi Home device control require a Python runtime environment?

Yes, local Mi Home device control requires a Python runtime environment because it relies on the miiocli tool. The Skill includes an automatic dependency fix to resolve Python package conflicts and ensure it works out of the box.

What is the best way to check MIOT properties for a Xiaomi rice cooker without cloud access?

The best way to check MIOT properties for a Xiaomi rice cooker without cloud access is using local network control via miiocli. This enables direct LAN communication for status checks and property manipulation without relying on remote servers.

What types of Xiaomi devices are supported for LAN-based status checks?

Supported Xiaomi devices for LAN-based status checks include smart plugs, humidifiers, and rice cookers. These pre-configured workflows allow direct local network manipulation of their MIOT properties without cloud API dependencies.

Why does the miiocli tool fail with Python dependency conflicts during Xiaomi device control?

The miiocli tool may fail with Python dependency conflicts due to environment mismatches, but this Skill implements an automatic dependency fix to resolve them. This ensures the local network control setup works correctly out of the box.