Flipkart-MirAIe-AC API for Python
Project description
Flipkart MirAIe API for Python
Installation
pip install flipkart-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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file flipkart_miraie_ac-0.0.1.tar.gz.
File metadata
- Download URL: flipkart_miraie_ac-0.0.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31104658e49defaa639698aa45c55ea1ec6b8535e86bf24270a106f2e0dc101c
|
|
| MD5 |
64d6e945d15eb0065b23c3ce1442faa6
|
|
| BLAKE2b-256 |
024ddf7637d97bb2a00f00f422fb0cb1077982cfe7820795cbb7e8a2d2f6c709
|