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.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for advantage_air-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc3e78390a732092dc3abbce543fd0bcc02ec40b7ef1b6023a0029566a916265 |
|
MD5 | 141f7a01f4520a497a62aeb3ba48099b |
|
BLAKE2b-256 | fd322e097ddccaa05e39cf6ffd2a9b27fdd3f04b33758b3f97d63910afbd257f |