This is a Python client for the Electrolux Group API. It is a simple wrapper around the API.
Project description
Work in progress
Electrolux Group API Client
This is a Python client for the Electrolux Group API. It is a simple wrapper around the API, which allows you to interact with the API in a more Pythonic way.
Installation
Use poetry install --extras cli to install dependencies for CLI and the library itself.
Documentation
See the API Usage Guide for information on how to interact with the API, fetch appliances, and consume the Server-Sent Events (SSE) live stream.
Usage
usage: cli.py [-h] -k API_KEY -t ACCESS_TOKEN -r REFRESH_TOKEN {list,command} ...
positional arguments:
{login,list,command}
options:
-h, --help show this help message and exit
Authentication
Before being able to use the CLI, you'll need to provide access token, refresh token and API key. All of these can be obtained using the developer dashboard.
To store credentials locally, use the login command:
poetry run python3 src/cli.py login -k $API_KEY -t $ACCESS_TOKEN -r $REFRESH_TOKEN
Listing devices
To list all devices, use the list command:
poetry run python3 src/cli.py list
Sending commands
Commands to be sent must be proper JSON.
You can use the list command described above to find appliance IDs and commands that will be accepted by the appliance.
For example, to change the fan speed for an air purifier you can use the following commands:
poetry run python3 src/cli.py command -d $APPLIANCE_ID -c '{"Workmode": "Manual"}'
poetry run python3 src/cli.py command -d $APPLIANCE_ID -c '{"Fanspeed": 3}'
and to switch it to automatic mode you can use
poetry run python3 src/cli.py command -d $APPLIANCE_ID -c '{"Workmode": "Auto"}'
Disclaimer
This client is not officially supported by Electrolux Group. It is a community project, and it is not guaranteed to be up-to-date with the latest changes in the API.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyelectroluxgroup-0.2.7.tar.gz.
File metadata
- Download URL: pyelectroluxgroup-0.2.7.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f341154eca1997a8c383369e767248ce89f82d8d7f816c9bfc98ea087c74063f
|
|
| MD5 |
f8da48fe8ea4f263f42a2c830c4f43b7
|
|
| BLAKE2b-256 |
4a89c37559deac82dc7e721508291a9a5d9075be20866f761e2df41bfb076b04
|
Provenance
The following attestation bundles were made for pyelectroluxgroup-0.2.7.tar.gz:
Publisher:
publish.yml on JohNan/pyelectroluxgroup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyelectroluxgroup-0.2.7.tar.gz -
Subject digest:
f341154eca1997a8c383369e767248ce89f82d8d7f816c9bfc98ea087c74063f - Sigstore transparency entry: 1201470801
- Sigstore integration time:
-
Permalink:
JohNan/pyelectroluxgroup@2b0e51e4ed00b3c39a6f9e799162c3f3b77ec4c5 -
Branch / Tag:
refs/tags/v0.2.7 - Owner: https://github.com/JohNan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2b0e51e4ed00b3c39a6f9e799162c3f3b77ec4c5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyelectroluxgroup-0.2.7-py3-none-any.whl.
File metadata
- Download URL: pyelectroluxgroup-0.2.7-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d843b64862d3600b9c305254acdf22bb050d1a065ec75a16f9266f9e899bd4a8
|
|
| MD5 |
2585f674f4c9bcb415630c38d96ad18f
|
|
| BLAKE2b-256 |
e9634d231479bc5d88c0c97031db66598e6fb3841191830c16b451feda32e047
|
Provenance
The following attestation bundles were made for pyelectroluxgroup-0.2.7-py3-none-any.whl:
Publisher:
publish.yml on JohNan/pyelectroluxgroup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyelectroluxgroup-0.2.7-py3-none-any.whl -
Subject digest:
d843b64862d3600b9c305254acdf22bb050d1a065ec75a16f9266f9e899bd4a8 - Sigstore transparency entry: 1201470804
- Sigstore integration time:
-
Permalink:
JohNan/pyelectroluxgroup@2b0e51e4ed00b3c39a6f9e799162c3f3b77ec4c5 -
Branch / Tag:
refs/tags/v0.2.7 - Owner: https://github.com/JohNan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2b0e51e4ed00b3c39a6f9e799162c3f3b77ec4c5 -
Trigger Event:
release
-
Statement type: