Electrolux OneApp OCP API
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
py-electrolux-ocp
New details on API
Looks like electrolux finally opened their api, will be rewriting this wrapper to reference their api directly (remove reverse engineered api) https://developer.electrolux.one/documentation/reference
What is this
Python package wrapper around Electrolux OneApp (OCP) api
Early version, this package APIs might change
Prerequisites
pip install pyelectroluxocp
Usage examples
Example to connect via websockets and listen for appliance state changes
import asyncio
import json
from pyelectroluxocp import OneAppApi
async def main():
async with OneAppApi("__username__", "__password__", "fr") as client:
appliances = await client.get_appliances_list()
print("appliances found: ", json.dumps([x.get("applianceData").get("applianceName")+" "+x.get("applianceId") for x in appliances]))
def state_update_callback(a):
print("appliance state updated", json.dumps((a)))
await client.watch_for_appliance_state_updates([appliances[0].get("applianceId")], state_update_callback)
asyncio.run(main())
TODOs
- Better error messages on known scenarios (login failed)
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 pyelectroluxocp-0.1.3.tar.gz.
File metadata
- Download URL: pyelectroluxocp-0.1.3.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cebf2f306814d51aaaa47ac0792bac27ac79c12d7017bf522c1ebcc1ced40209
|
|
| MD5 |
f485dbb3c29602d9ba17bb01dd78253e
|
|
| BLAKE2b-256 |
bcd4a950cad66ac5d819ac6a07b3fa689dd400a0abc690d1303850579a71f9f0
|
Provenance
The following attestation bundles were made for pyelectroluxocp-0.1.3.tar.gz:
Publisher:
publish-workflow.yml on Woyken/py-electrolux-ocp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyelectroluxocp-0.1.3.tar.gz -
Subject digest:
cebf2f306814d51aaaa47ac0792bac27ac79c12d7017bf522c1ebcc1ced40209 - Sigstore transparency entry: 206947269
- Sigstore integration time:
-
Permalink:
Woyken/py-electrolux-ocp@727b8fd2a0dca58d2c4cbb261978b40d3aa810d7 -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/Woyken
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-workflow.yml@727b8fd2a0dca58d2c4cbb261978b40d3aa810d7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyelectroluxocp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pyelectroluxocp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6a850a0cded9a5a3b281442446aa970db5d839c43d4d3096ea5387f400b0e12
|
|
| MD5 |
14001b2d6b995ac9fef8ffbe6f84020e
|
|
| BLAKE2b-256 |
26b85a7c87369f0b6a7f6899478938cfa04733c621be765e39533c7fc64415d1
|
Provenance
The following attestation bundles were made for pyelectroluxocp-0.1.3-py3-none-any.whl:
Publisher:
publish-workflow.yml on Woyken/py-electrolux-ocp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyelectroluxocp-0.1.3-py3-none-any.whl -
Subject digest:
c6a850a0cded9a5a3b281442446aa970db5d839c43d4d3096ea5387f400b0e12 - Sigstore transparency entry: 206947273
- Sigstore integration time:
-
Permalink:
Woyken/py-electrolux-ocp@727b8fd2a0dca58d2c4cbb261978b40d3aa810d7 -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/Woyken
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-workflow.yml@727b8fd2a0dca58d2c4cbb261978b40d3aa810d7 -
Trigger Event:
push
-
Statement type: