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
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
enedisgatewaypy-1.2.0.tar.gz
(16.3 kB
view details)
Built Distribution
File details
Details for the file enedisgatewaypy-1.2.0.tar.gz
.
File metadata
- Download URL: enedisgatewaypy-1.2.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8afb04758f0f5fb15446ba9d7613b9dd2f70e70c10c0a1e3282f9255b564c744 |
|
MD5 | 7ffb71ccd9e5282ec0d2c08521fc19d6 |
|
BLAKE2b-256 | 36360ac885a7d0ae1fdd5267082d1d40f0999ba41e1288d1702b6a56e5d8f563 |
File details
Details for the file enedisgatewaypy-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: enedisgatewaypy-1.2.0-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 545a896e13b4adda3f9a5d25cb548398dc53356e793baffe54b91c9c2c07fa18 |
|
MD5 | e47fde02428b5dedc8839032761524c9 |
|
BLAKE2b-256 | eac946032394e2311b3925e77c4dd450969d1782cd4d4d31cbd5a3e71d1359f3 |