Skip to main content

Asynchronous library to control Panasonic Aquarea devices

Project description

Aioaquarea

Asynchronous library to control Panasonic Aquarea devices

Requirements

This library requires:

  • Python >= 3.9
  • asyncio
  • aiohttp

Usage

The library supports the production environment of the Panasonic Aquarea Smart Cloud API and also the Demo environment. One of the main usages of this library is to integrate the Panasonic Aquarea Smart Cloud API with Home Assistant via home-assistant-aquarea

Here is a simple example of how to use the library via getting a device object to interact with it:

from aioaquarea import (
    Client,
    AquareaEnvironment,
    UpdateOperationMode
)

import aiohttp
import asyncio
import logging
from datetime import timedelta

async def main():
    async with aiohttp.ClientSession() as session:
        client = Client(
            username="USERNAME",
            password="PASSWORD",
            session=session,
            device_direct=True,
            refresh_login=True,
            environment=AquareaEnvironment.PRODUCTION,
        )

        # The library is designed to retrieve a device object and interact with it:
        devices = await client.get_devices(include_long_id=True)

        # Picking the first device associated with the account:
        device_info = devices[0]

        device = await client.get_device(
            device_info=device_info, consumption_refresh_interval=timedelta(minutes=1)
        )

        # Or the device can also be retrieved by its long id if we know it:
        device = await client.get_device(
            device_id="LONG ID", consumption_refresh_interval=timedelta(minutes=1)
        )

        # Then we can interact with the device:
        await device.set_mode(UpdateOperationMode.HEAT)

        # The device can automatically refresh its data:
        await device.refresh_data()

Acknowledgements

Big thanks to ronhks for his awesome work on the Panasonic Aquaera Smart Cloud integration with MQTT.

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

aioaquarea-1.0.1.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

aioaquarea-1.0.1-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

Details for the file aioaquarea-1.0.1.tar.gz.

File metadata

  • Download URL: aioaquarea-1.0.1.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for aioaquarea-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c7086e81c617d71f4125bf5065dd9574e76cfd2a17910bf8c1e6cb88ade2e68f
MD5 ff3f3b942e2ba7fd4ca7e451e49f7a29
BLAKE2b-256 98f9de7a5259a6f840b9c2fe8fe5f6ce0161d1fb00e08d5a60da85cd562a65f8

See more details on using hashes here.

File details

Details for the file aioaquarea-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: aioaquarea-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 32.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for aioaquarea-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58bba636c7183a50757a2b25285e1e9355869af16d33fac4d9fa61395d34d465
MD5 707e79d9e9ad29b40737b365114620de
BLAKE2b-256 ca2de202c5e88900c09a3944d6f654eb894807f0d95b46ea29d64bfdfb0951a1

See more details on using hashes here.

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