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__", "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


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.1.3.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

pyelectroluxocp-0.1.3-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

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

Hashes for pyelectroluxocp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cebf2f306814d51aaaa47ac0792bac27ac79c12d7017bf522c1ebcc1ced40209
MD5 f485dbb3c29602d9ba17bb01dd78253e
BLAKE2b-256 bcd4a950cad66ac5d819ac6a07b3fa689dd400a0abc690d1303850579a71f9f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyelectroluxocp-0.1.3.tar.gz:

Publisher: publish-workflow.yml on Woyken/py-electrolux-ocp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pyelectroluxocp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c6a850a0cded9a5a3b281442446aa970db5d839c43d4d3096ea5387f400b0e12
MD5 14001b2d6b995ac9fef8ffbe6f84020e
BLAKE2b-256 26b85a7c87369f0b6a7f6899478938cfa04733c621be765e39533c7fc64415d1

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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