Skip to main content

pyBrematic

Build Status PyPI version Coverage Status

The topic "smart home" or "home automation" in particular has become increasingly popular throughout the last few years. While many manufacturers are relying on cloud infrastructure, there are some that produce local-only devices, using the 433 MHz ISM band.

The python module "pyBrematic" enables you to control and automate your 433 MHz remote power outlets (and other switches/dimmers) with the Python programming language. All you need for this is a supported 433 MHz network gateway, such as the Intertechno ITGW-433, the Brematic GWY 433 (or CONNAIR 433, which is basically the same as the Brematic one).

With the help of the community we might get other devices working as well.

Installation

This module is available on pypi and hence can be downloaded via pip like this:

pip install pyBrematic

And if you are having issues with installing the package, try to use the --user switch, to install it to your home directory.
PyBrematic has no external dependencies. Only Python versions >= 3.5 are supported.

Example usage

To check out how to use the module, go to the example file. There you'll find an example configuration of how to use the module.

from pyBrematic import Action
from pyBrematic.devices.brennenstuhl import RCS1000N
from pyBrematic.devices.intertechno import ITR3500, calc_system_and_unit_code
from pyBrematic.gateways import BrennenstuhlGateway

# Set your system and unit codes
system_code = "11110"  # DIPs 1-4 are in the 'up' position, 5 is 'down'
unit_code = "10000"  # DIP A is in the 'up' position, B-E are 'down'

# Create a new device with the specified codes
desk_lamp = RCS1000N(system_code, unit_code)

# For Intertechno devices you can also use the following methods to get the code
# via master/slave (letter/number) notation. Allowed values are "A-P" and "1-16".
led_system_code, led_unit_code = calc_system_and_unit_code("A3")
led_strip = ITR3500(led_system_code, led_unit_code)

# Create a new gateway located at the specified IP
gw = BrennenstuhlGateway("192.168.178.9")

# Send the request and pass it the device and the action (on/off)
gw.send_request(desk_lamp, Action.ON)
gw.send_request(desk_lamp, Action.OFF)

Important notice

Since all data packets are sent to the gateways via UDP, it cannot be guaranteed, that all requests will be received by the gateway. For critical purposes you cannot rely on sending the signal once.

Metadata

Release files for pyBrematic 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyBrematic 1.2.1
File Size Uploaded
pyBrematic-1.2.1.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyBrematic 1.2.1
File Interpreter ABI Platform
pyBrematic-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 50.6 kB

Release files / pyBrematic-1.2.1.tar.gz

Download URL pyBrematic-1.2.1.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
32f0d486f601f6090b6b72153184deefeb69a361d95ddbf2d999c0dcaffdd9ee
BLAKE2b-256 checksum
How to use checksums
4b6f198948700b21f72231f303647530d28b258d4133aa3a457f21bbc1c0bd14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.9

Release files / pyBrematic-1.2.1-py3-none-any.whl

Download URL pyBrematic-1.2.1-py3-none-any.whl
Size 33.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c486809bd9bdc7abcf745207417884c5939371a32cf52149e5052dcfd6647eb
BLAKE2b-256 checksum
How to use checksums
36fde1d6a2b09c78e8eedd2a14df19a2ce2dd30e429542ec213252adbc1c2ad8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.9

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page