CMD + K

advantage-air

Community

Installation

To install this package, run one of the following:

Pip
$pip install -i https://pypi.anaconda.org/home-assistant-deps/simple advantage-air

Usage Tracking

0.4.4
1 / 8 versions selected
Downloads (Last 6 months): 0

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.asyncupdateac(ac: str, data: dict)

Update values on the AC system

aircon.asyncupdatezone(ac: str, zone: str, data: dict)

Update values on a specific zone

lights.asyncupdatestate(id: str, state: str|bool)

Update the state of a light. off|false = off, on|true = on

lights.asyncupdatevalue(id: str, value: int)

Update the brightness of a light, and assumes 0 is off.

things.asyncupdatevalue(id: str, value : int|bool)

Update the value of a thing. 0|false = off, 100|true = on

*.async_update(data: dict)

Directly update with data to the endpoint.

Example

```{.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()) ```

About

Last Updated

May 12, 2025 at 18:22

Supported Platforms

noarch