MirAIe AC API Client (miraie-ac-in)
A Python API client wrapper for controlling Panasonic MirAIe-enabled Air Conditioners. This library handles MQTT message parsing, connection loops, and telemetry status decoding.
This repository is a feature fork of rkzofficial/miraie-ac to provide updates for newer firmware versions, expand capacity control options, and improve connection stability.
Enhancements in This Fork
- Firmware 3.02+ Room Temperature Fix: Panasonic AC units running firmware
3.02+report ambient room temperature in a packed decimal format. This fork introduces version-aware decoding to display this value correctly, while retaining traditional decoding for older firmware. - Converti 8-in-1 Support: Expands compressor capacity control options by mapping the
60%and50%steps, enabling full 8-in-1 capacity features on supported models. - MQTT & Resource Lifecycle Cleanup: Adds an explicit
close()method to cleanly cancel and await active MQTT tasks and terminate the underlying HTTP client session, preventing resource leaks. - Telemetry Parsing: Adds status parsing for Nanoe™ air purifiers (
acng), Filter Clean alerts (acfc), Wi-Fi RSSI signal strength (rssi), and last control source (cnt). - Input Validation: Upgraded user credential validation with improved regex supporting subdomains and hyphenated domains.
Installation
Install the package via pip:
pip install miraie-ac-in
Quick Start
import asyncio
from miraie_ac import MirAIeHub, MirAIeBroker
async def main():
broker = MirAIeBroker()
hub = MirAIeHub()
# Initialize the hub (phone number format: +91XXXXXXXXXX)
await hub.init("+919999999999", "your_password", broker)
# List discovered devices
print("Discovered Devices:", hub.home.devices)
# Wait for the MQTT connection to establish
while not hasattr(broker, "client") or getattr(broker, "client") is None:
await asyncio.sleep(1)
# Example: Turn off the first device
if hub.home.devices:
device = hub.home.devices[0]
await device.turn_off()
await hub.close()
asyncio.run(main())
My Python Libraries
| Library | PyPI Package | Description | Status |
|---|---|---|---|
| Panasonic AC Models | panasonic-ac-models |
Hardware profiles, capability lookup & IR protocol generator for Indian Panasonic ACs | Stable |
| IFB Washer Models | ifb-washer-models |
Unified hardware database, model lookup & cycle capability gating for IFB smart washers | Stable |
| MirAIe AC API Client | miraie-ac-in |
Async MQTT & REST API client for Panasonic MirAIe-connected Air Conditioners | Stable |
Credits & License
Upstream Authors & Contributors
- Originally authored and developed by @rkzofficial.
- Features contributed by upstream community developers: @deCodeIt, @gutpull, and @ankitduseja.
Fork Maintainers & Contributors
- Lead Architecture & API Design: @selvakk2k — physical device telemetry capture, MQTT protocol analysis, and domain requirements.
- Code Implementation & Engineering: Antigravity (Google DeepMind) — asyncio MQTT connection lifecycles, memory leak resolution, Converti 8-in-1 decoding, and pytest suite.
- Automated Code Review & Auditing: CodeRabbit (@coderabbitai) — automated pull request and pre-commit code reviews, edge case detection, and security verification.
- Pre-Release Code Review & Auditing: Claude (Anthropic) — independent architectural review, code audits, and edge-case verification.
Licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for miraie-ac-in 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| miraie_ac_in-1.2.0.tar.gz | 15.6 kB | With provenance | Details for miraie_ac_in-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| miraie_ac_in-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for miraie_ac_in-1.2.0-py3-none-any.whl |
Total release size: 32.5 kB
Release files / miraie_ac_in-1.2.0.tar.gz
| Download URL | miraie_ac_in-1.2.0.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
323c9e80af02cb8d21089fddea174b7b1e64b94c314e25427bceefd6b8958672
|
|
BLAKE2b-256 checksum How to use checksums |
cfff3d35aafd473fd7c00604924addc02ea387dd419b196f73f8e4d619451cbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / miraie_ac_in-1.2.0-py3-none-any.whl
| Download URL | miraie_ac_in-1.2.0-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d3bc3d70336e613867a313ff736af072d11f44284951aac3ccbbf03b78042ce
|
|
BLAKE2b-256 checksum How to use checksums |
4b02b80ccfb75e874efa66a501857e599b6e0ba0b111c262da4d4ebc37c20c96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logSecurity for miraie-ac-in 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for miraie_ac_in-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.