Skip to main content

dalicontrol-e64

Use and program the DALI lights behind an IPAS DaliControl e64 KNX/DALI gateway from any home automation system or script, without ETS and without the DCA (IPAS' Device Configuration App plug-in for ETS). Unofficial protocol notes, field experience, a Python library and a Home Assistant integration.

Why

  • No ETS, no DCA, no licence. Switching, dimming, group assignment, storing and recalling scenes, even a DALI new installation: all of it works over plain HTTP (a browser, curl, Python) or over KNX with a free library such as xknx.
  • Any home automation system. Home Assistant (integration in this repo, or a few lines of YAML), Node-RED, openHAB, ioBroker, a shell script. The request is one HTTP GET.
  • Fast and stable on old hardware. The approach here drives a flat with 38 DALI ballasts every day and has for months: scene changes and dimming react immediately, nothing needs restarting. That was not expected from a gateway of this age on its original firmware; it took a lot of testing to find what makes it quick (scenes instead of many single writes, one queue, no blind retries; see lessons-learned.md).
  • No firmware update needed. Everything here runs on firmware 1.3_06. An update to 3.x destroyed the KNX side of a second gateway in the same installation; manufacturer support could neither update the other one nor downgrade the broken one in a remote session. Staying on 1.x is a choice, and this repository is what makes it workable.

The gateway is usually commissioned once with ETS and then only reached through KNX group addresses. Its built-in web page, however, uses a plain HTTP interface, and the same commands can be sent over KNX as device management telegrams, without any ETS change. Neither is documented by the manufacturer. This repository writes both down, including the parts that went wrong.

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.

For that KNX side there is an open-source alternative to ETS as well: bussard, a command-line tool that keeps the KNX configuration in text files and writes it to the devices. Check its device list for your gateway's application version before relying on it.

Reading this with an LLM or coding agent: start with llms.txt.

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

  1. 010000 starts a DALI new installation. Nothing about the bytes tells you.
  2. The answer 00 means "accepted". It does not mean a lamp reacted.
  3. The channel-state read is a cache and is wrong after programming writes.
  4. One scene recall beats twenty single-channel writes. Use the 16 slots.
  5. 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.

Status and contributing

Finished for the installation it was written for: it has run stable and fast there for months, so it will not be developed further from that side. Pull requests are welcome, for example:

  • other firmware versions (3.x) or the e64 Pro: which commands still work
  • other gateways of the IPAS DaliControl family
  • integrations or examples for further systems (openHAB, ioBroker, Node-RED, Loxone …)
  • decoded error flags and properties
  • RGBW or tunable-white channels as one light in Home Assistant

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.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 dalicontrol-e64 0.2.1
File Size Uploaded Provenance Actions
dalicontrol_e64-0.2.1.tar.gz 17.0 kB With provenance Details for dalicontrol_e64-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dalicontrol-e64 0.2.1
File Interpreter ABI Platform Actions
dalicontrol_e64-0.2.1-py3-none-any.whl Python 3 none any Details for dalicontrol_e64-0.2.1-py3-none-any.whl

Total release size: 31.1 kB

Release files / dalicontrol_e64-0.2.1.tar.gz

Download URL dalicontrol_e64-0.2.1.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5ce8d01a82dc021ae7a08e9f42d4dbdf591c6710737e31bed6d6395fd6830646
BLAKE2b-256 checksum
How to use checksums
2b94956ae49c1e96376cbcaa1f5d35db08d7bbc21e3f0e3eeb97c8b38a863688
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 log

Release files / dalicontrol_e64-0.2.1-py3-none-any.whl

Download URL dalicontrol_e64-0.2.1-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3d453c8170998cf4410f3453db340c9ad0c61e16888444757f7cda06c6805a0
BLAKE2b-256 checksum
How to use checksums
4a70c9c440baea018d1e94f43287b6b8bd4850f2f2cbb5a7aac0fe61f1997daa
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 log

Security for dalicontrol-e64 0.2.1

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.

Select from 2 files

Attestation for dalicontrol_e64-0.2.1.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 log

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