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.1.0.tar.gz (8.0 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.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aioaquarite-0.1.0.tar.gz
Algorithm Hash digest
SHA256 70a02151e93bea72fef100ad45d36b2d9b83cd96d3a44a31823ad67d1153c1ef
MD5 0b6d4749fa0c28118ff7ec51e300c2de
BLAKE2b-256 5da8cef7a7c03367af5497878c4be46a1a2a6b161f864b430ad9e1e007872e03

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioaquarite-0.1.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.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for aioaquarite-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22c892c1bbb3ad8e1eb238af3085d3821c4272be76a343218b0a659526375638
MD5 8c85123c6708531188fd3dfd4db0fe0d
BLAKE2b-256 8e60b8ef2865fe93dbb802a9b18a8ec91dd1291a0142643e2bf2fbef5eeb4be7

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioaquarite-0.1.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