Skip to main content
Pre-release

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

Home Disconnect

Control Home Connect Appliances through a local Websocket connection.

Used by homeconnect_local_hass, the Home Assistant integration this library was extracted for.

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 home_disconnect 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 home_disconnect 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 home-disconnect 1.7.0b1

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

Source distribution (sdist)

Source distribution for home-disconnect 1.7.0b1
File Size Uploaded
home_disconnect-1.7.0b1.tar.gz 37.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for home-disconnect 1.7.0b1
File Interpreter ABI Platform
home_disconnect-1.7.0b1-py3-none-any.whl Python 3 none any Details

Total release size: 69.8 kB

Release files / home_disconnect-1.7.0b1.tar.gz

Download URL home_disconnect-1.7.0b1.tar.gz
Size 37.3 kB
Tags Source
SHA-256 checksum
How to use checksums
adf8d92b73e4faf5b0274f1f5196401e3c0194f959cc90cfdf78ea64f3562c86
BLAKE2b-256 checksum
How to use checksums
7e3b601e4d0f85487cd614d4ad4ded0b2499d0f6465e8b5dff7693a4da7a815e
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 18, 2026.

Transparency log

Release files / home_disconnect-1.7.0b1-py3-none-any.whl

Download URL home_disconnect-1.7.0b1-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea19184e73f15debc08f056be0f21dbfd86caef7ae1ef7848f58f22ed7f55388
BLAKE2b-256 checksum
How to use checksums
7bbdf1846eb8d3d888bdccfafca7d9473a44bd69dec2f6283f357b8cb854c82e
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 18, 2026.

Transparency log
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