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.1

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.1
File Size Uploaded Provenance Actions
python_homewizard_energy-10.4.1.tar.gz 20.7 kB Without provenance Details for python_homewizard_energy-10.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 45.6 kB

Release files / python_homewizard_energy-10.4.1.tar.gz

Download URL python_homewizard_energy-10.4.1.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
261cf7604bcb09ce609f184821df5c8ad913958edc7c5b1c05ab8f112d504cdd
BLAKE2b-256 checksum
How to use checksums
deb56742ed068d42dbb3b71f64f20315b5c8d3c5e64b6dcb046c03dfc0dc05e9
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.1-py3-none-any.whl

Download URL python_homewizard_energy-10.4.1-py3-none-any.whl
Size 24.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e428791e600f5305b9fe0f072e515004099b900839fa276f2bf4b8fe2ebb056c
BLAKE2b-256 checksum
How to use checksums
47cb55ef84db167e7963d6ef43067ad19ba14487ab604289ba358831900d23ab
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.1

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.1 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