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.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for advantage_air-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07a5942154572e3d72b15b7cd68d6ad6b3382640aca51415746862ef45b53953 |
|
MD5 | 35df9ea2081552301ae0d1ac18f05a83 |
|
BLAKE2b-256 | 4ff316cc9c7be774b3c96f7f64a108dd8edaa2a9a8bd2c0a643154419148559b |