Metadata-Version: 2.1
Name: pybgh
Version: 0.1.2
Summary: A BGH Smart devices API client
Home-page: https://github.com/mool/pybgh
Author: Pablo Gutierrez del Castillo
Author-email: pablogutierrezdelc@gmail.com
License: MIT
Keywords: BGH
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests

# 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')
```


