Metadata-Version: 2.1
Name: bshlocal
Version: 0.0.6
Summary: Bosch Smart Home Local API Python Library
Home-page: https://github.com/cabrust/bshlocal
Author: Clemens-Alexander Brust
Author-email: cabrust@pm.me
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: requests (==2.22)

# Bosch Smart Home Local API Python Library

This library implements the local communication REST API for the Bosch Smart Home system.
The API documentation is available [here](https://github.com/BoschSmartHome/bosch-shc-api-docs).
It supports both long and short polling. The following device services are implemented:
 * ```TemperatureLevel```
 * ```ValveTappet```
 * ```ShutterContact```
 * ```RoomClimateControl```

Example:
```python
import bshlocal

# Create session
session = bshlocal.BSHLocalSession(controller_ip="192.168.25.51", certificate='cert.pem', key='key.pem')
device = session.device('roomClimateControl_hz_5')
service = device.device_service('TemperatureLevel')
print(service.temperature)

# Update this service's state
service.short_poll()

# Start long polling thread in background
session.start_polling()

# Do work here
...

# Stop polling
session.stop_polling()
```

