xiaomi-home

Control Xiaomi Mi Home devices locally over LAN using miiocli.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, colorama, Pillow, pycryptodome, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Enable local, fast control of Xiaomi Mi Home devices without relying on cloud services, and simplify device discovery and configuration.

Core Features & Use Cases

  • Local LAN control of Mi Home devices via miiocli for fast responses and privacy.
  • Built-in token extraction script to fetch device IPs and tokens, simplifying onboarding.
  • Pre-configured workflows for common devices (smart plugs, humidifiers, rice cookers) and MIOT property adjustments.
  • Automatic handling of dependency conflicts to ensure out-of-the-box operation.

Quick Start

Run token_extractor.py to collect device IPs and tokens, then populate references/devices.md and begin issuing miiocli commands to control devices.

Frequently Asked Questions about xiaomi-home

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

FAQPage Schema
How do I control Xiaomi Mi Home devices locally without cloud access?

You can control Xiaomi Mi Home devices locally over your LAN using miiocli commands, which bypasses cloud services for faster responses and better privacy. This Skill automates that local network control.

How do I extract device tokens and IPs for miiocli setup?

To extract device tokens and IPs, run the included token_extractor.py script to collect your Xiaomi device credentials, then populate references/devices.md with the output before issuing miiocli commands.

Can I control smart plugs, humidifiers, and rice cookers with miiocli?

Yes, miiocli supports local control of smart plugs, humidifiers, and rice cookers. This Skill provides pre-configured workflows for status checks, on/off switching, and MIOT property adjustments for these common devices.

Does local Xiaomi device control require Python 3 and specific dependencies?

Yes, local Xiaomi device control requires Python 3, network access, and python-miio/miiocli tooling. Dependencies include requests, colorama, Pillow, and pycryptodome, which are handled automatically to ensure out-of-the-box operation.

Why use local LAN control instead of the Xiaomi cloud for smart home devices?

Local LAN control provides faster response times and enhanced privacy by communicating directly with devices over your private network, avoiding the latency and external dependencies of routing commands through Xiaomi cloud servers.