Skip to main content

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


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)

Uploaded Source

Built Distribution

pyelectroluxocp-0.0.19-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

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

Hashes for pyelectroluxocp-0.0.19.tar.gz
Algorithm Hash digest
SHA256 8116a0d6ca993542d897ae2e0a8ded6fc7ce0a499d5afc3a6352a512cad9c399
MD5 68a267a9fa344bbe4b8bcae23f7f5627
BLAKE2b-256 003f434a4831de76fd5387bc131cd4681d5cffea2adf6017cd8dad58ab516c34

See more details on using hashes here.

File details

Details for the file pyelectroluxocp-0.0.19-py3-none-any.whl.

File metadata

File hashes

Hashes for pyelectroluxocp-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 516a4262215ecf7d87f34741ef4dd318d5281913e94937e312146854c32d975d
MD5 befc636210beaf87e21539aa8b694c8e
BLAKE2b-256 f76ea1f05d1829b13297d35640214a4839f760420eac9dfc813743f575d9907f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page