Skip to main content

Async Python client for the Hayward Aquarite pool API

Project description

aioaquarite

Async Python client for the Hayward Aquarite pool API.

This library provides a standalone API client for interacting with Hayward Aquarite pool equipment via the Hayward cloud service. It is designed to be used as the backend for the Home Assistant Aquarite integration.

Installation

pip install aioaquarite

Usage

import aiohttp
from aioaquarite import AquariteAuth, AquariteClient

async with aiohttp.ClientSession() as session:
    # Authenticate
    auth = AquariteAuth(session, "user@example.com", "password")
    await auth.authenticate()

    # Create client
    client = AquariteClient(auth)

    # List pools
    pools = await client.get_pools()

    # Fetch pool data
    for pool_id, pool_name in pools.items():
        data = await client.fetch_pool_data(pool_id)
        temperature = AquariteClient.get_value(data, "main.temperature")
        print(f"{pool_name}: {temperature}°C")

    # Subscribe to real-time updates
    def on_update(data):
        print("Pool updated:", data.get("main", {}).get("temperature"))

    watch = await client.subscribe_pool(pool_id, on_update)

    # Set a value
    await client.set_value(pool_id, "filtration.mode", 1)

    # Cleanup
    watch.unsubscribe()

License

MIT

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

aioaquarite-0.2.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aioaquarite-0.2.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file aioaquarite-0.2.0.tar.gz.

File metadata

  • Download URL: aioaquarite-0.2.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aioaquarite-0.2.0.tar.gz
Algorithm Hash digest
SHA256 84319afdae0f0a20ab884a4cef8cb4dd12d7877256a92f4bb5d9e6c4158c2339
MD5 b333278866e6e4ccecb98d3fb3133b7c
BLAKE2b-256 864c57b9eae1203e150294436f98c6a07df678c158a685f6145c6dafa2723e65

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioaquarite-0.2.0.tar.gz:

Publisher: publish.yml on fdebrus/aioaquarite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aioaquarite-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: aioaquarite-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aioaquarite-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d585e8e6c533feb10b7ed6adf3a08a07392592500e461fe352dbee7c8fb1c671
MD5 f2adbb28d9ef67551875f44a89b82007
BLAKE2b-256 766e4c9f6828f4d5b2ef42277e722ed67d9a4ad5696dd227619c2ebcd53e45f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioaquarite-0.2.0-py3-none-any.whl:

Publisher: publish.yml on fdebrus/aioaquarite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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