Skip to main content

MirAIe-AC API for Python — actively maintained fork of miraie-ac

Project description

MirAIe-AC-IN API for Python

A fork of rkzofficial/miraie-ac, to expand features and add hardware-specific adaptations that may break if merged with upstream.

Installation

pip install miraie-ac-in

Get started

import asyncio
from miraie_ac import MirAIeHub, MirAIeBroker

async def setup():
  # Instantiate a MirAIeHub object
  broker = MirAIeBroker()

  # Instantiate a MirAIeHub object
  hub = MirAIeHub()

  # Intialize the hub (+91xxxxxxxxxx, password, broker)
  await hub.init("<mobile>", "<password>", broker)
  
  # Display list of available devices
  print( hub.home.devices )
  
  # Wait till connection has been established with the broker
  async def waitForClient():
    while not hasattr(broker, 'client') or getattr(broker, 'client') is None:
      await asyncio.sleep(1)
  await waitForClient()

  # Now you can run any operation on the device(s)
  hub.home.devices[0].turn_off()
    
asyncio.run(setup())

Logs can be enabled in Home Assistant as follows

logger:
  ...
  logs:
    ...
    custom_components.miraie_in: debug
    ...

Notes

List of panasonic ACs


Fork Features

  • Firmware 3.02+ Room Temperature Fix: Parsed packed room temperature string values based on version checking.
  • Converti 8-in-1 support: Added extra enums for 60% and 50% capacity modes.
  • Stability Improvement: Implemented close() method to cancel/await active MQTT loop tasks and close the HTTP ClientSession cleanly, preventing process/resource leaks.
  • Email Validation: Upgraded the email regex to support subdomains and hyphenated domains (e.g. user@mail.co.uk).
  • Sensor/Control Parsing: Added parsing of acng (Nanoe), acfc (Filter Clean), rssi (Wi-Fi RSSI), and cnt (Control Source).

Credits

This fork was developed with the assistance of Claude (Anthropic) and Antigravity (Google DeepMind).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

miraie_ac_in-1.0.5.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

miraie_ac_in-1.0.5-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file miraie_ac_in-1.0.5.tar.gz.

File metadata

  • Download URL: miraie_ac_in-1.0.5.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for miraie_ac_in-1.0.5.tar.gz
Algorithm Hash digest
SHA256 6e096cc2777f173ef988e730c054cb151b472072bb4ec079ac2d7b62f9d97a5d
MD5 1510aeabfa7f994597afc10650d0bac2
BLAKE2b-256 0381529c36349cb24d2663ce4d6cebece44dd89f0c5cefdc56c3a8cc16d81f83

See more details on using hashes here.

Provenance

The following attestation bundles were made for miraie_ac_in-1.0.5.tar.gz:

Publisher: publish.yml on selvakk2k/miraie-ac-in

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file miraie_ac_in-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: miraie_ac_in-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for miraie_ac_in-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fd3e6f60ac90adafd5afdce95796ead3d20f3ba1fd6c01383cdfdbada9005148
MD5 e5cb5bb7f1e8f466d4a22be402cfadbd
BLAKE2b-256 59ab2fd6cd1d7093105797a61cb9a6dda97b12371e29a7d72baae6b5d790aa84

See more details on using hashes here.

Provenance

The following attestation bundles were made for miraie_ac_in-1.0.5-py3-none-any.whl:

Publisher: publish.yml on selvakk2k/miraie-ac-in

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page