Metadata-Version: 2.1
Name: aiohwenergy
Version: 0.1.1
Summary: Asyncio package to communicate with a HomeWizard Energy Device.
Home-page: https://github.com/DSBCL/aiohwenergy
Author: DCSBL
Author-email: d.sebel@homewizard.nl
License: Apache License 2.0
Keywords: automation
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Classifier: Topic :: Home Automation
Classifier: Topic :: Software Development :: Libraries
Requires-Dist: aiohttp

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
============

.. code-block:: bash

    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

.. code-block:: python

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


