# Send Xiaomi to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "xiaomi-home-skill",
    "name": "Xiaomi",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/yiqiezhenxi/xiaomi-home-skill",
    "canonicalUrl": "https://clawhub.ai/yiqiezhenxi/xiaomi-home-skill",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/xiaomi-home-skill",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=xiaomi-home-skill",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/xiaomi-home-skill"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/xiaomi-home-skill",
    "downloadUrl": "https://openagent3.xyz/downloads/xiaomi-home-skill",
    "agentUrl": "https://openagent3.xyz/skills/xiaomi-home-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/xiaomi-home-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/xiaomi-home-skill/agent.md"
  }
}
```
## Documentation

### Xiaomi Home Control小米家居控制

[English] | 中文

### English

Enable code-level control of Xiaomi (Mi Home) devices over the local network.

### 🚀 Features

Local Network Control: Fast, direct communication without relying on heavy cloud APIs.
Built-in Token Extractor: Includes a script to easily fetch your device IPs and Tokens from Xiaomi Cloud.
Pre-configured Workflows: Ready-to-use commands for smart plugs (e.g., water heaters), humidifiers, and rice cookers.
Automatic Dependency Fix: Solves common library conflicts (like the click version issue) automatically.

### 🛠️ Setup & Device Inventory

Tokens: Obtain device IPs and Tokens using the bundled script:
python3 scripts/token_extractor.py


Registry: Store your device details in references/devices.md or references/my_private_devices.md.

### 🤖 Natural Language Intents

When the user gives a command, map it to the corresponding miiocli operation:

User IntentDevice TypeActionTechnical Command (Example)"Turn on water heater"Smart PlugPower ONmiiocli miotdevice --ip <IP> --token <TOKEN> raw_command set_properties '[{"siid": 2, "piid": 1, "value": true}]'"Turn off water heater"Smart PlugPower OFFmiiocli miotdevice --ip <IP> --token <TOKEN> raw_command set_properties '[{"siid": 2, "piid": 1, "value": false}]'"Humidifier to max"HumidifierSet Modemiiocli miotdevice --ip <IP> --token <TOKEN> set_property_by 2 5 3"Is rice cooked?"Rice CookerCheck Statusmiiocli cooker --ip <IP> --token <TOKEN> status

### 中文说明

实现在局域网内对小米（米家）智能家居设备的代码级直接控制。

### 🚀 核心特性

本地化控制：直接在局域网内通信，响应极快，不完全依赖复杂的云端 API。
内置 Token 提取器：自带提取脚本，轻松从小米账号同步所有设备的 IP 和 32 位 Token 密钥。
预设工作流：支持智能插座（如热水器控制）、加湿器、米家小饭煲等多种常见设备。
自动环境优化：安装时自动处理 Python 依赖冲突（如 click 版本问题），确保开箱即用。

### 🛠️ 快速开始

获取钥匙：运行内置的提取脚本：
python3 scripts/token_extractor.py


配置列表：将您的设备信息填入 references/devices.md。
下达指令：对着机器人喊：“打开热水器”或“查看加湿器状态”。
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: yiqiezhenxi
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/xiaomi-home-skill)
- [Send to Agent page](https://openagent3.xyz/skills/xiaomi-home-skill/agent)
- [JSON manifest](https://openagent3.xyz/skills/xiaomi-home-skill/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/xiaomi-home-skill/agent.md)
- [Download page](https://openagent3.xyz/downloads/xiaomi-home-skill)