← Back to Skills Marketplace
2591
Downloads
2
Stars
9
Active Installs
1
Versions
Install in OpenClaw
/install mijia
Description
Control Xiaomi Mijia smart home devices. Use this skill when the user wants to control desk lamps, smart plugs, or other Mijia devices. Supports turning lights on/off, adjusting brightness, setting color temperature, switching modes, and more.
Usage Guidance
Before installing or running this skill, consider the following:
- The skill will require you to set MIJIA_LAMP_DID and to login to your Xiaomi account (QR code). Confirm where the mijiaAPI library stores login tokens/credentials on disk (cookies, config files) and whether you are comfortable with that storage location.
- The registry metadata does NOT list MIJIA_LAMP_DID as a required env var, and SKILL.md/README use inconsistent directory paths (~/.clawdbot vs ~/.claude vs /path/to). Ask the author to fix metadata and docs so requirements are explicit.
- The skill depends on the third-party package 'mijiaapi' (pyproject.toml). Inspect that package's source or its PyPI/GitHub repo for any network endpoints, telemetry, or unexpected behaviors before running 'uv sync'.
- Run the skill in an isolated environment (virtualenv or disposable VM) the first time to observe what files/tokens it creates and what network calls it makes.
- If you only want the AI to issue commands and not perform autonomous installs/logins, avoid allowing autonomous invocation until metadata and behavior are clarified.
If the author can (1) list MIJIA_LAMP_DID in the skill metadata, (2) fix the path inconsistencies, and (3) document where login tokens are stored (and confirm no unrelated credentials are accessed), this would reduce the outstanding concerns.
Capability Analysis
Type: OpenClaw Skill
Name: mijia
Version: 0.1.0
The skill is designed to control Xiaomi Mijia smart home devices, and all analyzed files align with this stated purpose. The `SKILL.md` provides clear instructions for the AI agent to execute commands via `scripts/lamp_cli.py`, which interacts with the `mijiaAPI` library. The script reads the `MIJIA_LAMP_DID` environment variable for device identification and calls `api.login()` for authentication, both of which are necessary and explicitly documented for smart home device control. There is no evidence of prompt injection with malicious intent, data exfiltration to unauthorized endpoints, malicious execution, persistence mechanisms, or obfuscation. The dependency on `mijiaapi` is declared in `pyproject.toml` and is central to the skill's functionality.
Capability Assessment
Purpose & Capability
Name/description align with included code: the CLI (scripts/lamp_cli.py) and README implement lamp control via a mijiaAPI library. The declared project dependency (mijiaapi) is appropriate for the stated function.
Instruction Scope
SKILL.md instructs the agent to install dependencies (uv sync), set MIJIA_LAMP_DID, login via Xiaomi QR code, and run scripts/lamp_cli.py. Those steps are within scope for a device-control skill, but the skill documentation uses multiple inconsistent install/run paths (e.g., ~/.clawdbot/skills/mijia, ~/.claude/skills/mijia, and /path/to/mijia-skill) and the runtime instructions rely on the external mijiaAPI library (which will perform network login and store tokens) without describing where credentials/tokens are persisted.
Install Mechanism
No install spec is declared in the registry (instruction-only), but a pyproject.toml lists mijiaapi as a dependency and README/SKILL.md require running 'uv sync' / 'uv run'. The skill will therefore pull a third-party package from PyPI (or equivalent) when installed — the package source and behavior are not included in the skill, so you must audit that dependency separately. No arbitrary HTTP downloads or embedded obfuscated installers were found in the skill itself.
Credentials
The registry metadata lists no required env vars or primary credential, but SKILL.md and the CLI require MIJIA_LAMP_DID and the user to login to a Xiaomi account. The skill does not declare this required environment variable in its metadata, and it does not explain where login tokens will be stored. Asking for a Xiaomi account login and device ID is expected for this functionality, but the mismatch between declared requirements and actual instructions is a gap that could hide assumptions about stored credentials or token persistence.
Persistence & Privilege
The skill does not request always:true, does not declare system-wide config paths, and does not attempt to modify other skills. It requires the agent to run the CLI manually (or be invoked), and the included code performs only device operations via the external library.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install mijia - After installation, invoke the skill by name or use
/mijia - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
- Initial release: Control Xiaomi Mijia smart home devices via command line.
- Supports turning lights on/off, toggling, adjusting brightness and color temperature, and switching modes (reading, computer, night, etc).
- Provides natural language mappings for common lighting commands.
- Setup instructions included for device ID configuration and first-run authentication.
- Usage details and example commands for lamp control added.
Metadata
Frequently Asked Questions
What is Mijia?
Control Xiaomi Mijia smart home devices. Use this skill when the user wants to control desk lamps, smart plugs, or other Mijia devices. Supports turning lights on/off, adjusting brightness, setting color temperature, switching modes, and more. It is an AI Agent Skill for Claude Code / OpenClaw, with 2591 downloads so far.
How do I install Mijia?
Run "/install mijia" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Mijia free?
Yes, Mijia is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Mijia support?
Mijia is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Mijia?
It is built and maintained by Kai Wang (@hqman); the current version is v0.1.0.
More Skills