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.0.0.tar.gz
(16.1 kB
view details)
Built Distribution
File details
Details for the file enedisgatewaypy-1.0.0.tar.gz
.
File metadata
- Download URL: enedisgatewaypy-1.0.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34b366612eeb782de600847e4a0b15820c7e4b05de9840e874479af56c069beb |
|
MD5 | 73024e3fbcb539bd07fd48a010a8c389 |
|
BLAKE2b-256 | 8709a2e159fb36e8e8a49b33a3ca815973d1214c9c24a753241a9dbd3430bc6e |
File details
Details for the file enedisgatewaypy-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: enedisgatewaypy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f9719dc8fdcdcd34f9461be0f8ef3e8d742fadd521f97beb632c28fa66400c2 |
|
MD5 | 0109430213b500b5c944a0b1ddbb46bd |
|
BLAKE2b-256 | 317a2193ed05e118ef3c14a4848a842c635d7433b39473417729ea84a41cfc9f |