Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.38 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.38 KB

dali2mqtt

DALI <-> MQTT bridge

About

This daemon is inspired in zigbee2mqtt and provides the means to integrate a DALI light controller into your Home Assistant setup.

Previously I developed a Home Assistant custom component (https://github.com/dgomes/home-assistant-custom-components/tree/master/light) but I've since decided to run Home Assistant in another device, away from the physical DALI Bus.

How to use

Create a Virtual Environment (recommended) and install the requirements

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Setup systemd

edit dali2mqtt.service and change the path of python3 to the path of your venv, after:

sudo cp dali2mqtt.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable dali2mqtt.service 

Give your user permissions to access the USB device

sudo adduser homeassistant plugdev 
cp 50-hasseb.rules /etc/udev/rules.d/

You might need to reboot your device after the last change.

In this example the user is homeassistant

Check everything is OK

sudo systemctl start dali2mqtt.service 
sudo systemctl status dali2mqtt.service 

Command line arguments and configuration file

When the daemon first runs, it creates a default config.ini file. You can edit the file to customize your setup.