mijia-control

Control and monitor Xiaomi Mijia smart home devices via the mijiaAPI Python library.

39|10|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/lllooollpp/clawdbot-cn --skill mijia-control
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mijia-control
Source: https://github.com/lllooollpp/clawdbot-cn/tree/main/skills/mijia-control
Command: npx skills add https://github.com/lllooollpp/clawdbot-cn --skill mijia-control

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mijiaAPI, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows AI agents to control and monitor Xiaomi Mijia smart home devices, enabling automation and remote management of your home environment.

Core Features & Use Cases

  • Device Control: Switch device status (on/off, brightness, mode, etc.).
  • Device Monitoring: List available devices and check their current status and environmental statistics.
  • Scene Automation: Trigger pre-configured automation scenes within the Mijia ecosystem.
  • Use Case: "Turn off all the lights in the living room and set the air purifier to auto mode."

Quick Start

Ensure your Mijia environment is set up by running python <SKILL_ROOT>/scripts/setup_env.py --install and then log in by running mijiaAPI -l.

Frequently Asked Questions about mijia-control

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

FAQPage Schema
How do I control Xiaomi Mijia smart home devices using an AI agent?

To control Xiaomi Mijia smart home devices via an AI agent, use this Skill to switch states, list devices, check environmental data, and trigger scenes. It interfaces directly with the mijiaAPI Python library.

What do I need to set up before automating Mijia device control?

Before automating Mijia device control, you need Python 3.9+ and the mijiaAPI package. Run the setup script to install dependencies and execute the login command to authenticate your Mijia environment.

Can I trigger pre-configured automation scenes within the Mijia ecosystem?

Yes, you can trigger pre-configured automation scenes within the Mijia ecosystem. This Skill enables AI agents to execute scene automation commands alongside standard device switching and environmental monitoring functions.

Does this approach support checking environmental statistics from IoT sensors?

Yes, this approach supports checking environmental statistics from IoT sensors. It allows AI agents to monitor current device statuses and retrieve environmental data directly through the mijiaAPI Python library.