Mi Home (Xiaomi) Device Manager
Control and query Xiaomi/Mi Home smart-home devices from chat via the mijiaAPI CLI.
AutomationIntermediate★ 127⑂ 15AI 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
didand reads/writes properties such ason,brightness,color-temperature, andcolor. - Enforces a safe order of operations: run
--get_device_info MODELfirst 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
- "Turn on the living room lamp" → list devices with
python -m mijiaAPI -l, grab the did, thenset --prop_name on --value True. - "Dim the bedroom light to 30" → check the range via
--get_device_info, thenset --prop_name brightness --value 30. - "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)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the 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.
- Confirm Python 3.8+ and pip are installed:
python -V - Install the dependency:
pip install mijiaAPI - Clone the skill:
git clone https://github.com/dean2021/mijia-device-manager.git ~/.claude/skills/mijia-device-manager - Verify that
~/.claude/skills/mijia-device-manager/SKILL.mdexists. - Do the first-time login:
python -m mijiaAPI --list_homes, then scan the displayed QR code with the Mi Home app. - Restart Claude Code and try asking "list my Mi Home devices".
- If auth breaks, run
rm ~/.config/mijia-api/auth.jsonand repeat step 5.