Skip to main content

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:

  • TemperatureLevel
  • RoomClimateControl
  • ShutterContact
  • ValveTappet
  • PowerSwitch
  • PowerMeter
  • Routing
  • PowerSwitchProgram
  • BinarySwitch
  • SmokeDetectorCheck
  • Alarm
  • ShutterControl
  • CameraLight
  • PrivacyMode
  • CameraNotification
  • IntrusionDetectionControl

The following device models are implemented, using the above services:

  • ShutterContact
  • ShutterControl
  • SmartPlug
  • SmokeDetector
  • CameraEyes
  • -IntrusionDetectionSystem-

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()

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

boschshcpy-0.1.5.dev0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

boschshcpy-0.1.5.dev0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file boschshcpy-0.1.5.dev0.tar.gz.

File metadata

  • Download URL: boschshcpy-0.1.5.dev0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for boschshcpy-0.1.5.dev0.tar.gz
Algorithm Hash digest
SHA256 11cc56bbac23ea0330df34b6d7a8b3f54bad11d1a473264488a49d8048b6225a
MD5 1b840a34517a4c8dbd4aa1b34c749a1b
BLAKE2b-256 df90d45ffc4c7f5f45b58aaedec789f20b83ef66d82b852d8511900f602d3866

See more details on using hashes here.

File details

Details for the file boschshcpy-0.1.5.dev0-py3-none-any.whl.

File metadata

  • Download URL: boschshcpy-0.1.5.dev0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for boschshcpy-0.1.5.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b28bfe4ca5205fbb2dd2082d2ac2efc9ec4f12c30b5fca1d7ba9a91b60d07a2
MD5 bb1b91b39478c3965494744d35a36f80
BLAKE2b-256 5b43a4904c65efc49963977d1155a12afe6e47aeeb0e023992dd87d20b90177e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page