Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

HomeConnect Websocket

Control HomeConnect Appliances through a local Websocket connection.

Authentication and Device Description

To connect to an Appliance, you need its encryption keys and the description of its features and options. The Appliance uses either TLS PSK or AES encryption, AES requiring an additional Initialization Vector (IV). Both Key and IV are send to Home Connect cloud servers on setup. To get the keys and description from the cloud use the Home Connect Profile Downloader tool.

For each registered Appliance, the downloaded zip-file contains three files named with the Appliance serial number:

  • [serialNumber].json: Contains information about the Appliance including encryption keys. The connectionType field indicates if the Appliance uses PSK or AES encryption. When the connection type is "AES" the Appliance uses AES Encryption and requires the IV.
  • [serialNumber]_DeviceDescription.xml and [serialNumber]_FeatureMapping.xml: Contains the Device Description, see below

Parsing Device Description

import json
from pathlib import Path

from homeconnect_websocket import parse_device_description

# Load Description from File
with Path("[serialNumber]_DeviceDescription.xml").open() as file:
    DeviceDescription = file.read()

with Path("[serialNumber]_FeatureMapping.xml").open() as file:
    FeatureMapping = file.read()

description = parse_device_description(DeviceDescription, FeatureMapping)

# Save Description to File for later use
with Path("DeviceDescription.json").open(mode='w') as file:
    json.dump(description, file)

Its best to save the parsed description as a json File to reuse later.

Connecting

import asyncio
import json

from homeconnect_websocket import DeviceDescription, HomeAppliance


async def main(description: DeviceDescription) -> None:
    app_name = "Example App"  # Name of your App, can be anything
    app_id = "d50661eca7e45a"  # ID of your App, can be anything
    psk64 = "whZJhkPa3a1hkuDdI3twHdqi1qhTxjnKE8954_zyY_E="  # PSK Key
    # iv64 = "ofi7M1WB98sJeM2H1Ew3XA==" # IV for Appliances with AES Encryption

    appliance = HomeAppliance(
        description,
        "192.168.1.2",
        app_name,
        app_id,
        psk64=psk64,
        # iv64=iv64
    )
    # Connect to Appliances
    await appliance.connect()

    # Set PowerState to On
    await appliance.settings["BSH.Common.Setting.PowerState"].set_value("On")


if __name__ == "__main__":
    # Load DeviceDescription from File
    with open("DeviceDescription.json", "r") as f:
        description = json.load(f)

    asyncio.run(main(description))

Metadata

Release files for homeconnect-websocket 1.5.5a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for homeconnect-websocket 1.5.5a1
File Size Uploaded Provenance Actions
homeconnect_websocket-1.5.5a1.tar.gz 31.2 kB With provenance Details for homeconnect_websocket-1.5.5a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for homeconnect-websocket 1.5.5a1
File Interpreter ABI Platform Actions
homeconnect_websocket-1.5.5a1-py3-none-any.whl Python 3 none any Details for homeconnect_websocket-1.5.5a1-py3-none-any.whl

Total release size: 59.5 kB

Release files / homeconnect_websocket-1.5.5a1.tar.gz

Download URL homeconnect_websocket-1.5.5a1.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4fff8a0239e0aec6999dbd8667377a369442c38ac8cfc9aa41f102ed87ef77fc
BLAKE2b-256 checksum
How to use checksums
891ed7eae95fc3962dc649fbd3b76896cdbbcf8cf03a31e93a2b09433c299753
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / homeconnect_websocket-1.5.5a1-py3-none-any.whl

Download URL homeconnect_websocket-1.5.5a1-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4b943597655a7248dfccca5c2b595c8e69bc9bc15105db870107fb63cdb4b87
BLAKE2b-256 checksum
How to use checksums
a4ba77e92dfce5b202a03982bf9058721c5ff9ab990ec11aa373a5075e3ed831
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Security for homeconnect-websocket 1.5.5a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for homeconnect_websocket-1.5.5a1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page