Skip to main content

Interface to DALI lighting systems

Project description

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)

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.

Library structure

  • dali/
    • exceptions.py (not yet implemented - some exceptions defined in-place)

    • frame.py - forward and backward frames

    • command.py - command registry, interface to command decoding

    • gear/ - control gear
      • general.py - commands from part 102

      • fluorescent.py - commands from part 201 (not yet implemented)

      • emergency.py - commands from part 202

      • incandescent.py - commands from part 205

      • led.py - commands from part 207

    • device/ - control devices and events from them
      • general.py - commands and events from part 103

    • interface/
      • daliserver.py - interface to https://github.com/onitake/daliserver (not yet implemented - currently lives in dali.interfaces module directly)

      • tridonic.py - driver for Tridonic DALI-USB device (prototype - needs love)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-dali-0.3b.tar.gz (35.3 kB view details)

Uploaded Source

File details

Details for the file python-dali-0.3b.tar.gz.

File metadata

  • Download URL: python-dali-0.3b.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-dali-0.3b.tar.gz
Algorithm Hash digest
SHA256 7288b85a946b978416a4dc97a63adf4a3f883d4c0eb42538e5b2884cc7596c57
MD5 2140586a0886013e8cc240f7831682db
BLAKE2b-256 2bef6a8be6bc795ea1b7c1a7a818fdbe16372b5716828f369b7d986499e5c66a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page