Skip to main content

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 hostname
  • port: (default: 80)
  • apikey: if authentication enabled on Ecodevices RT2
  • timeout: (default: 3)

Properties

  • host: return the host
  • apikey: return the apikey
  • apiurl: return the default apiurl

Methods

  • ping: return true if the Ecodevices answer
  • get: 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


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)

Uploaded Source

Built Distribution

pyecodevices_rt2-1.0.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded 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