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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/yiqiezhenxi/xiaomiWhat 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
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": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, file-write
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 设备的属性调优。