闲社服务运行正常AI智能体自动化平台
x

米家设备控制

技能标识: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 设备的属性调优。

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

米家设备控制

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

  1. 1. Tokens: Obtain device IPs and Tokens using the bundled script:
bash python3 scripts/token_extractor.py
  1. 2. Registry: Store your device details in references/devices.md or references/myprivatedevices.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 heaterSmart PlugPower ONmiiocli miotdevice --ip <IP> --token <TOKEN> rawcommand setproperties [{siid: 2, piid: 1, value: true}]
Turn off water heater
Smart Plug | Power OFF | miiocli miotdevice --ip --token rawcommand setproperties [{siid: 2, piid: 1, value: false}] |
| Humidifier to max | Humidifier | Set Mode | miiocli miotdevice --ip --token setpropertyby 2 5 3 |
| Is rice cooked? | Rice Cooker | Check Status | miiocli cooker --ip --token status |


中文说明

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

🚀 核心特性

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

🛠️ 快速开始

  1. 1. 获取钥匙:运行内置的提取脚本:
bash python3 scripts/token_extractor.py
  1. 2. 配置列表:将您的设备信息填入 references/devices.md。
  2. 下达指令:对着机器人喊:“打开热水器”或“查看加湿器状态”。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 xiaomi-1776360062 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 xiaomi-1776360062 技能

通过命令行安装

skillhub install xiaomi-1776360062

下载

⬇ 下载 xiaomi v1.0.0(免费)

文件大小: 2.39 KB | 发布时间: 2026-4-17 15:20

v1.0.0 最新 2026-4-17 15:20
Initial release: Control Xiaomi (Mi Home) devices on your local network using miiocli.

- Supports status checks, power toggles, and MIOT property adjustments for devices like smart plugs, humidifiers, and rice cookers.
- Includes a built-in token extraction script for easy device setup.
- Ready-to-use workflows for common device types.
- Automated dependency fix for common Python library issues.
- Full documentation in both English and Chinese.
返回顶部