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.0.9.tar.gz (8.3 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.0.9-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for miraie_ac-1.0.9.tar.gz
Algorithm Hash digest
SHA256 e80306007588be5401c6ab190825ecf4d780692c88021303a3604247ceefb057
MD5 69ba453bdbdf59624b449a2b496820fe
BLAKE2b-256 8fc6766d979ba6f2a4ece7db12c4b0d95e6caceed6abc020854c1a9f418a274d

See more details on using hashes here.

Provenance

The following attestation bundles were made for miraie_ac-1.0.9.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.0.9-py3-none-any.whl.

File metadata

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

File hashes

Hashes for miraie_ac-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6b5d48f217e092f694e797b2e69e2f3fa20996399fb45bf01175055614435960
MD5 364dbfd31d3194b9ad845e37dd577614
BLAKE2b-256 fb52ac054a93528a2816aef62c31cba09ae94fdeb3d704bc3a29a40dc05377db

See more details on using hashes here.

Provenance

The following attestation bundles were made for miraie_ac-1.0.9-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