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.2.4.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

enedisgatewaypy-1.2.4-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file enedisgatewaypy-1.2.4.tar.gz.

File metadata

  • Download URL: enedisgatewaypy-1.2.4.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for enedisgatewaypy-1.2.4.tar.gz
Algorithm Hash digest
SHA256 244aae3a27c9339efec43a64e20e3c277670a376196da53e78c759a6d4965eaf
MD5 b75435be10d348e46ba0e00c2439bd8d
BLAKE2b-256 c8bd29bc76dafeff39bc3ad3aa8862d2e71b284cf0efe4ca942d76524cd60db1

See more details on using hashes here.

File details

Details for the file enedisgatewaypy-1.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for enedisgatewaypy-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e3195ef90cb344c3870c5e245011c67dfe642346da0e750a1eea9cf913ca1557
MD5 4bd70e8c79690403ae65099db85d7382
BLAKE2b-256 10c0d65702dbe6c4d16d6e98343197b567a913912d12337c9e35966746dbe676

See more details on using hashes here.

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