A BGH Smart devices API client
Project description
pybgh
A BGH Smart devices API client written in python.
Install
pip install pybgh
Example
import pybgh
client = pybgh.BghClient('email@xxx.com', 'password')
home_id = client.get_homes()[0]['HomeID']
device_id = next(iter(client.get_devices(home_id)))
print(client.get_status(home_id, device_id)['data'])
client.set_mode(device_id, 'cool', 24, 'auto')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
pybgh-0.1.4-py3-none-any.whl
(3.7 kB
view details)
File details
Details for the file pybgh-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: pybgh-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cb1fcaed69cf46daa66e1cd928b1df6c290d47f4f2eee38aff73c2d75d252780
|
|
MD5 |
962b3c80cbdc039a8f271ced03f9fc92
|
|
BLAKE2b-256 |
35e215dcee5d5b3e2c58f7825f93484d23067fa99e1360c5c458d8dcc72b9add
|