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.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c01181c14846a79e24bc8190e036f840268562ca9d6222419944099adb8263bb |
|
MD5 | 42d3a18bf1279418db0d3911a6630cfe |
|
BLAKE2b-256 | d245c7200f169695b356482b5ccf01f49550ab4d53081c111a4fec86f0784d27 |