Skip to main content

Fetch Linky data from myelectricaldata.fr

Project description

myelectricaldatapy

Fetch date Enedis Linky from myelectricaldata.fr (enedisgateway.tech)

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

Install

Use the PIP package manager

$ pip install myelectricaldatapy

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

Uploaded Source

Built Distribution

myelectricaldatapy-1.2-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for myelectricaldatapy-1.2.tar.gz
Algorithm Hash digest
SHA256 f0a301915ad7966c03713a36b87801e7322ab54a0331686638e756bfd52071b9
MD5 05a23b22b98bed79674ca1e0195a7c3f
BLAKE2b-256 525ec2746b1d95b73540fda3b76dafd444072ca2aca960ceca7d7f71d1394f0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for myelectricaldatapy-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e11adb79a53a5222b93ba9625034740e83864c833b8f5686e9514ede3c9e912
MD5 d126026baf8e5844d7e17810035d39b0
BLAKE2b-256 6f81aa18efb6a792d502f634bc0e3315d1715d9dc34774be9db39a9a42f68f93

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