mijia-api

Control Xiaomi Mi Home devices and retrieve data via command-line interface.

700|96|Updated Aug 12, 2022
One-click install
npx skills add https://github.com/Do1e/mijia-api --skill mijia-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mijia-api
Source: https://github.com/Do1e/mijia-api/tree/main/skills
Command: npx skills add https://github.com/Do1e/mijia-api --skill mijia-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of programmatically interacting with Xiaomi Mi Home devices, allowing users to automate control, monitor status, and execute complex scenes without relying on the mobile app interface.

Core Features & Use Cases

  • Device Management: List, query, and control smart home devices including lights, sensors, and appliances.
  • Automation & Scenes: Trigger pre-configured home scenes and execute natural language commands via XiaoAI speakers.
  • Data Analytics: Retrieve historical device statistics such as power consumption or sensor logs for analysis.
  • Use Case: Automatically turn off all lights and run a "Good Night" scene when leaving home, or monitor the power usage of specific appliances over the last month.

Quick Start

Use the mijia-api skill to list all available smart home devices and their current online status.

Frequently Asked Questions about mijia-api

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

FAQPage Schema
How do I control Xiaomi smart home devices from the command line?

You can control Xiaomi smart home devices from the command line by using this skill to interact with the Xiaomi Mi Home API. It enables device management, scene execution, and data retrieval without needing the mobile app interface.

Can I automate Mi Home scenes and trigger XiaoAI speakers via CLI?

Yes, you can automate Mi Home scenes and trigger XiaoAI speakers via CLI. The skill supports triggering pre-configured home scenes and executing natural language commands through connected devices for automated smart home control.

Do I need uvx and an authentication file to use the Mi Home API?

Yes, using the Mi Home API requires the uvx tool to execute the mijiaAPI package and a valid authentication file. These ensure secure access to your device data and enable all CLI-based automation and control operations.

How do I retrieve historical power consumption statistics for Xiaomi IoT devices?

To retrieve historical power consumption statistics for Xiaomi IoT devices, use this skill's data analytics feature. It fetches historical device statistics like power usage logs from the Mi Home API for analysis over specific time periods.

What are the limitations of using a CLI tool for Xiaomi IoT device management?

A limitation of using a CLI tool for Xiaomi IoT device management is the requirement for command-line familiarity and proper authentication setup. It replaces the mobile app but requires manual configuration for secure device access and automation.