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.4.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file pyecodevices-1.4.0.tar.gz
.
File metadata
- Download URL: pyecodevices-1.4.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c968dd8db672bb021d2c773f904f62cafadc8578fe94653ffe531b4519218d3 |
|
MD5 | 2bf366d8473a915d34c07545b144c194 |
|
BLAKE2b-256 | b083cc948919c9f897cdcca34e0baeffa626e4ac48b7eeca145388900cd918a4 |
Provenance
File details
Details for the file pyecodevices-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: pyecodevices-1.4.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cec69d82376a6396ad52fc6efbdc6199e9b6dc308a82fdb34ce187d83a7ffa56 |
|
MD5 | 79f4ccfbefbaeb78f61339f400fd6195 |
|
BLAKE2b-256 | e0bcbff54fc3b0305e0cd730189c9b0fe1fab90f16718bcc996e32f4ee424744 |