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
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
File details
Details for the file brelpy-0.0.3.tar.gz
.
File metadata
- Download URL: brelpy-0.0.3.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31859229877b7a61d97d8f96fd4c1e42d4e0eb619250cc9ba5e70bf4147c7618 |
|
MD5 | e263252a3ef9871064df7b67d0d0ea73 |
|
BLAKE2b-256 | 897140bc8e722ae50a232f2a8bfa25cee5418251ebda943c26e101aebc70de04 |
File details
Details for the file brelpy-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: brelpy-0.0.3-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 242a65f0e5924af6ed817bcec6106825e2a1029cf01f79be2fcf3e32ac7000c6 |
|
MD5 | f097bb05c7ccfd15a72371bdb79ae898 |
|
BLAKE2b-256 | c73d2a63a3a58b8798d44b6d57423d2076dee2218d0b51e6c6218291138d39fe |