Bosch Smart Home Controller API Python Library
Project description
Bosch Smart Home Controller API Python Library
This library implements the local communication REST API for the Bosch Smart Home Controller system. The API documentation is available here. It supports both long and short polling. The following device services are implemented:
TemperatureLevelHumidityLevelRoomClimateControlShutterContactValveTappetPowerSwitchPowerMeterRoutingPowerSwitchProgramBinarySwitchSmokeDetectorCheckAlarmShutterControlCameraLightPrivacyModeCameraNotificationIntrusionDetectionControlKeypadLatestMotionAirQualityLevelSurveillanceAlarmBatteryLevelThermostatWaterLeakageSensorWaterLeakageSensorTilt
The following device models are implemented, using the above services:
ShutterContactShutterControlSmartPlugSmartPlugCompactLightControlSmokeDetectorCameraEyesIntrusionDetectionSystemRoomClimateControlThermostatWallThermostatUniversalSwitchMotionDetectorTwinguardWaterLeakageSensor
Example
import boschshcpy
# Create session
session = boschshcpy.SHCSession(controller_ip="192.168.25.51", certificate='cert.pem', key='key.pem')
session.information.summary()
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()
# Trigger intrusion detection system
intrusion_control = session.device_helper.intrusion_detection_system
intrusion_control.arm_instant()
To get a list of all devices, rooms and scenarios, see apisummary.py Example
Usage guide
Before accessing the Bosch Smart Home Controller, a client must be registered on the controller. For this a valid cert/key pair must be provided to the controller. To start the client registration, press and hold the button on the controller until the led starts flashing. More information here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file boschshcpy-0.2.15.tar.gz.
File metadata
- Download URL: boschshcpy-0.2.15.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e4c31316afbf8bf0c6fc56abb27554febf8bc87ef6ae0c7adae6d44e679e64f
|
|
| MD5 |
f8da2fe8a3a397c57eb817bb8e213efe
|
|
| BLAKE2b-256 |
6320655b638536dd98546f7c9e34653922bf92ec5d57ead33bc3877fd090bcb2
|
File details
Details for the file boschshcpy-0.2.15-py3-none-any.whl.
File metadata
- Download URL: boschshcpy-0.2.15-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ea1506a2341a9dc630bac5151637393dc13b8199adbcf68f6a22c056dacf87c
|
|
| MD5 |
d63cb0c0eefb37d50166e062d99b7fb0
|
|
| BLAKE2b-256 |
7e7382bee5ed5ca81725bfaedc6c6ccf894d289308ba98505a107040f7bf989f
|