Catalog PyPI
PACKAGE EXPLORERView in registry

aioaquarea

PyPI

Asynchronous library to control Panasonic Aquarea devices

Versions collected1
Direct dependencies3From release 1.0.7
Last observed21 Oct, 11:37 UTC

README

Version 1.0.7 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.77 May 20263

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
cjaliaga/aioaquarea

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:37 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0174601b35bbe602b2e181dd45c8862008c8c6f33472b02631cdad6ddcb0f587