← 返回 Skills 市场
jasonzhang2015

Mijia Control

作者 PL Uncle · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
224
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install mijia-control
功能描述
Control Xiaomi Mi Home (米家) smart devices via Xiaomi Cloud API. Use when: user wants to control smart home devices (lights, AC, heater, bath heater, switches...
安全使用建议
Before installing or running this skill, consider the following: - This package appears to be customized for a specific home: it includes hard-coded device IDs and a home_id. If you do not own those devices, do not use the pre-filled references — remove or replace them with your own device IDs. - The skill requires Xiaomi cloud credentials saved to ~/.mijia_creds.json (serviceToken, ssecurity, userId). Only create that file if you trust the code; protect it (chmod 600) and do not share it. Prefer to run the login flow locally and verify credentials yourself. - The scripts will write cache/state files to your home directory (~/.mijia_devices.json and ~/.fish_feed_state.json). Review these files for sensitive data before sharing. - The code depends on the third-party micloud Python package. Review that package and install it from a trusted source (pip) in a controlled environment (virtualenv) if possible. - If you plan to enable the auto-feed cron behavior, be aware it will poll your cloud account periodically — only enable it if you intend that background activity. - Recommended actions: inspect and remove any embedded device/home identifiers that don't belong to you; run the scripts in a sandbox or non-privileged account first; rotate Xiaomi credentials if you ever load them into an environment you don't fully trust. - If you are not the owner of the listed devices (the bundle's 'BOSS home'), treat these files as containing someone else's private information and avoid uploading or publishing them.
功能分析
Type: OpenClaw Skill Name: mijia-control Version: 1.1.0 The skill bundle provides a comprehensive toolkit for controlling Xiaomi Mi Home devices via the Xiaomi Cloud API using the 'micloud' library. It includes a core CLI utility (mijia.py) for device management and a specialized automation script (fish_auto_feed.py) that polls door lock events to trigger a fish feeder. While the skill handles sensitive cloud credentials and interacts with physical home hardware, its operations are transparent, well-documented in SKILL.md, and strictly aligned with its stated purpose of smart home automation.
能力评估
Purpose & Capability
The code and instructions implement Mi Home cloud control (uses micloud, calls MiCloud APIs, provides get/set/scene/tts/batch actions) which matches the skill description. However the repository contains a device registry and home_id hard-coded for a specific household (labels like 'BOSS home', many DIDs, home_id=159001331072). That makes the package appear tailored to a particular user's environment rather than a generic, reusable controller.
Instruction Scope
Runtime instructions and scripts operate within the Xiaomi API domain and the user's home directory: they read/write ~/.mijia_creds.json, cache devices to ~/.mijia_devices.json, and maintain ~/.fish_feed_state.json. They also instruct manual browser-based login steps. Instructions do not attempt to read unrelated system files or call unexpected external endpoints, but they do require storing sensitive credentials locally and will poll cloud device event logs (expected for this functionality).
Install Mechanism
There is no automated install/download step; this is instruction-plus-source included in the bundle. The only external install required is the micloud Python package (pip3 install micloud), which is a normal dependency for this functionality. No remote arbitrary archives or URL downloads are used.
Credentials
No environment variables are requested, and the credential storage (~/.mijia_creds.json) is proportionate for a cloud API client. However the bundle embeds many device IDs, models, and a home_id specific to one household. Those entries are sensitive (device identifiers and home_id) and are not required for a generic controller; their presence is disproportionate and may leak another person's home layout or identifiers if this package is shared or published.
Persistence & Privilege
The skill does not request 'always: true' and does not modify other skills or system-wide agent settings. It writes only to files within the user's home (~/.mijia_creds.json, ~/.mijia_devices.json, ~/.fish_feed_state.json) which is expected for caching/credential/state; autonomous invocation is allowed (platform default) but not an additional privilege requested by the skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install mijia-control
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /mijia-control 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Add auto fish feeding (poll door lock events + daily dedup); fix action param format for fish feeder; add TTS command for XiaoAI speaker
v1.0.0
Initial release: device control, automation scenes, TTS, batch commands
元数据
Slug mijia-control
版本 1.1.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Mijia Control 是什么?

Control Xiaomi Mi Home (米家) smart devices via Xiaomi Cloud API. Use when: user wants to control smart home devices (lights, AC, heater, bath heater, switches... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 224 次。

如何安装 Mijia Control?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install mijia-control」即可一键安装,无需额外配置。

Mijia Control 是免费的吗?

是的,Mijia Control 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Mijia Control 支持哪些平台?

Mijia Control 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Mijia Control?

由 PL Uncle(@jasonzhang2015)开发并维护,当前版本 v1.1.0。

💬 留言讨论