Skip to main content

DALI (“Digital Addressable Lighting Interface”) defines how lighting control gear (eg. fluorescent ballasts, LED dimmers) and input devices (push buttons, motion detectors, etc.) should interoperate. It is standardised in IEC 62386.

IEC 62386 contains several parts. Part 101 contains general requirements for all system components, part 102 covers general requirements for control gear, and part 103 describes general requirements for control devices. Parts 2xx extend part 102 with lamp-specific extensions and parts 3xx extend part 103 with input device specific extensions.

This library has been written with reference to the following documents:

  • IEC 62386-101:2014 (general requirements for system components)

  • IEC 62386-102:2014 (general requirements for control gear)

  • IEC 62386-103:2014 (general requirements for control devices)

  • IEC 62386-201:2009 (fluorescent lamps)

  • IEC 62386-202:2009 (self-contained emergency lighting)

  • IEC 62386-205:2009 (supply voltage controller for incandescent lamps)

  • IEC 62386-207:2009 (LED modules)

  • IEC 62386-301:2017 (particular requirements for push button input devices)

  • IEC 62386-303:2017 (particular requirements for occupancy sensor input devices)

I do not have copies of the other parts of the standard; they are fairly expensive to obtain. The library is designed to be extensible; adding support for the other parts ought to be easy and self-contained.

The dali.memory module supports the extended memory bank specifications created and maintained by the Digital Illumination Interface Alliance:

  • DiiA DALI Part 251 — Memory Bank 1 Extension

  • DiiA DALI Part 252 — Energy Reporting

  • DiiA DALI Part 253 — Diagnostics & Maintenance

Python versions supported

This library currently requires Python version 3.7 or later.

Stability

Some of the code in this project is experimental and its API is subject to change. Modules with stable APIs are noted below.

Library structure

  • dali

    • address - Device addressing; stable for gear, not stable for devices

    • command - Command registry, interface to command decoding; stable

    • device - DALI control devices as defined in IEC 62386; not stable

      • general - Commands and events from part 103

      • helpers - Useful functions and classes for working with DALI control devices

      • occupancy - Commands from part 303

      • pushbutton - Commands from part 301

      • sequences - Packaged sequences for working with DALI control devices

    • driver - Objects to communicate with physical DALI gateways or services; not stable

      • base - General driver contracts

      • hasseb - Driver for Hasseb DALI Master

      • tridonic - Driver for Tridonic DALI USB

      • daliserver - Driver for https://github.com/onitake/daliserver (needs to be adopted to dali.driver.base API)

      • hid - asyncio-based drivers for Tridonic DALI USB and hasseb DALI Master

      • serial - asyncio-based driver for Lunatone LUBA RS232 interfaces

      • atxled - Driver for ATX LED SERIAL DALI HAT

    • exceptions - DALI related exceptions

    • frame - Forward and backward frames; stable

    • gear - DALI control gear as defined in IEC 62386; stable

      • colour - Commands from part 209 (Device Type 8)

      • emergency - Commands from part 202

      • general - Commands from part 102

      • incandescent - Commands from part 205

      • led - Commands from part 207

    • memory - access to memory banks; not stable

    • sequences - packaged sequences of commands; stable

Contributors

  • Stephen Early (Author)

  • Robert Niederreiter

  • Diogo Gomes

  • Caiwan

  • Boldie

  • Martijn Hemeryck

  • Hans Baumgartner

  • Ferdinand Keil

  • Sean Lanigan, Wallace Building Systems Pty Ltd

  • Markus Becker

  • Jan Kundrát

  • Olivier Pieters

  • David Russell

Metadata

Release files for python-dali 0.11

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-dali 0.11
File Size Uploaded
python-dali-0.11.tar.gz 130.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-dali 0.11
File Interpreter ABI Platform
python_dali-0.11-py3-none-any.whl Python 3 none any Details

Total release size: 281.4 kB

Release files / python-dali-0.11.tar.gz

Download URL python-dali-0.11.tar.gz
Size 130.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fd50c6f096e7070e4e3c0beb088f0c73ac4814d53d4fbcdb4d3c3f69aefdf2a3
BLAKE2b-256 checksum
How to use checksums
d18c1e5d331109c3fef8c511a07c9c2e01b6323be54f7c26351cc532006c5785
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.5 CPython/3.10.12

Release files / python_dali-0.11-py3-none-any.whl

Download URL python_dali-0.11-py3-none-any.whl
Size 150.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
430428312fb0a815d2517943f50cd3a110cc0945075a21ee5545497f6692eae3
BLAKE2b-256 checksum
How to use checksums
4872651e9f3e45e2096aac3f346fd81c52ff527d63a9dbe1ac02367d1b854302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.5 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.11 This release

2 release files

0.10

2 release files

0.9

2 release files

0.8

2 release files

0.7.1

2 release files

0.7

2 release files

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

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