← Back to Skills Marketplace
224
Downloads
0
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install mijia-control
Description
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...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install mijia-control - After installation, invoke the skill by name or use
/mijia-control - Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Frequently Asked Questions
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 224 downloads so far.
How do I install Mijia Control?
Run "/install mijia-control" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Mijia Control free?
Yes, Mijia Control is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Mijia Control support?
Mijia Control is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Mijia Control?
It is built and maintained by PL Uncle (@jasonzhang2015); the current version is v1.1.0.
More Skills