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.3.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.3.0
File Size Uploaded Provenance Actions
python_homewizard_energy-10.3.0.tar.gz 18.8 kB Without provenance Details for python_homewizard_energy-10.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 41.3 kB

Release files / python_homewizard_energy-10.3.0.tar.gz

Download URL python_homewizard_energy-10.3.0.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fd76b303f0f2b4cbf6d37743f25f66efe9cdc2833f6f55f4665b49295b994fed
BLAKE2b-256 checksum
How to use checksums
c4337751a4b2dd43872178d94fce5f248a8b31e08e78fff85f2d0c5f36852850
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-1019-azure

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

Download URL python_homewizard_energy-10.3.0-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f54564a6567744b8516888f88a7d8849aa37326c17e77d7074edc78e1d8c094
BLAKE2b-256 checksum
How to use checksums
02b3f2301abbb1921af4a46ddaae1db5fd38e275b0471c469fec260ffe093f28
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-1019-azure

Security for python-homewizard-energy 10.3.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.3.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