This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: deprecated
GeniusHub
Python library to provide connect to Genius Hub on a local network.
Installation
Either clone this resposition and run python setup.py install, or install from pip using pip install genius.
API
This library makes use of the undocumented API for communicating to the Genius Hub. This API may change with future updates to the Genius Hub Firmware.
The library supports the following functions:
getClimateList()
getSwitchList()
getTRVList()
getSensorList()
getSwitchList()
getZone(zoneId)
getDevice(zoneId, addr)
GET_CLIMATE(zone)
GET_SWITCH(zone)
getSensor(cv)
getTRV(cv)
GET_MODE(zone)
putjson(device_id, data)
Usage
Initialise a link to the hub by passing in the local IP address, username and password. The username and password are the same that you use to log into your Genius application. Once logged in successfully the module will poll the hub at regular intervals so that getting values from the hub will be cached locally.
What is read from the getters is self explanatory. The putjson POST the data to the Genius Hub. The format of the json can be discovered by exploring the Genius application and view the requests posted to the hub.
import asyncio
from geniushub import GeniusHub
IP_ADDRESS = 'Your local ip address'
USERNAME = 'Your user name'
PASSWORD = 'Your password'
INTERVAL = 60
async def main():
genius_hub = GeniusHub(IP_ADDRESS, USERNAME, PASSWORD, INTERVAL)
await genius_hub.getjson('/zones')
# Get the zones with a temperature
climate_list = genius_hub.getClimateList()
print("Climate -------------------------------------------------------------")
for zone in climate_list:
print(zone)
trvs = genius_hub.getTRVList()
print("TRV -----------------------------------------------------------------")
for trv in trvs:
print(trv)
switches = genius_hub.getSwitchList()
print("Switches ------------------------------------------------------------")
for switch in switches:
print(switch)
sensors = genius_hub.getSensorList()
print("Sensors -------------------------------------------------------------")
for sensor in sensors:
print(sensor)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
loop.close()
Metadata
Release files for geniushub 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geniushub-0.1.tar.gz | 4.1 kB | Without provenance | Details for geniushub-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geniushub-0.1-py3-none-any.whl | Python 3 | none | any | Details for geniushub-0.1-py3-none-any.whl |
Total release size: 9.3 kB
Release files / geniushub-0.1.tar.gz
| Download URL | geniushub-0.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5dc12c71f805b9bbf99b6138c758ca4c87deb3b124b504d3c5dcdf6dbb2952b2
|
|
BLAKE2b-256 checksum How to use checksums |
f8d89629b59054a532f1162a244c81c18800fc588b2f0642ecb6f282e12724d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Release files / geniushub-0.1-py3-none-any.whl
| Download URL | geniushub-0.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e61f9eca99b85cc06def01ed4b7b83dd6f8fbc67640008238f4cd0e20d3965e
|
|
BLAKE2b-256 checksum How to use checksums |
5b251aa433b418823f0615a397c28f7f415f34556ae8380ac5b07cd91041b50e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Security for geniushub 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.