Get information from GCE Ecodevices RT2.
Project description
pyecodevices-rt2 - Python GCE Ecodevices RT2
This work is originally developed for use with Home Assistant and the custom component ecodevices_rt2.
Free software: MIT license
Documentation: https://pyecodevices-rt2.readthedocs.io.
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
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)
Update package with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
1.0.0 (2021-04-08)
First release on PyPI.
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
Built Distribution
Hashes for pyecodevices_rt2-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 921e03d1952d3dd32d9a48534aad6b49f0ef1658f8535d72222074b4c29cb009 |
|
MD5 | 616f176e6f6911d16caf9d6e57cd6175 |
|
BLAKE2b-256 | 59c5bdce01370f74ac8bf59d387a2b373bccfb6acc052ac9b740e72fd2adac3a |