You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+56-2
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,63 @@ Aioaquarea
3
3
4
4
Asynchronous library to control Panasonic Aquarea devices
5
5
6
-
> :warning: This library is under development!
6
+
## Requirements
7
7
8
-
Requires Python >= 3.9 and uses asyncio and aiohttp.
8
+
This library requires:
9
+
10
+
- Python >= 3.9
11
+
- asyncio
12
+
- aiohttp
13
+
14
+
## Usage
15
+
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](https://github.com/cjaliaga/home-assistant-aquarea)
16
+
17
+
Here is a simple example of how to use the library via getting a device object to interact with it:
18
+
19
+
```python
20
+
from aioaquarea import (
21
+
Client,
22
+
AquareaEnvironment,
23
+
UpdateOperationMode
24
+
)
25
+
26
+
import aiohttp
27
+
import asyncio
28
+
import logging
29
+
from datetime import timedelta
30
+
31
+
asyncdefmain():
32
+
asyncwith aiohttp.ClientSession() as session:
33
+
client = Client(
34
+
username="USERNAME",
35
+
password="PASSWORD",
36
+
session=session,
37
+
device_direct=True,
38
+
refresh_login=True,
39
+
environment=AquareaEnvironment.PRODUCTION,
40
+
)
41
+
42
+
# The library is designed to retrieve a device object and interact with it:
0 commit comments