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 hashes)
Built Distribution
Close
Hashes for advantage_air-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f831bdb8e39843f9105b25da02d494ed79b35ea51c4820bd1c69d2b8440824f |
|
MD5 | f44da3b20de327a70a57c4dfb687dd0e |
|
BLAKE2b-256 | d9391ca8897bb3750f187900e52df188043eb66eb9a1df8597829a234866757f |