Skip to main content

Fetch Linky data from enedisgateway.tech

Project description

enedisgatewaypy

FEtch date Enedis Linky from enedisgateway.tch

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

Install

Use the PIP package manager

$ pip install enedisgatewaypy

Or manually download and install the last version from github

$ git clone https://github.com/cyr-ius/enedisgatewaypy.git
$ python setup.py install

Get started

# 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 for a more complete overview.

Notes on HTTPS

Not implemented

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enedisgatewaypy-1.3.tar.gz (16.3 kB view hashes)

Uploaded Source

Built Distribution

enedisgatewaypy-1.3-py3-none-any.whl (16.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page