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.
Release files for aioaquarea 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aioaquarea-1.0.7.tar.gz | 27.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aioaquarea-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.7 kB
Release files / aioaquarea-1.0.7.tar.gz
| Download URL | aioaquarea-1.0.7.tar.gz |
|---|---|
| Size | 27.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3658a8e599a14bf3e77009cf74af3ef970505f9a78ee4cb029a3e8875e66eecb
|
|
BLAKE2b-256 checksum How to use checksums |
fbd53b1621bd5ffa62eaba6b005fba6667caae94d6779a462be48b74dd426eba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / aioaquarea-1.0.7-py3-none-any.whl
| Download URL | aioaquarea-1.0.7-py3-none-any.whl |
|---|---|
| Size | 32.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
237635e8aaaed7559e946a308258a91e1690332be244fae9ceac64d491418ae5
|
|
BLAKE2b-256 checksum How to use checksums |
0cae3b0deacfeb5ff8b54970569f782c08f4f6a81c4e33f5a600016a93bca643
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|