Asyncio package to communicate with a HomeWizard Energy Device.
Project description
AIOHWENERGY
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.
Disclaimer
This package is not developed, nor supported by HomeWizard.
Installation
python3 -m pip install aiohwenergy
Usage
Instantiate the HWEnergy class and access the API.
For more details on the API see the official API documentation on https://energy.homewizard.net/en/support/solutions/articles/19000117051-homewizard-p1-meter-local-api-beta-
Example
The example below is available as a runnable script in the repository.
from aiohwenergy import HomeWizardEnergy
# Make contact with a energy device
device = HomeWizardEnergy(args.host)
# Update device value
await device.update()
# Use the data
print(device.device.product_name)
print(device.device.serial)
print(device.data.wifi_ssid)
# Close connection
await device.close()
Credits
Thanks to @mvdwetering (https://github.com/mvdwetering/aiohuesyncbox) for having a good example ready for talking with a local API.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for aiohwenergy-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71ace5b30398ab70c31ba93ffbabbcb8b08a239022c0cb2aa539edc5161ecbd6 |
|
MD5 | 58ceca5842548b80b9f5e14799dbacaa |
|
BLAKE2b-256 | 9a281a70539c1572c3b5145dead95dbfac9f9d120db76e3e48e2944c4ef0c825 |