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. AuthGET api.homewizardeasyonline.com/v1/auth/account/token with HTTP Basic auth (email:password) returns an access token.
  2. DiscoveryGET homes.api.homewizard.com/locations lists your homes and P1 devices (type == "p1dongle", id like p1dongle/5c2faf3c6a8a).
  3. State streamwss://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 streamwss://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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

homewizard_cloud-1.0.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

homewizard_cloud-1.0.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file homewizard_cloud-1.0.1.tar.gz.

File metadata

  • Download URL: homewizard_cloud-1.0.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for homewizard_cloud-1.0.1.tar.gz
Algorithm Hash digest
SHA256 27fa4f894b91d6594b3ec310beb55621fce65cebc212ce4e9f0bbc30edbdc924
MD5 6b6ff9a706e1fca37a7921e761c298fb
BLAKE2b-256 c42c01077eb5c66342ba7a4c37ae381d6d291f1339ecd21a61d0d1e397c7f022

See more details on using hashes here.

Provenance

The following attestation bundles were made for homewizard_cloud-1.0.1.tar.gz:

Publisher: publish.yml on MauroDruwel/homewizard-cloud

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

File details

Details for the file homewizard_cloud-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for homewizard_cloud-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6b277c0a1998d081a977f596f551b8de8762b8d2274adf8a9010cc9728b1d41
MD5 e4599b2dfd6c3f32f58e8691e9924b94
BLAKE2b-256 72306ba93d8630f5154dd72b8c2255f31010cfe58bdce89ef5bc2716f53071fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for homewizard_cloud-1.0.1-py3-none-any.whl:

Publisher: publish.yml on MauroDruwel/homewizard-cloud

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

Release history Release notifications | RSS feed

1.0.2

2 files

This release

1.0.1 This release

2 files

1.0.0

2 files

0.1.0

2 files

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