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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file miraie_ac-1.1.0.tar.gz.
File metadata
- Download URL: miraie_ac-1.1.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f00618a22a3fabdfd30ae217da3da405a604f42a17eeb0af1fb7c1866226151
|
|
| MD5 |
38c99543ec321a0ec0642bf316dbbf24
|
|
| BLAKE2b-256 |
1bd2418bd9bfce3ed6c1c00cabb32d537269a9add858dd85eef8dc27113b78c5
|
Provenance
The following attestation bundles were made for miraie_ac-1.1.0.tar.gz:
Publisher:
publish.yml on rkzofficial/miraie-ac
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
miraie_ac-1.1.0.tar.gz -
Subject digest:
0f00618a22a3fabdfd30ae217da3da405a604f42a17eeb0af1fb7c1866226151 - Sigstore transparency entry: 185277172
- Sigstore integration time:
-
Permalink:
rkzofficial/miraie-ac@b692fc2ab1e2bb5c9e7364378ccf5a7343f3d3dc -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/rkzofficial
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b692fc2ab1e2bb5c9e7364378ccf5a7343f3d3dc -
Trigger Event:
release
-
Statement type:
File details
Details for the file miraie_ac-1.1.0-py3-none-any.whl.
File metadata
- Download URL: miraie_ac-1.1.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f39dde7157c8438e8d39e9d706a88723919c8576d5788c6539c571ecd373c1aa
|
|
| MD5 |
7667ccf38c189e0cb18d1a2711280558
|
|
| BLAKE2b-256 |
712ce4f530e79e507aa33bd24e0256b5daba6a729070b4c5c7f88c4c545aff86
|
Provenance
The following attestation bundles were made for miraie_ac-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on rkzofficial/miraie-ac
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
miraie_ac-1.1.0-py3-none-any.whl -
Subject digest:
f39dde7157c8438e8d39e9d706a88723919c8576d5788c6539c571ecd373c1aa - Sigstore transparency entry: 185277184
- Sigstore integration time:
-
Permalink:
rkzofficial/miraie-ac@b692fc2ab1e2bb5c9e7364378ccf5a7343f3d3dc -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/rkzofficial
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b692fc2ab1e2bb5c9e7364378ccf5a7343f3d3dc -
Trigger Event:
release
-
Statement type: