API helper for Advantage Air's MyAir and e-zone API
Project description
Advantage Air API Wrapper
Get
Returns the current state of all components.
async_get()
Set
Change attributes by sending the updated values to the relevant endpoint.
aircon.async_set() lights.async_set() things.async_set()
Example
import asyncio
import aiohttp
from advantage_air import advantage_air
async def main():
async with aiohttp.ClientSession() as session:
aa = advantage_air("192.168.100.100",port=2025,session=session,retry=5)
if(await aa.async_get(1)):
print(await aa.aircon.async_get())
print(await aa.async_set({}))
asyncio.run(main())
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
advantage_air-0.4.2.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file advantage_air-0.4.2.tar.gz
.
File metadata
- Download URL: advantage_air-0.4.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dedeae8c19a10d58219c34a62566ffec21ca36cbebe1016c7c8a9de29f011e50 |
|
MD5 | c1af4ed81eb7936d880d842ada4125af |
|
BLAKE2b-256 | 7cf1bcd1ebaebdd08225a8dd099d3a66693fdba0b3f7b71cd2044c034910b59d |
File details
Details for the file advantage_air-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: advantage_air-0.4.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f831bdb8e39843f9105b25da02d494ed79b35ea51c4820bd1c69d2b8440824f |
|
MD5 | f44da3b20de327a70a57c4dfb687dd0e |
|
BLAKE2b-256 | d9391ca8897bb3750f187900e52df188043eb66eb9a1df8597829a234866757f |