mijia-device-manager

Automate Xiaomi/Mi Home device control via the mijiaAPI CLI.

126|15|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/dean2021/mijia-device-manager --skill mijia-device-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mijia-device-manager
Source: https://github.com/dean2021/mijia-device-manager/tree/main
Command: npx skills add https://github.com/dean2021/mijia-device-manager --skill mijia-device-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines controlling Xiaomi/Mi Home devices by exposing a CLI-based interface via mijiaAPI, removing manual switching and device status checks.

Core Features & Use Cases

  • Login and device discovery across the Mi Home ecosystem
  • List devices and homes, and get/set device properties (on/off, brightness, color, etc.)
  • Execute actions and scenes, and view full device status

Quick Start

Use this skill to list devices and then control a device by its did (e.g., turn on the lamp with did 123456789).

Frequently Asked Questions about mijia-device-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control Mi Home devices from the command line?

You can control Mi Home devices from the command line by using the mijiaAPI CLI to discover devices, query status, set properties like on/off and brightness, and execute scenes.

How do I find the device ID for a Xiaomi smart home device?

To find the device ID for a Xiaomi smart home device, use the mijiaAPI CLI to list your homes and devices after logging in, which exposes the specific did needed for property control.

Can I batch execute scenes and actions across the Mi Home ecosystem?

Yes, you can batch execute scenes and actions across the Mi Home ecosystem by applying the mijiaAPI CLI to trigger predefined automations and device actions simultaneously.

What properties can I set for Xiaomi devices via the mijiaAPI CLI?

Via the mijiaAPI CLI, you can set Xiaomi device properties including power on/off status, brightness, color temperature, and trigger specific scenes mapped to the target device.

Does this approach require a manual login flow to manage Mi Home devices?

Yes, managing Mi Home devices requires completing the mijiaAPI CLI login flow first to authenticate your account before listing devices, querying status, or executing actions.