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.3.tar.gz
(16.4 kB
view details)
Built Distribution
File details
Details for the file enedisgatewaypy-1.2.3.tar.gz
.
File metadata
- Download URL: enedisgatewaypy-1.2.3.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a4d6589aefa65356492c3c38e6b82b1ce50bc6a889ebdc6c93b8aad2293ffd |
|
MD5 | 190d26e1d82bfee5d694d1be9fb63c81 |
|
BLAKE2b-256 | 90d8bd9d447bb9a3bdd315764f9ec2851d2c5f487a87a1bca05aa9471f63eb91 |
File details
Details for the file enedisgatewaypy-1.2.3-py3-none-any.whl
.
File metadata
- Download URL: enedisgatewaypy-1.2.3-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 | c8ae9b4cde2423cc8c85ebdb40007a42ccda31e8efa709491d59085117b2e4d3 |
|
MD5 | a2beb5138d0ce6cbb51567b08c16a4dd |
|
BLAKE2b-256 | c490713268474904539f3964404f4ef26dab08b57c35b252ddfa864ed5bf9cfb |