DALI <-> MQTT bridge
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.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
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
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
sudo systemctl start dali2mqtt.service
sudo systemctl status dali2mqtt.service
When the daemon first runs, it creates a default config.ini
file.
You can edit the file to customize your setup.