Skip to main content

pyecodevices - Python GCE Eco-Devices

Get information from GCE Eco-Devices

Parameters

  • host: ip or hostname
  • port: (default: 80)
  • username: if authentication enabled on Eco-Devices
  • password: if authentication enabled on Eco-Devices
  • request_timeout: (default: 10)

Properties

  • host: return the host
  • version: return the firmware version
  • mac_address: return the mac address

Methods

  • get_info: get properties from the API
  • global_get: return all data from the API
  • get_t1: return values of input T1
  • get_t2: return values of input T2
  • get_c1: return values of input C1
  • get_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.new_event_loop()
    asyncio.set_event_loop(loop)
    loop.run_until_complete(main())

Metadata

Release files for pyecodevices 1.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyecodevices 1.7.0
File Size Uploaded
pyecodevices-1.7.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyecodevices 1.7.0
File Interpreter ABI Platform
pyecodevices-1.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / pyecodevices-1.7.0.tar.gz

Download URL pyecodevices-1.7.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d2507b4d25b7849badf65774a9014fa34a022dc629d2d6cf3dbd215695847b5a
BLAKE2b-256 checksum
How to use checksums
c301c2656b389f7e6c1ee3f5d7c0c93a76e0890fd166b7b3d919d7189bd30aa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6

Release files / pyecodevices-1.7.0-py3-none-any.whl

Download URL pyecodevices-1.7.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
224bdc4ae4a79d823e47a589f967ddbe93f08dfbfbc5f5c030cad529cc8818c3
BLAKE2b-256 checksum
How to use checksums
afcbe5ba700cbca580696e64debeb1fd99e257ac6e10b5e44f198c19292fee26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6

Release history Release notifications | RSS feed

This release

1.7.0 This release

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page