Advantage Air API Wrapper
Returns the current state of all components.
async_get()
Change attributes by sending the updated values to the relevant endpoint.
Update values on the AC system
Update values on a specific zone
Update the state of a light. off|false = off, on|true = on
Update the brightness of a light, and assumes 0 is off.
Update the value of a thing. 0|false = off, 100|true = on
Directly update with data to the endpoint.
```{.python} import asyncio import aiohttp from advantageair import advantageair
async def main(): async with aiohttp.ClientSession() as session: aa = advantageair("192.168.1.24", port=2025, session=session, retry=5) if data := await aa.asyncget(1): print(data) aa.aircon.asyncupdateac("ac1",{"state": "on"}) await asyncio.gather( aa.aircon.asyncupdatezone("ac1","z01", {"value": 25}), aa.aircon.asyncupdatezone("ac1","z02", {"value": 50}), )
asyncio.run(main()) ```