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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aioaquarea-0.7.2.tar.gz
.
File metadata
- Download URL: aioaquarea-0.7.2.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df9ada324ef5d4cfefeefdf88208ea711b53a5ab9490c1e867a2ec03f9e38bba |
|
MD5 | a7877b054002122815ad396934e27ddd |
|
BLAKE2b-256 | 9b4dcfeae0e75d026c65c7caf838bab3be4bd08600854dbfbe56831132fbf755 |
File details
Details for the file aioaquarea-0.7.2-py3-none-any.whl
.
File metadata
- Download URL: aioaquarea-0.7.2-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92b883786a266a4b8cece5b8b2a30b66d32b055c62f503c68147b27b35e2233d |
|
MD5 | 92c788fa4d0d08d4338c0c47cbc18282 |
|
BLAKE2b-256 | c823d486c194fe58bb8e8b7155b36777e885d9c8a0327da941b3cbd2a60a50be |