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.3.0.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file pyecodevices-1.3.0.tar.gz
.
File metadata
- Download URL: pyecodevices-1.3.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8408ced69f92702abdfbd7957eae63e2c17667a398e100a3964333deef1aeb7b |
|
MD5 | 35e338a438523534b519c27cb9c32299 |
|
BLAKE2b-256 | 9628ebb5f18bc4882a7d13c40b7498a6569b2c5d53f67a35c4fc3b1a2c3863d7 |
Provenance
File details
Details for the file pyecodevices-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: pyecodevices-1.3.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f6805f28f9f34675fb5218a06776750a66fcb9a5fc5a80311ad60df1f7a6715 |
|
MD5 | 21a741ea671f15be3c9bfc1c2ae184a0 |
|
BLAKE2b-256 | c6ec9f46dd8624c5ac6baaf30df290cb8684fa7b4193ab65a9dbb037e1bf6599 |