Skip to content
Library for controlling DALI lighting systems
Python Shell NSIS Batchfile
Branch: master
Clone or download
Pull request Compare This branch is 48 commits ahead of sde1000:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dali New hasseb firmware to fix a performance issue Jan 18, 2020
debian Update packaging to remove support for python 2.7 Oct 10, 2019
examples New hasseb firmware, hasseb example added Nov 26, 2019
gui Fixing bug in disable sniffing button Dec 28, 2019
.gitignore
.travis.yml Remove CI for python 2.7 Oct 10, 2019
CHANGES.rst Release 0.6 Nov 11, 2018
COPYING Licence change: LGPL3+ Sep 18, 2015
COPYING.LESSER Licence change: LGPL3+ Sep 18, 2015
LICENSE Add PyPI support Mar 19, 2017
README.rst README: added myself to list of contributors Oct 10, 2019
make-release Build system Apr 27, 2015
setup.py Update packaging to remove support for python 2.7 Oct 10, 2019

README.rst

python-dali — lighting control interface

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
    • address - Device addressing
    • bus - DALI bus and attached devices
    • command - Command registry, interface to command decoding
    • compat - Compatibility code for Python 2 and 3
    • device - DALI control devices as defined in IEC 62386
      • general - Commands and events from part 103
    • driver - Objects to communicate with physical DALI gateways or services
      • 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
    • exceptions - DALI related exceptions
    • frame - Forward and backward frames
    • gear - DALI control gear as defined in IEC 62386
      • emergency - Commands from part 202
      • general - Commands from part 102
      • incandescent - Commands from part 205
      • led - Commands from part 207

Contributors

  • Stephen Early (Author)
  • Robert Niederreiter
  • Diogo Gomes
  • Caiwan
  • Boldie
  • Martijn Hemeryck

Copyright

python-dali is Copyright (C) 2013–2019 Stephen Early <steve@assorted.org.uk>

It is distributed under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License and GNU General Public License along with this program. If not, see this link.

You can’t perform that action at this time.