{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/mijia",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mijia",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "pyproject.toml",
      "scripts/lamp_cli.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/mijia",
    "agentPageUrl": "https://openagent3.xyz/skills/mijia/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mijia/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mijia/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Mijia Smart Home Control",
        "body": "Control Xiaomi Mijia smart devices via the mijiaAPI."
      },
      {
        "title": "Setup",
        "body": "Before using this skill, you need to:\n\nInstall dependencies:\n\ncd /path/to/mijia-skill\nuv sync\n\nSet your device ID as an environment variable:\n\nexport MIJIA_LAMP_DID=\"your_device_id\"\n\nFirst run will prompt for Xiaomi account login via QR code."
      },
      {
        "title": "Finding Device IDs",
        "body": "To find your device IDs, use the mijia-api library:\n\nfrom mijiaAPI import mijiaAPI\napi = mijiaAPI()\napi.login()\ndevices = api.get_device_list()\nfor d in devices:\n    print(f\"{d['name']}: {d['did']}\")"
      },
      {
        "title": "How to Use",
        "body": "Skill path: ~/.clawdbot/skills/mijia"
      },
      {
        "title": "Lamp Control Commands",
        "body": "# Navigate to skill directory\ncd ~/.claude/skills/mijia\n\n# Check status\nuv run python scripts/lamp_cli.py status\n\n# Turn on/off\nuv run python scripts/lamp_cli.py on\nuv run python scripts/lamp_cli.py off\nuv run python scripts/lamp_cli.py toggle\n\n# Adjust brightness (1-100%)\nuv run python scripts/lamp_cli.py brightness 50\n\n# Adjust color temperature (2700-6500K)\nuv run python scripts/lamp_cli.py temp 4000\n\n# Set mode\nuv run python scripts/lamp_cli.py mode reading    # Reading mode\nuv run python scripts/lamp_cli.py mode computer   # Computer mode\nuv run python scripts/lamp_cli.py mode night      # Night reading\nuv run python scripts/lamp_cli.py mode antiblue   # Anti-blue light\nuv run python scripts/lamp_cli.py mode work       # Work mode\nuv run python scripts/lamp_cli.py mode candle     # Candle effect\nuv run python scripts/lamp_cli.py mode twinkle    # Twinkle alert"
      },
      {
        "title": "Natural Language Understanding",
        "body": "When the user says the following, execute the corresponding command:\n\nUser 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"
      },
      {
        "title": "Before Executing",
        "body": "Navigate to skill directory: cd ~/.clawdbot/skills/mijia\nEnsure MIJIA_LAMP_DID environment variable is set\nRun with uv: uv run python scripts/lamp_cli.py <command>\nReport the result to the user after execution"
      }
    ],
    "body": "Mijia Smart Home Control\n\nControl Xiaomi Mijia smart devices via the mijiaAPI.\n\nSetup\n\nBefore using this skill, you need to:\n\nInstall dependencies:\ncd /path/to/mijia-skill\nuv sync\n\nSet your device ID as an environment variable:\nexport MIJIA_LAMP_DID=\"your_device_id\"\n\nFirst run will prompt for Xiaomi account login via QR code.\nFinding Device IDs\n\nTo find your device IDs, use the mijia-api library:\n\nfrom mijiaAPI import mijiaAPI\napi = mijiaAPI()\napi.login()\ndevices = api.get_device_list()\nfor d in devices:\n    print(f\"{d['name']}: {d['did']}\")\n\nHow to Use\n\nSkill path: ~/.clawdbot/skills/mijia\n\nLamp Control Commands\n# Navigate to skill directory\ncd ~/.claude/skills/mijia\n\n# Check status\nuv run python scripts/lamp_cli.py status\n\n# Turn on/off\nuv run python scripts/lamp_cli.py on\nuv run python scripts/lamp_cli.py off\nuv run python scripts/lamp_cli.py toggle\n\n# Adjust brightness (1-100%)\nuv run python scripts/lamp_cli.py brightness 50\n\n# Adjust color temperature (2700-6500K)\nuv run python scripts/lamp_cli.py temp 4000\n\n# Set mode\nuv run python scripts/lamp_cli.py mode reading    # Reading mode\nuv run python scripts/lamp_cli.py mode computer   # Computer mode\nuv run python scripts/lamp_cli.py mode night      # Night reading\nuv run python scripts/lamp_cli.py mode antiblue   # Anti-blue light\nuv run python scripts/lamp_cli.py mode work       # Work mode\nuv run python scripts/lamp_cli.py mode candle     # Candle effect\nuv run python scripts/lamp_cli.py mode twinkle    # Twinkle alert\n\nNatural Language Understanding\n\nWhen the user says the following, execute the corresponding command:\n\nUser Says\tCommand\nTurn on the light / open lamp\tscripts/lamp_cli.py on\nTurn off the light / close lamp\tscripts/lamp_cli.py off\nToggle the light\tscripts/lamp_cli.py toggle\nBrighter / more bright\tCheck status first, then increase by 20-30%\nDimmer / less bright\tCheck status first, then decrease by 20-30%\nFull brightness / maximum\tscripts/lamp_cli.py brightness 100\nMinimum brightness\tscripts/lamp_cli.py brightness 1\nWarm light\tscripts/lamp_cli.py temp 2700\nCool light / white light\tscripts/lamp_cli.py temp 6500\nReading mode\tscripts/lamp_cli.py mode reading\nComputer mode\tscripts/lamp_cli.py mode computer\nNight mode\tscripts/lamp_cli.py mode night\nLamp status / what's the light status\tscripts/lamp_cli.py status\nBefore Executing\nNavigate to skill directory: cd ~/.clawdbot/skills/mijia\nEnsure MIJIA_LAMP_DID environment variable is set\nRun with uv: uv run python scripts/lamp_cli.py <command>\nReport the result to the user after execution"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/hqman/mijia",
    "publisherUrl": "https://clawhub.ai/hqman/mijia",
    "owner": "hqman",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}