Skip to main content

MirAIe-AC API for Python

Project description

MirAIe API for Python

Installation

pip install miraie-ac

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: debug
    ...

Notes

List of panasonic ACs

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-1.1.1.tar.gz (9.1 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-1.1.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file miraie_ac-1.1.1.tar.gz.

File metadata

  • Download URL: miraie_ac-1.1.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for miraie_ac-1.1.1.tar.gz
Algorithm Hash digest
SHA256 2224433f3e48703dc37febf0e18bd1df3734a138468dbee90497c3e1df7c87f8
MD5 ce724c8534272b7580f90815aa006faa
BLAKE2b-256 99e8a93c07ba0d539bfad117e3f2bcff6b92c66555d563cd108a3b989a3e4981

See more details on using hashes here.

Provenance

The following attestation bundles were made for miraie_ac-1.1.1.tar.gz:

Publisher: publish.yml on rkzofficial/miraie-ac

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-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: miraie_ac-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for miraie_ac-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da5bdee48c22b36b09aa1fdc11117cf8b92dcd8aa7ac48c732decdfca48d63b6
MD5 6fc2c85133acc90452c7024ccee96be3
BLAKE2b-256 6b4b16254dbb7c9368238df593a2fe82d632966604559776ead3e21b0f983738

See more details on using hashes here.

Provenance

The following attestation bundles were made for miraie_ac-1.1.1-py3-none-any.whl:

Publisher: publish.yml on rkzofficial/miraie-ac

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