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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/yiqiezhenxi/xiaomi-home-skillWhat 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
- "Turn on the water heater so it's warm when I wake up."
- "Set the bedroom humidifier to high mode for the next three hours."
- "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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-yiqiezhenxi-xiaomi-home-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, code-execution
Related Skills
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 设备的属性调优。
phoenix-shield
Self-healing backup and update system with intelligent rollback. Protects against failed updates by automatically monitoring system health post-update and recovering from backups when needed. Features canary deployment testing, health baselines, smart rollback, and 24/7 automated monitoring. Use when performing critical system updates, managing production deployments, or ensuring high availability of services. Prevents downtime through pre-flight checks, integrity verification, and automatic recovery workflows.
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 设备的属性调优。