Get information from GCE Ecodevices RT2.
Project description
pyecodevices_rt2 - Python GCE Ecodevices RT2
Get information from GCE Ecodevices RT2 This work is originally developed for use with Home Assistant and the custom component ecodevices_rt2. This work is based on the work of Aohzan.
Parameters
host
: ip or hostnameport
: (default: 80)apikey
: if authentication enabled on Ecodevices RT2timeout
: (default: 3)
Properties
host
: return the hostapikey
: return the apikeyapiurl
: return the default apiurl
Methods
ping
: return true if the Ecodevices answerget
: return json or part of json from the API and parameters according to Ecodevices RT2 API (or PDF)
Example
from pyecodevices_rt2 import EcoDevicesRT2
ecodevices = EcoDevicesRT2('192.168.0.20','80',"mysuperapikey")
print("# ping")
print(ecodevices.ping())
print("# Default API call")
print(ecodevices.apiurl)
# Indexes
print("# All Indexes")
print(ecodevices.get('Index','All'))
print("# Only Index 'Index_TI1'")
print(ecodevices.get('Index','All','Index_TI1'))
# Powers
print("# Actual power on 'POSTE5'")
print(ecodevices.get('Get','P','INSTANT_POSTE5'))
# EnOcean
print("# All Enocean")
print(ecodevices.get('Get','XENO'))
print("# Set Enocean1 and get status")
print(ecodevices.get('SetEnoPC','1','status'))
print("# Clear Enocean2 and get status")
print(ecodevices.get('ClearEnoPC','2','status'))
# Heaters / FP Modules
print("# Current state of all zones")
print(ecodevices.get('Get','FP'))
print("# Current state of First Zone of First FP module")
print(ecodevices.get('Get','FP', 'FP1 Zone 1'))
print("# Force First Zone of First FP module to be on 'Confort' mode and get status")
print(ecodevices.get('SetFP01','0', 'status'))
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_rt2-1.0.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for pyecodevices_rt2-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 630242bf3183f489923c5cbc88dcdd9a09ab26bc6416187a8b4e1a9897c5d1cd |
|
MD5 | eb45f93453e096d8ad6c033d07c3c761 |
|
BLAKE2b-256 | 61dcdabd81c07087f314e7b481023c14f0ff57a40a36e9c87bb6b929672beeeb |