Skip to main content

HomeWizard Cloud

Async Python library for the HomeWizard Cloud API — stream your P1 meter from the cloud over WebSocket. No local device access needed.

Based on the cloud API research by Sven Serlier and the implementation in jtebbens/com.homewizard.

Install

pip install homewizard-cloud

Usage

import asyncio
from homewizard_cloud import HomeWizardCloudClient


async def main():
    client = HomeWizardCloudClient(email="you@example.com", password="secret")
    await client.authenticate()

    # Find your P1 dongle
    for device in await client.get_p1_devices():
        print(device.device_id, device.name)

    # Stream live data
    await client.listen(
        "p1dongle/5c2faf3c6a8a",
        on_state=lambda device_id, state: print("state:", state["active_power_w"]),
        on_realtime=lambda m: print("live wattage:", m.wattage),
    )


asyncio.run(main())

How it works

  1. Auth — GET api.homewizardeasyonline.com/v1/auth/account/token with HTTP Basic auth (email:password) returns an access token.
  2. Discovery — GET homes.api.homewizard.com/locations lists your homes and P1 devices (type == "p1dongle", id like p1dongle/5c2faf3c6a8a).
  3. State stream — wss://energy-app-ws.homewizard.com/ws/ sends a hello message (masquerading as the Android energy app, which the server requires), then subscribe_device. Full p1dongle states and json_patch deltas follow.
  4. Realtime stream — wss://tsdb-reader.homewizard.com/devices/date/now pushes second-by-second wattage.

Both streams auto-reconnect and the token is refreshed when the server rejects it.

Development

pip install -e ".[dev]"
pytest
ruff check src tests

Metadata

Release files for homewizard-cloud 1.0.3

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

Source distribution (sdist)

Source distribution for homewizard-cloud 1.0.3
File Size Uploaded Provenance
homewizard_cloud-1.0.3.tar.gz 10.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for homewizard-cloud 1.0.3
File Interpreter ABI Platform
homewizard_cloud-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 21.4 kB

Release files / homewizard_cloud-1.0.3.tar.gz

Download URL homewizard_cloud-1.0.3.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
477c5a926b8e0fc22a6562cf8fef5269b51d0653606b51abb6ebe3547ab57265
BLAKE2b-256 checksum
How to use checksums
fbb4930c6c3647a8211142d876af597d6bb77c4cd85547db4fbfd4d517de963b
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 Oct 19, 2026.

Transparency log

Release files / homewizard_cloud-1.0.3-py3-none-any.whl

Download URL homewizard_cloud-1.0.3-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6718a49bcb1d51edbf20062cbbe3c50313e63c8ea6e0b6eb0e007fe3febd5ff6
BLAKE2b-256 checksum
How to use checksums
eec2172d49775db9648efa33f2cb9d7e8bd561732fe9aad69492d4d086575063
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 Oct 19, 2026.

Transparency log

Security for homewizard-cloud 1.0.3

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for homewizard_cloud-1.0.3.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 Oct 19, 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.

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