Skip to main content

Lightberry Libraries

Project description

LightBerry Client Library

Lightberry is an open source home automation platform with Alexa integration. This library allows the easy development of a client implementation in the Python language.


To install the Lightberry client library, run the following command from a terminal:
pip3 install lightberry-lib


from lightberrylib import LightberryClient

device = Device(config.deviceId, config.deviceConfig)

client = LightberryClient(, config.mqtt.port)

The LightberryClient constructor accepts two arguments: the MQTT host address and the port (typically 1883).
The Device class is a custom class which is unique to your implmentation. It must implement the lightberry-lib.device_protocols.IBaseDevice protocol, and optionally the lightberry-lib.device_protocols.IAlexaEnabledDevice protocol to enable Alexa functionality.
The keys passed to the client.set_keys() method are obtained from the Lightberry API through the POST /api/developer/devices endpoint.

For more information, check out the reference implementations in the examples directory.

Project details

Download files

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

Files for lightberry, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size lightberry-1.1.1.tar.gz (13.9 kB) File type Source Python version None Upload date Hashes View
Filename, size lightberry-1.1.1-py3-none-any.whl (1.9 kB) File type Wheel Python version py3 Upload date Hashes View

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