rytilahti/python-miio

Python library & console tool for controlling Xiaomi smart appliances

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 16 seconds ago
Added to GitGenius on September 16th, 2026
Created on March 5th, 2017
Open Issues & Pull Requests: 314 (+0)
GitHub issues: Enabled
Number of forks: 601
Total Stargazers: 4,305 (+0)
Total Subscribers: 94 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 18.0 days
Mean response time: 168.7 days
90th percentile: 728.6 days
Tracked items: 85

Most active contributors

Sign in to see contributor activity.

How this project is maintained

97% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "bug" is answered fastest, typically in about 20 hours, while "new device" waits about 2 months. Three people close 82% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 68
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 728 days
Stale 30+ days: 63
Stale 90+ days: 52

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • new device (44)
  • bug (36)
  • enhancement (12)
  • miio (4)
  • help wanted (3)
  • miot (2)

Most active issues this week

Detailed Description

python-miio is a Python library and console tool for controlling Xiaomi smart appliances over the network.

The library addresses the challenge of communicating with Xiaomi devices that use the Mi Home protocol. It provides both a programmatic interface for developers and a command-line tool for direct device control. The approach works by implementing the protocol that Xiaomi devices use to receive commands, allowing users to query device status, execute actions, and manage settings without relying solely on the official Mi Home application.

The tool suits developers building home automation systems, particularly those integrating Xiaomi devices into broader smart home ecosystems. It is especially valuable for users who want local network control of their devices or need to automate Xiaomi appliances in custom workflows. The library supports both the original MIIO protocol and the newer MIoT specification, providing flexibility across different device generations. Those working with Home Assistant or similar home automation platforms will find this library directly applicable.

The project maintains active engagement with its user base through issue responses and pull request reviews. Development includes regular updates to device support and protocol handling. The codebase receives contributions addressing both new device compatibility and refinements to existing functionality.