Skip to main content

HomeWizard Energy: python-homewizard-energy

Asyncio package to communicate with HomeWizard Energy devices This package is aimed at basic control of the device. Initial setup and configuration is assumed to done with the official HomeWizard Energy app.

Testing Codecov Release

Usage

Instantiate the HomeWizard class and access the API.

For more details on the API see the API documentation for HomeWizard Energy on https://api-documentation.homewizard.com

Installation

python3 -m pip install python-homewizard-energy

Example

API v1

import asyncio
from homewizard_energy import HomeWizardEnergyV1

IP_ADDRESS = "192.168.1.123"


async def main():

    async with HomeWizardEnergyV1(host=IP_ADDRESS) as api:

        # Get device information, like firmware version
        print(await api.device())

        # Get measurements, like energy or water usage
        measurement = await api.measurement()
        print(measurement.energy_import_kwh)

        # Example of getting raw telegram data
        telegram = await api.telegram()
        print(telegram)  # Raw P1 meter data

        # Get all data and remap v1 data to new v2 structure
        print(await api.combined())

        # Turn on the Energy Socket outlet (works with both v1 and v2 API)
        await api.system(power_on=True)


asyncio.run(main())

Development and contribution

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Requirements

  • Python 3.12 or higher
  • Poetry

Installation and setup

poetry install
poetry shell
pre-commit install

You can now start developing. The pre-commit hooks will run automatically when you commit your changes. Please note that a failed pre-commit hook will prevent you from committing your changes. This is to make sure that the code is formatted correctly and that the tests pass.

Metadata

Release files for python-homewizard-energy 10.4.0

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

Source distribution (sdist)

Source distribution for python-homewizard-energy 10.4.0
File Size Uploaded Provenance Actions
python_homewizard_energy-10.4.0.tar.gz 20.6 kB Without provenance Details for python_homewizard_energy-10.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-homewizard-energy 10.4.0
File Interpreter ABI Platform Actions
python_homewizard_energy-10.4.0-py3-none-any.whl Python 3 none any Details for python_homewizard_energy-10.4.0-py3-none-any.whl

Total release size: 45.2 kB

Release files / python_homewizard_energy-10.4.0.tar.gz

Download URL python_homewizard_energy-10.4.0.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e51f31cf44c82a6cd1cad40e6f37057f3c3ff98a2ae78cbc2ff71aeb9f193262
BLAKE2b-256 checksum
How to use checksums
fdc1c712401ac85ed36a4aeb58a8ec08782b339741ec77880aa2a7d5cd1bd144
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.13.18 Linux/7.0.0-1020-azure

Release files / python_homewizard_energy-10.4.0-py3-none-any.whl

Download URL python_homewizard_energy-10.4.0-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76da03cb429840762a6ea5268197b3d5ce4e6f2231009296d99e73f51bbac7df
BLAKE2b-256 checksum
How to use checksums
7c2d6a6c29a807777174a8b77a17d79ec3f718b83060bf10f568aa9a3562fa3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.13.18 Linux/7.0.0-1020-azure

Security for python-homewizard-energy 10.4.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

10.4.0 This release

2 release files No provenance

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