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-0.1.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-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: homewizard_cloud-0.1.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-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0a69388c394c25e14112d6adab8efadb928b8aa59bee6d1f36918b33dd7e58f
MD5 60c0eb0e29164ffeb92d2c177ce05c34
BLAKE2b-256 fbcc50ecdeac04ee23eae095c03ac6b0e4371f77a894570da79b7b7bd1512977

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for homewizard_cloud-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f07bf4ff594efd25dd895eca8e137aa5d1eef62dcbfb5927f2f03991957f64fe
MD5 f0902c399f1fb2eb4492d4ff4c58fb6b
BLAKE2b-256 31f7ce1ea8a898ea2974d238bb0f2d7dddaa69ab732f2260b7e1e18f54a5a850

See more details on using hashes here.

Provenance

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

1.0.0

2 files

This release

0.1.0 This release

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