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 hashes)
Built Distribution
Close
Hashes for enedisgatewaypy-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f9719dc8fdcdcd34f9461be0f8ef3e8d742fadd521f97beb632c28fa66400c2 |
|
MD5 | 0109430213b500b5c944a0b1ddbb46bd |
|
BLAKE2b-256 | 317a2193ed05e118ef3c14a4848a842c635d7433b39473417729ea84a41cfc9f |