Skip to main content
## python-domintell: A python library to control the Domintell home automation system

This library was created to support Domintell protocol in [home assisstant](http://home-assistant.io). It is based on [python-velbus](https://github.com/thomasdelaet/python-velbus) library by [Thomas Delaet](https://github.com/thomasdelaet).

It is currently being used by the Domintell component in [home assisstant](http://home-assistant.io) but can also be used indepenently.

The latest version of the library is *0.0.1* and it is published as a python package on [pypi](https://pypi.python.org/pypi/python-domintell)

API documentation is not yet available.

# Example usage

The library currently only supports a UDP communicatin via DETH02 Domintell module, it can be easily modified to support RS-232 intiarface (domintell light protocol). In order to use the library, you need to first initialize the controller and can then send and receive messages on the Domintell.

```python
import time
import logging
import sys
import domintell
import credentials
import os, sys

def _on_message(message):
print('received message')
print(message)

logging.basicConfig(stream=sys.stdout, level=logging.INFO)

# UDP, Serial (or USB over serial) connection to Domintell controller
host = '192.168.0.1:17481'

controller = domintell.Controller(host)
controller.subscribe(_on_message)

logging.info('LOGIN')
controller.login(credentials.host['SECRET'])

time.sleep(10)
logging.info('Starting scan')
controller.scan(None)

logging.info('Going to sleep')
time.sleep(100)
logging.info('Exiting ...')
controller.stop()

```

# Installation

You can install the library with pip (*pip install python-domintell*) or by checking out the [github](https://github.com/shamanenas/python-domintell) repository and running *python setup.py install* at the root of the repository.

# Supported modules

The following Domitell modules are currently supported by this library:

| Module name | Description | Status | Comments |
| ----------- | ----------- | ------ | -------- |
| DISM4 | Control of 4 inputs (buttons) | SUPPORTED | All messages are supported |
| DISM8 | Control of 8 inputs (buttons) | SUPPORTED | All messages are supported |
| DPBU01 | 1 button module | SUPPORTED | All messages are supported |
| DPBU02 | 2 button module | SUPPORTED | All messages are supported |
| DPBU04 | 4 button module | SUPPORTED | All messages are supported |
| DPBU06 | 6 button module | SUPPORTED | All messages are supported |
| DBIR01 | 8 relay output module | SUPPORTED | All messages are supported |
| DTRP01 | Output card for the control of up to 4 trip switches | SUPPORTED | All messages are supported |
| DTRP02 | Output card for the control of 2 x 2 inverted trip switches |SUPPORTED | All messages are supported |
| DDIM01 | Control module for up to 8 dimmers | SUPPORTED | All messages are supported |
| DTEM01 | Temperature sensor module. Allows the connection of the temperature sensor | SUPPORTED | Only basic messages |
| DTEM02 | Temperature sensor module. Allows the connection of the temperature sensor | SUPPORTED | Only basic messages |
| DDIR01 | Infrared Sensor | NOT SUPPORTED | No plans to support |
| DTSC0x | TFT back-lit color touchscreen | SUPPORTED | Only temperature messages are supported |
| DMOV01 | Movement sensor | SUPPORTED | All messages are supported |
| DLCD01 | LCD | NOT SUPPORTED | |
| DTRV01 | 4 outputs control module. For the control of shutters, valves, motors, etc | SUPPORTED | All messages are supported |
| DLED01 | 4 outputs led control module | SUPPORTED | All messages are supported |
| DTRVBT01 | Single output card controlling motors, valves, shutters or Velux with low tension between 12 to 24Vdc | SUPPORTED | All messages are supported |
| DAMPLI01 | 4 zones stereo audio amplifi er | NOT SUPPORTED | No plans to implement |
| VAR | Variable | SUPPORTED | All messages are supported |
| SYS | System variable | SUPPORTED | All messages are supported |
| DOUT10V01 | 0 - 10Vdc output module | SUPPORTED | All messages are supported |
| DLCD01 | LCD panel | NOT SUPPORTED | |
| DFAN01 | Fan coil controller | NOT SUPPORTED | |
| DMR01 | Output card with 5 x 250 V/3 A monopolar relays. | SUPPORTED | All messages are supported |
| DIN10V01 | 0 - 10Vdc input module | NOT SUPPORTED ||

# Adding support for other modules

The [Domintell website](http://www.domintell.com) contains an overview of the different available modules and their protocol documentation. In order to add support for an additional module, read through the protocol documemntation and add support for missing messages (many messages are shared between modules so make sure to check if a message already exists or not)

Steps to add support for an additional module:

- [ ] Look up the protocol documentation of the module you want to include at the [Domintell website](https://www.domintell.eu/).
- [ ] Go through the messages directory and look for messages in the protocol information sheet that are not yet supported. Create a new file in the *messages* folder for each unsupported message. Every new message should inherit from the *Message* object and reuse common functionality.
- [ ] Implement constructor method for each new message
- [ ] Implement the *populate* and *data_to_binary* methods for each new message
- [ ] Add new messages to the *__init__.py* file in the *messages* folder
- [ ] Test and iterate
- [ ] Update the Supported modules section of the *README.md* file
- [ ] Submit a pull request on Github

# Further development

The library currently offers only the lowest level of functionality: sending and receiving messages to modules:

- [ ] Modeling modules and their supported functions as entities
- [ ] Only allowing to send supported messages to modules
- [*] Auto-discovery of modules
- [ ] Exposing the velbus controller as an external API so it can be shared between different consumers

Metadata

Release files for python-domintell 0.0.3

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

Source distribution (sdist)

Source distribution for python-domintell 0.0.3
File Size Uploaded Provenance Actions
python-domintell-0.0.3.tar.gz 20.0 kB Without provenance Details for python-domintell-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-domintell 0.0.3
File Interpreter ABI Platform Actions
python_domintell-0.0.3-py3-none-any.whl Python 3 none any Details for python_domintell-0.0.3-py3-none-any.whl

Total release size: 55.7 kB

Release files / python-domintell-0.0.3.tar.gz

Download URL python-domintell-0.0.3.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
57660b076ce3e1c396ce6737f252a368284a26b82dbc599a9799cae66a6df190
BLAKE2b-256 checksum
How to use checksums
bdd4851f19ae5e76d99eda60efe8582cf4e35422d094fc50a707c2b4ff581183
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_domintell-0.0.3-py3-none-any.whl

Download URL python_domintell-0.0.3-py3-none-any.whl
Size 35.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1dbb4f5d630a2b461275013f08a6303f64a7db7a4be8f1b7cab98f7f428c0977
BLAKE2b-256 checksum
How to use checksums
43c7558e773999b085be133906e54bde2ac7779220741e02103e83e6acec06ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-domintell 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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