dalicontrol-e64
Unofficial protocol notes, field experience and a small Python library for the IPAS DaliControl e64 KNX/DALI gateway.
The gateway is usually commissioned once with ETS and then only reached through KNX group addresses. It can do more: its built-in web page uses a plain HTTP interface, and the same commands can be sent over KNX without any ETS change. Neither is documented by the manufacturer. This repository writes down what was found while building a lighting control for a flat with 38 DALI ballasts, including the parts that went wrong.
Use it with or without a home automation system.
No ETS, no DCA, no KNX software
For working with the DALI side you do not need ETS, the DCA plug-in, an ETS licence or any other KNX vendor software. Switching and dimming channels, assigning groups, storing and recalling scenes and starting a DALI new installation all work with this repository alone: over HTTP with a browser, curl or Python, or over KNX with a free KNXnet/IP library such as xknx.
ETS is only needed for the KNX side of the gateway: its individual address, group objects and KNX application parameters. If the gateway was commissioned once, you can leave that untouched. If you only use the HTTP interface, the KNX side does not matter at all.
Tested on one device type and firmware only: DaliControl e64, firmware 1.3_06, ETS application e64-01-0110. Not affiliated with or endorsed by IPAS. Several commands re-address or reconfigure your installation and have no confirmation step. Read the command table before you send anything. You act at your own risk.
What is in here
| docs/http-api.md | The HTTP interface: request format, every command with its risk, readable properties, timing |
| docs/knx-management.md | The same commands over KNX, with the gateway's LAN cable unplugged; reading ETS parameters without ETS |
| docs/scenes.md | How DALI scenes are stored and recalled, and how to use them from software |
| docs/lessons-learned.md | What failed and what replaced it |
| docs/home-automation.md | Home Assistant, Node-RED, openHAB, ioBroker: from one HTTP request to a full integration |
src/dalicontrol_e64/ |
Python library on PyPI: command encoding with an allowlist, HTTP client, KNX transport, request queue |
custom_components/dalicontrol_e64/ |
Home Assistant integration (HACS): one light per channel, scene recall, all on/off, HTTP or KNX |
Five things to know first
010000starts a DALI new installation. Nothing about the bytes tells you.- The answer
00means "accepted". It does not mean a lamp reacted. - The channel-state read is a cache and is wrong after programming writes.
- One scene recall beats twenty single-channel writes. Use the 16 slots.
- If lights react late or not at all, check whether the gateway restarts itself every few minutes while its Ethernet port is connected.
Home Assistant
Add this repository in HACS as a custom repository (type Integration), install DaliControl e64, restart, then add the integration with the gateway's IP address or its KNX individual address. Details, a YAML-only alternative and examples for Node-RED, openHAB and ioBroker: docs/home-automation.md.
Quick start (Python)
pip install dalicontrol-e64
from dalicontrol_e64 import HttpClient, commands
gateway = HttpClient("192.0.2.10") # the gateway's IP address
print(gateway.reachable()) # read-only check
gateway.send(commands.level(4, 255)) # channel 4 to 100 %
gateway.send(commands.level(4, 0)) # channel 4 off
gateway.send(commands.scene_recall(5)) # recall scene slot 5
gateway.send(commands.ALL_OFF)
send refuses everything that is not a level, a scene recall or all-off, and
raises unless the gateway answers 00.
With curl, no library needed:
curl -sS --max-time 15 'http://192.0.2.10/?x=F6C35101DA000100010B03FF' # channel 4 on
Over KNX
pip install "dalicontrol-e64[knx]"
from dalicontrol_e64.knx import KnxTransport
transport = KnxTransport(lambda: xknx, "1.1.2") # connected XKNX, gateway's individual address
await transport.send(commands.scene_recall(5))
Many callers, one gateway
Writer serialises requests from switches, apps and automations. A newer
request replaces older waiting targets for the same channels; a failed write
aborts what is waiting instead of retrying.
from dalicontrol_e64 import Writer, Macro, commands
writer = Writer(transport.send) # or an async wrapper around HttpClient.send
job = writer.submit({14: 0, 15: 0, 16: 0, 17: 200}, label="dining strip white")
result = await job.future # {'status': 'completed', 'commands': [...], ...}
room = {c: 0 for c in range(20, 28)}
writer.submit(room, macro=Macro(commands.scene_recall(8), dict(room))) # one command
The Home Assistant integration in custom_components/ is built on exactly
these two parts and reuses the KNX integration's connection.
Tests
PYTHONPATH=src python3 -m unittest discover -s tests # library
pip install pytest-homeassistant-custom-component xknx -e .
python3 -m pytest # Home Assistant integration (Python 3.13)
The tests run against a simulated device. They prove the encoding, the allowlist and the queue logic, not the behaviour of your hardware.
Contributing
Reports from other firmware versions, the e64 Pro, or decoded error flags and properties are welcome. Please say what you observed on the lamps, not only what the gateway answered.
License
MIT, see LICENSE.
Metadata
Release files for dalicontrol-e64 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dalicontrol_e64-0.2.0.tar.gz | 15.6 kB | With provenance | Details for dalicontrol_e64-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dalicontrol_e64-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for dalicontrol_e64-0.2.0-py3-none-any.whl |
Total release size: 29.0 kB
Release files / dalicontrol_e64-0.2.0.tar.gz
| Download URL | dalicontrol_e64-0.2.0.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b043c510621fc717e9dc409aec91367caf2e1b807ad8c7456440da74751c5f7
|
|
BLAKE2b-256 checksum How to use checksums |
0e66b25585f9e7f1d6c7befb8eecb8c8f41b3de57aea58500820a16e072e5ae6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logRelease files / dalicontrol_e64-0.2.0-py3-none-any.whl
| Download URL | dalicontrol_e64-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4534052dd5a3c5dd54a1ca9a74b7fc646be9c9331b4b71284f21aa529567502
|
|
BLAKE2b-256 checksum How to use checksums |
4570707511a8eaecc254f46a3137def40be5bd6ece8a7346c57bba01b252f56a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logSecurity for dalicontrol-e64 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dalicontrol_e64-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logA 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.