Electrolux OneApp OCP API
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__") 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
pyelectroluxocp-0.0.19.tar.gz
(15.4 kB
view details)
Built Distribution
File details
Details for the file pyelectroluxocp-0.0.19.tar.gz
.
File metadata
- Download URL: pyelectroluxocp-0.0.19.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8116a0d6ca993542d897ae2e0a8ded6fc7ce0a499d5afc3a6352a512cad9c399 |
|
MD5 | 68a267a9fa344bbe4b8bcae23f7f5627 |
|
BLAKE2b-256 | 003f434a4831de76fd5387bc131cd4681d5cffea2adf6017cd8dad58ab516c34 |
File details
Details for the file pyelectroluxocp-0.0.19-py3-none-any.whl
.
File metadata
- Download URL: pyelectroluxocp-0.0.19-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 516a4262215ecf7d87f34741ef4dd318d5281913e94937e312146854c32d975d |
|
MD5 | befc636210beaf87e21539aa8b694c8e |
|
BLAKE2b-256 | f76ea1f05d1829b13297d35640214a4839f760420eac9dfc813743f575d9907f |