Skip to main content

Fetch Linky data from myelectricaldata.fr

Project description

myelectricaldatapy

Fetch date Enedis Linky from myelectricaldata.fr (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/myelectricaldatapy.git
$ python setup.py install

Get started

# Import the myelectricaldatapy package.
from myelectricaldatapy 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


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

myelectricaldatapy-1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

myelectricaldatapy-1.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file myelectricaldatapy-1.0.tar.gz.

File metadata

  • Download URL: myelectricaldatapy-1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for myelectricaldatapy-1.0.tar.gz
Algorithm Hash digest
SHA256 855f8590dcec88bf7d95eddb719cf6ffe87c97649eb43d15ffb0eed5375375f7
MD5 f184eb7c52b3168d4c90c7bbc8fbe71e
BLAKE2b-256 8b184965c2a178406f1582bd3cd099554e6a8479000e571b82ddb95477196ce9

See more details on using hashes here.

File details

Details for the file myelectricaldatapy-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for myelectricaldatapy-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d74dec9f45d997d0167fb6a538ffe1c9d513defcc037c2bab4dfa9f46a22e96c
MD5 e20b68bd954d6f686a8b6a4fb1d25393
BLAKE2b-256 d8412b220305eae251d4f26f3c70fbb0f55765b85f6557d8a0fb7620fcf697a5

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