Get information from GCE Eco-Devices.
Project description
pyecodevices - Python GCE Eco-Devices
Get information from GCE Eco-Devices
Parameters
host
: ip or hostnameport
: (default: 80)username
: if authentication enabled on Eco-Devicespassword
: if authentication enabled on Eco-Devicesrequest_timeout
: (default: 10)
Properties
host
: return the hostversion
: return the firmware versionmac_address
: return the mac address
Methods
get_info
: get properties from the APIglobal_get
: return all data from the APIget_t1
: return values of input T1get_t2
: return values of input T2get_c1
: return values of input C1get_c2
: return values of input C2
Example
from pyecodevices import EcoDevices
import asyncio
async def main():
async with EcoDevices('192.168.1.239', '80', "username", "password") as ecodevices:
await ecodevices.get_info()
print("firmware version:", ecodevices.version)
data = await ecodevices.global_get()
print("all values:", data)
data = await ecodevices.get_t1()
print("teleinfo 1:", data)
print("current:", data["current"], "VA")
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
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
pyecodevices-1.5.1.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file pyecodevices-1.5.1.tar.gz
.
File metadata
- Download URL: pyecodevices-1.5.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7c0110a9511cab6a311eefe3e8dac4636eb9cfd0041f2a5bb347f662e49c1cc |
|
MD5 | 19a8a912b4da53e35a6fedeea68ed620 |
|
BLAKE2b-256 | f53b6483a643b5ff0b87355ec4ae31bee53af23c5bc41577554b8b0d855c5b0a |
Provenance
File details
Details for the file pyecodevices-1.5.1-py3-none-any.whl
.
File metadata
- Download URL: pyecodevices-1.5.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5997fd39d21f1885ddd681f7910224257851418c4e2b4bf861a19fff43a840f7 |
|
MD5 | 641f624c594663472a3d1af73b686979 |
|
BLAKE2b-256 | 397bbb0ff17a459c6f16a89035cd5a0fcee717e724caa83ea2620df6faebe545 |