Skip to main content

Module to connect to Brel-Home hubs.

Project description

brelpy

A Python package to communicate with the Brel DD-7002B and DD-1554 hubs. It allows you to control and read out Brel motors for blinds.

Installation

The package can be installed by running:

pip3 install brelpy

Alternatively one can clone this repository and install by running pip3 install . to get the latest (possibly unreleased) version.

Usage

A typical usage scenario looks like this:

from brelpy import BrelHub


with BrelHub("<ip-of-your-hub>", "<key-of-your-hub>") as hub:
    for device in hub.devices:
        device.close()

The key can be found by multi-tapping the version indicator in the "me"-screen in the BrelHome app. It has a form like "1ab2cd34-01ab-a1". It can also be provided in the BREL_KEY environment variable. If it is not provided, you can still connect to the Hub but not perform any actions on the devices.

Disclaimer

This package is open source software and has no affiliation with Brel.

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

brelpy-0.0.3.tar.gz (16.5 kB view hashes)

Uploaded Source

Built Distribution

brelpy-0.0.3-py3-none-any.whl (17.6 kB view hashes)

Uploaded Python 3

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