Skip to main content

Get information from GCE Ecodevices RT2.

Project description

pyecodevices-rt2 - Python GCE Ecodevices RT2

https://img.shields.io/pypi/v/pyecodevices_rt2.svg https://img.shields.io/pypi/pyversions/pyecodevices_rt2.svg https://img.shields.io/travis/pcourbin/pyecodevices_rt2.svg Documentation Status Updates https://codecov.io/github/pcourbin/pyecodevices_rt2/branch/master/graph/badge.svg
Get information from GCE Ecodevices RT2.

This work is originally developed for use with Home Assistant and the custom component ecodevices_rt2.

Features

  • Connect to the API (see GCE Ecodevices RT2 API (or PDF)) and get any value:

    # Example with indexes
    from pyecodevices_rt2 import EcoDevicesRT2
    ecodevices = EcoDevicesRT2('192.168.0.20','80',"mysuperapikey")
    ecodevices.get('Index','All') # Get all indexes as JSON
    ecodevices.get('Index','All','Index_TI1') # Get specific value
  • Define a simple object such as Counter, DigitalInput, EnOcean Switch or Sensor, Post and Sub-Post, Relay, SupplierIndex, Toroid, VirtualOutput, X4FP (Heaters), XTHL:

    # Example with a Relay
    from pyecodevices_rt2 import EcoDevicesRT2, Relay
    ecodevices = EcoDevicesRT2('192.168.0.20','80',"mysuperapikey")
    # Relay number 1
    test = Relay(ecodevices, 1)
    print("Current status: %r" % test.status)
    test.off() # Change relay to off
    test.on() # Change relay to on
    test.toggle() # Invert relay status
    test.status = True # Change relay to on

Credits

This work is inspired by the work of Aohzan.
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

1.1.0 (2021-04-17)

  • Add classes such as Counter, DigitalInput, EnOcean Switch or Sensor, Post and Sub-Post, Relay, SupplierIndex, Toroid, VirtualOutput, X4FP (Heaters), XTHL for ease of use

  • Add tests to cover majority of code

  • Add full examples in documentation

1.0.1 (2021-04-12)

1.0.0 (2021-04-08)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyecodevices_rt2-1.1.0.tar.gz (19.1 kB view hashes)

Uploaded Source

Built Distribution

pyecodevices_rt2-1.1.0-py2.py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page