# Send Mijia to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mijia",
    "name": "Mijia",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/hqman/mijia",
    "canonicalUrl": "https://clawhub.ai/hqman/mijia",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/mijia",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mijia",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "pyproject.toml",
      "scripts/lamp_cli.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "mijia",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T15:28:23.813Z",
      "expiresAt": "2026-05-07T15:28:23.813Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mijia",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mijia",
        "contentDisposition": "attachment; filename=\"mijia-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "mijia"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mijia"
    },
    "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."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mijia",
    "downloadUrl": "https://openagent3.xyz/downloads/mijia",
    "agentUrl": "https://openagent3.xyz/skills/mijia/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mijia/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mijia/agent.md"
  }
}
```
## Documentation

### Mijia Smart Home Control

Control Xiaomi Mijia smart devices via the mijiaAPI.

### Setup

Before using this skill, you need to:

Install dependencies:

cd /path/to/mijia-skill
uv sync

Set your device ID as an environment variable:

export MIJIA_LAMP_DID="your_device_id"

First run will prompt for Xiaomi account login via QR code.

### Finding Device IDs

To find your device IDs, use the mijia-api library:

from mijiaAPI import mijiaAPI
api = mijiaAPI()
api.login()
devices = api.get_device_list()
for d in devices:
    print(f"{d['name']}: {d['did']}")

### How to Use

Skill path: ~/.clawdbot/skills/mijia

### Lamp Control Commands

# Navigate to skill directory
cd ~/.claude/skills/mijia

# Check status
uv run python scripts/lamp_cli.py status

# Turn on/off
uv run python scripts/lamp_cli.py on
uv run python scripts/lamp_cli.py off
uv run python scripts/lamp_cli.py toggle

# Adjust brightness (1-100%)
uv run python scripts/lamp_cli.py brightness 50

# Adjust color temperature (2700-6500K)
uv run python scripts/lamp_cli.py temp 4000

# Set mode
uv run python scripts/lamp_cli.py mode reading    # Reading mode
uv run python scripts/lamp_cli.py mode computer   # Computer mode
uv run python scripts/lamp_cli.py mode night      # Night reading
uv run python scripts/lamp_cli.py mode antiblue   # Anti-blue light
uv run python scripts/lamp_cli.py mode work       # Work mode
uv run python scripts/lamp_cli.py mode candle     # Candle effect
uv run python scripts/lamp_cli.py mode twinkle    # Twinkle alert

### Natural Language Understanding

When the user says the following, execute the corresponding command:

User SaysCommandTurn on the light / open lampscripts/lamp_cli.py onTurn off the light / close lampscripts/lamp_cli.py offToggle the lightscripts/lamp_cli.py toggleBrighter / more brightCheck status first, then increase by 20-30%Dimmer / less brightCheck status first, then decrease by 20-30%Full brightness / maximumscripts/lamp_cli.py brightness 100Minimum brightnessscripts/lamp_cli.py brightness 1Warm lightscripts/lamp_cli.py temp 2700Cool light / white lightscripts/lamp_cli.py temp 6500Reading modescripts/lamp_cli.py mode readingComputer modescripts/lamp_cli.py mode computerNight modescripts/lamp_cli.py mode nightLamp status / what's the light statusscripts/lamp_cli.py status

### Before Executing

Navigate to skill directory: cd ~/.clawdbot/skills/mijia
Ensure MIJIA_LAMP_DID environment variable is set
Run with uv: uv run python scripts/lamp_cli.py <command>
Report the result to the user after execution
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: hqman
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T15:28:23.813Z
- Expires at: 2026-05-07T15:28:23.813Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/mijia)
- [Send to Agent page](https://openagent3.xyz/skills/mijia/agent)
- [JSON manifest](https://openagent3.xyz/skills/mijia/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/mijia/agent.md)
- [Download page](https://openagent3.xyz/downloads/mijia)