{
  "schemaVersion": "1.0",
  "item": {
    "slug": "home-xiaomi",
    "name": "Xiaomi",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/yiqiezhenxi/home-xiaomi",
    "canonicalUrl": "https://clawhub.ai/yiqiezhenxi/home-xiaomi",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/home-xiaomi",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=home-xiaomi",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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/home-xiaomi"
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/home-xiaomi",
    "agentPageUrl": "https://openagent3.xyz/skills/home-xiaomi/agent",
    "manifestUrl": "https://openagent3.xyz/skills/home-xiaomi/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/home-xiaomi/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Xiaomi Home Control小米家居控制",
        "body": "[English] | 中文"
      },
      {
        "title": "English",
        "body": "Enable code-level control of Xiaomi (Mi Home) devices over the local network."
      },
      {
        "title": "🚀 Features",
        "body": "Local Network Control: Fast, direct communication without relying on heavy cloud APIs.\nBuilt-in Token Extractor: Includes a script to easily fetch your device IPs and Tokens from Xiaomi Cloud.\nPre-configured Workflows: Ready-to-use commands for smart plugs (e.g., water heaters), humidifiers, and rice cookers.\nAutomatic Dependency Fix: Solves common library conflicts (like the click version issue) automatically."
      },
      {
        "title": "🛠️ Setup & Device Inventory",
        "body": "Tokens: Obtain device IPs and Tokens using the bundled script:\npython3 scripts/token_extractor.py\n\n\nRegistry: Store your device details in references/devices.md or references/my_private_devices.md."
      },
      {
        "title": "🤖 Natural Language Intents",
        "body": "When the user gives a command, map it to the corresponding miiocli operation:\n\nUser 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"
      },
      {
        "title": "中文说明",
        "body": "实现在局域网内对小米（米家）智能家居设备的代码级直接控制。"
      },
      {
        "title": "🚀 核心特性",
        "body": "本地化控制：直接在局域网内通信，响应极快，不完全依赖复杂的云端 API。\n内置 Token 提取器：自带提取脚本，轻松从小米账号同步所有设备的 IP 和 32 位 Token 密钥。\n预设工作流：支持智能插座（如热水器控制）、加湿器、米家小饭煲等多种常见设备。\n自动环境优化：安装时自动处理 Python 依赖冲突（如 click 版本问题），确保开箱即用。"
      },
      {
        "title": "🛠️ 快速开始",
        "body": "获取钥匙：运行内置的提取脚本：\npython3 scripts/token_extractor.py\n\n\n配置列表：将您的设备信息填入 references/devices.md。\n下达指令：对着机器人喊：“打开热水器”或“查看加湿器状态”。"
      }
    ],
    "body": "Xiaomi Home Control小米家居控制\n\n[English] | 中文\n\nEnglish\n\nEnable code-level control of Xiaomi (Mi Home) devices over the local network.\n\n🚀 Features\nLocal Network Control: Fast, direct communication without relying on heavy cloud APIs.\nBuilt-in Token Extractor: Includes a script to easily fetch your device IPs and Tokens from Xiaomi Cloud.\nPre-configured Workflows: Ready-to-use commands for smart plugs (e.g., water heaters), humidifiers, and rice cookers.\nAutomatic Dependency Fix: Solves common library conflicts (like the click version issue) automatically.\n🛠️ Setup & Device Inventory\nTokens: Obtain device IPs and Tokens using the bundled script:\npython3 scripts/token_extractor.py\n\nRegistry: Store your device details in references/devices.md or references/my_private_devices.md.\n🤖 Natural Language Intents\n\nWhen the user gives a command, map it to the corresponding miiocli operation:\n\nUser Intent\tDevice Type\tAction\tTechnical Command (Example)\n\"Turn on water heater\"\tSmart Plug\tPower ON\tmiiocli miotdevice --ip <IP> --token <TOKEN> raw_command set_properties '[{\"siid\": 2, \"piid\": 1, \"value\": true}]'\n\"Turn off water heater\"\tSmart Plug\tPower OFF\tmiiocli miotdevice --ip <IP> --token <TOKEN> raw_command set_properties '[{\"siid\": 2, \"piid\": 1, \"value\": false}]'\n\"Humidifier to max\"\tHumidifier\tSet Mode\tmiiocli miotdevice --ip <IP> --token <TOKEN> set_property_by 2 5 3\n\"Is rice cooked?\"\tRice Cooker\tCheck Status\tmiiocli cooker --ip <IP> --token <TOKEN> status\n中文说明\n\n实现在局域网内对小米（米家）智能家居设备的代码级直接控制。\n\n🚀 核心特性\n本地化控制：直接在局域网内通信，响应极快，不完全依赖复杂的云端 API。\n内置 Token 提取器：自带提取脚本，轻松从小米账号同步所有设备的 IP 和 32 位 Token 密钥。\n预设工作流：支持智能插座（如热水器控制）、加湿器、米家小饭煲等多种常见设备。\n自动环境优化：安装时自动处理 Python 依赖冲突（如 click 版本问题），确保开箱即用。\n🛠️ 快速开始\n获取钥匙：运行内置的提取脚本：\npython3 scripts/token_extractor.py\n\n配置列表：将您的设备信息填入 references/devices.md。\n下达指令：对着机器人喊：“打开热水器”或“查看加湿器状态”。"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/yiqiezhenxi/home-xiaomi",
    "publisherUrl": "https://clawhub.ai/yiqiezhenxi/home-xiaomi",
    "owner": "yiqiezhenxi",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/home-xiaomi",
    "downloadUrl": "https://openagent3.xyz/downloads/home-xiaomi",
    "agentUrl": "https://openagent3.xyz/skills/home-xiaomi/agent",
    "manifestUrl": "https://openagent3.xyz/skills/home-xiaomi/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/home-xiaomi/agent.md"
  }
}