Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

Mi Home (Xiaomi) Device Manager

Control and query Xiaomi/Mi Home smart-home devices from chat via the mijiaAPI CLI.

AutomationIntermediate12715AI score 8/10Last updated: Feb 11, 2026

What it does

  • Logs into your Xiaomi account with a QR code and lists your homes and devices.
  • Finds a device did and reads/writes properties such as on, brightness, color-temperature, and color.
  • Enforces a safe order of operations: run --get_device_info MODEL first to learn which properties and value ranges the device actually supports.
  • Triggers Mi Home scenes and includes troubleshooting for login failures, missing devices, and rejected property values.

Who it's for

  • Owners of Xiaomi/Mi Home lights, plugs, and appliances who want to control them from a terminal or Claude Code.
  • Developers embedding smart-home actions into scripts and automation workflows.
  • Anyone who wants a quick device status check without opening the mobile app.

Example uses

  1. "Turn on the living room lamp" → list devices with python -m mijiaAPI -l, grab the did, then set --prop_name on --value True.
  2. "Dim the bedroom light to 30" → check the range via --get_device_info, then set --prop_name brightness --value 30.
  3. "Run my 'coming home' scene" → python -m mijiaAPI --run_scene "回家".

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/dean2021/mijia-device-manager/HEAD/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on Claude Skill Mart.
Copy the SKILL.m folder from the GitHub repo dean2021/mijia-device-manager into my ~/.claude/skills/mijia-device-manager/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/dean2021/mijia-device-manager.git ~/.claude/skills/mijia-device-manager

This is a third-party skill. Check the source repository before installing.

  1. Confirm Python 3.8+ and pip are installed: python -V
  2. Install the dependency: pip install mijiaAPI
  3. Clone the skill: git clone https://github.com/dean2021/mijia-device-manager.git ~/.claude/skills/mijia-device-manager
  4. Verify that ~/.claude/skills/mijia-device-manager/SKILL.md exists.
  5. Do the first-time login: python -m mijiaAPI --list_homes, then scan the displayed QR code with the Mi Home app.
  6. Restart Claude Code and try asking "list my Mi Home devices".
  7. If auth breaks, run rm ~/.config/mijia-api/auth.json and repeat step 5.