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.1.1.tar.gz
(16.3 kB
view details)
Built Distribution
File details
Details for the file enedisgatewaypy-1.1.1.tar.gz
.
File metadata
- Download URL: enedisgatewaypy-1.1.1.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 | 82e4783ca7d0d5dc41af9efeab0f1f31bf64c23558dca6e92d9cf1882102184e |
|
MD5 | cf68cd240a9049d4a38bdaf999241edd |
|
BLAKE2b-256 | 49fc046a9b9771186741c07cf662e7d085233c5fc83fbe6f2ed8261d7eae1a84 |
File details
Details for the file enedisgatewaypy-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: enedisgatewaypy-1.1.1-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 | b8622c901a4f906494bc205a75215c9d5594b2a47b63a477331001d0bc3a833b |
|
MD5 | c74aebde0381c29e2f189e0412f6f216 |
|
BLAKE2b-256 | 1c7695df729ff3214f5c4de7d36ba2ff04d5d084503a55a38346f7d9f56a2bd4 |