Skip to main content

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


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 details)

Uploaded Source

Built Distribution

advantage_air-0.4.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file advantage_air-0.4.1.tar.gz.

File metadata

  • Download URL: advantage_air-0.4.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for advantage_air-0.4.1.tar.gz
Algorithm Hash digest
SHA256 23d1cc0cb657f7128326e61203078cdabe2fdd929ebc74e7e5d1d363137712e1
MD5 227eea61896d424b86fc7f856ccd19b9
BLAKE2b-256 337b8a62a61203c01fbf8a993a63896e09cd206803282155a2954e17b24dd2b7

See more details on using hashes here.

File details

Details for the file advantage_air-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for advantage_air-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07a5942154572e3d72b15b7cd68d6ad6b3382640aca51415746862ef45b53953
MD5 35df9ea2081552301ae0d1ac18f05a83
BLAKE2b-256 4ff316cc9c7be774b3c96f7f64a108dd8edaa2a9a8bd2c0a643154419148559b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page