tree: b26c558e565406a84e2a0e40b9b56cc508721fae [path history] [tgz]
  1. third_party/
  2. lighting.py
  3. README.md
  4. requirements.txt
examples/lighting-app/python/README.md

Python-based lighting example (bridge) device to DALI

Installation

Build the Python/C library:

cd ~/connectedhomeip/
git submodule update --init
source scripts/activate.sh

./scripts/build_python_device.sh --chip_detail_logging true

sudo su # dhclient is called, needs root
source ./out/python_env/bin/activate

Install the python dependencies:

pip3 install python-dali

Plug-in a python-dali compatible USB-DALI interface.

Usage

Run the Python lighting matter device:

cd examples/lighting-app/python
python lighting.py

Control the Python lighting matter device using the Python controller REPL:

Python Controller