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.
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
await api.state(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.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_homewizard_energy-10.2.0.tar.gz | 18.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_homewizard_energy-10.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.7 kB
Release files / python_homewizard_energy-10.2.0.tar.gz
| Download URL | python_homewizard_energy-10.2.0.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
074af85ee4e874d1f016d495e16a504653f6be0c73d7019299e24b563d55cab4
|
|
BLAKE2b-256 checksum How to use checksums |
72424336224d27d462460492fb527c715915ccb001f29f447e2d49738420b121
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.4 CPython/3.13.13 Linux/6.17.0-1013-azure
|
Release files / python_homewizard_energy-10.2.0-py3-none-any.whl
| Download URL | python_homewizard_energy-10.2.0-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea818f846e9a3b921aed1cacf48fc38bf35e1a234992f02e0dbea17da936a209
|
|
BLAKE2b-256 checksum How to use checksums |
d32e98c89d52394472ddee000740ac91a53352b72830a277eebd0bdff5b588a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.4 CPython/3.13.13 Linux/6.17.0-1013-azure
|