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.0.tar.gz (9.5 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.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: homewizard_cloud-1.0.0.tar.gz
  • Upload date:
  • Size: 9.5 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.0.tar.gz
Algorithm Hash digest
SHA256 e177879a82fd4a42a970d6bee4b88e988ce4b1d70dceace7786a39807c182515
MD5 6796dbe9743c18a30de1b30445759d3a
BLAKE2b-256 fba5f69b9cc2d6d7bffd55ef8c456e880b9d5072d9a9f8cf24de98dad46fb871

See more details on using hashes here.

Provenance

The following attestation bundles were made for homewizard_cloud-1.0.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for homewizard_cloud-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f984d8067c709ba2135cd7627fef57d43a0f3329b583e319a19e55bcef1140a8
MD5 6176fccacccee1cfbf767867eefb57c8
BLAKE2b-256 c6fbcf350e53d0abbfac65524bfd0f75363fbfa94ae2ee01c404dc6d2c9777ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for homewizard_cloud-1.0.0-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

1.0.1

2 files

This release

1.0.0 This release

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