Metadata-Version: 2.1
Name: enedisgatewaypy
Version: 1.2.4
Summary: Fetch Linky data from enedisgateway.tech
Home-page: https://github.com/cyr-ius/enedisgatewaypy/tree/master/enedisgatewaypy
Author: cyr-ius
Author-email: cyr-ius@ipocus.net
License: GPL-3
Keywords: enedis linky async
Classifier: Programming Language :: Python
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Topic :: Home Automation
Description-Content-Type: text/markdown
License-File: LICENSE

# enedisgatewaypy
FEtch date Enedis Linky from enedisgateway.tch

Check your config, enable or disable heater, change preset mode.

Install
-------
Use the PIP package manager
```bash
$ pip install enedisgatewaypy
```

Or manually download and install the last version from github
```bash
$ git clone https://github.com/cyr-ius/enedisgatewaypy.git
$ python setup.py install
```
Get started
-----------
```python
# Import the enedisgatewaypy package.
from enedisgatewaypy import EnedisGatewayClient

async def main():
    api = EnedisGatewayClient("pdl", "token")
    devices = await api.async_get_devices()
    for device in devices:
        name = device.get("dev_alias")
        data = await api.async_get_device(device["did"])
        mode = data.get("attr").get("mode")
        logger.info("Heater : {} , mode : {}".format(name, mode))
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```
Have a look at the [example.py](https://github.com/cyr-ius/heatzypy/blob/master/example.py) for a more complete overview.

Notes on HTTPS
--------------
Not implemented
