Skip to main content

Bosch Smart Home Local API Python Library

Project description

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. It supports both long and short polling. The following device services are implemented:

  • TemperatureLevel
  • ValveTappet
  • ShutterContact
  • RoomClimateControl

Example:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bshlocal-0.0.7.tar.gz (5.7 kB view hashes)

Uploaded source

Built Distribution

bshlocal-0.0.7-py3-none-any.whl (8.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page