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.5.tar.gz
(16.3 kB
view details)
Built Distribution
File details
Details for the file enedisgatewaypy-1.2.5.tar.gz
.
File metadata
- Download URL: enedisgatewaypy-1.2.5.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 | 9afe6c9ae72f8d128c85912ee471ef05f40207eb24bba422b154f2650cee6646 |
|
MD5 | 05e92d9757fec1c2154221ab825376cd |
|
BLAKE2b-256 | ee778d38a9e95bde6240a451531987c4dea0231ee45ab053232e9df35145015b |
File details
Details for the file enedisgatewaypy-1.2.5-py3-none-any.whl
.
File metadata
- Download URL: enedisgatewaypy-1.2.5-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 | 2fec10e9d6600bb333c0cdb5f71152f676e58515b1207b07dd25f8fc261ec0fe |
|
MD5 | 7a1a9c607a2173311f545484fe0087b2 |
|
BLAKE2b-256 | 2c5494899ff28f16a2950c545ee42f1c82ef186edc1ba07ea00863dc59dfdf9f |