Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/milothomas/py-miraie-ac
https://github.com/milothomas/py-miraie-ac
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/milothomas/py-miraie-ac
- Owner: milothomas
- License: gpl-3.0
- Created: 2023-06-04T08:35:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-14T15:49:39.000Z (about 1 year ago)
- Last Synced: 2024-11-25T05:37:38.061Z (about 1 month ago)
- Language: Python
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python MirAIe AC API
An API to send commands and read the status of MirAIe air conditioners by Panasonic
**Installation**
```
pip install py-miraie-ac
```**Usage**
```
import asyncio
from api import MirAIeAPI
from enums import AuthType
from device import Deviceasync with MirAIeAPI(
auth_type=AuthType.MOBILE,
login_id="YOUR_MOBILE_NUMBER",
password="YOUR_PASSWORD"
) as api:
await api.initialize()
for device in api.devices:
print("Found device: ", device.friendly_name)
device.set_temperature(24)
device.turn_on()asyncio.get_event_loop().run_until_complete(start())