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_update_ac(ac: str, data: dict)
Update values on the AC system
aircon.async_update_zone(ac: str, zone: str, data: dict)
Update values on a specific zone
lights.async_update_state(id: str, state: str|bool)
Update the state of a light. off|false = off, on|true = on
lights.async_update_value(id: str, value: int)
Update the brightness of a light, and assumes 0 is off.
things.async_update_value(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
import asyncio
import aiohttp
from advantage_air import advantage_air
async def main():
async with aiohttp.ClientSession() as session:
aa = advantage_air("192.168.1.24", port=2025, session=session, retry=5)
if data := await aa.async_get(1):
print(data)
aa.aircon.async_update_ac("ac1",{"state": "on"})
await asyncio.gather(
aa.aircon.async_update_zone("ac1","z01", {"value": 25}),
aa.aircon.async_update_zone("ac1","z02", {"value": 50}),
)
asyncio.run(main())
Release files for advantage-air 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| advantage_air-0.4.4.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| advantage_air-0.4.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / advantage_air-0.4.4.tar.gz
| Download URL | advantage_air-0.4.4.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2b451f48c731f912261f5b35987b20b0a0b0762deb415721fb2f79e4be9fa00
|
|
BLAKE2b-256 checksum How to use checksums |
eb5d4d51418e4b50deb663dae00cf2efaccb78d54720d5218b950a237057c8cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / advantage_air-0.4.4-py3-none-any.whl
| Download URL | advantage_air-0.4.4-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d271204270758efd5419764ab1950360c6821241cab5f7e687fb1822bc6ae2e
|
|
BLAKE2b-256 checksum How to use checksums |
e693d3eaf75e98a169cc72f93fea916ecec2e34d6042ef6aeeb1c7e524b9f622
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|