OLA trigger config to control IKEA Trådfri lights & control outlets with DMX (Art-Net, sACN or via DMX input)
Requirements
Installation
- Download and install libcoap with DTLS support:
git clone --recursive https://github.com/obgm/libcoap.git
cd libcoap
git checkout dtls
git submodule update --init --recursive
./autogen.sh
./configure --disable-documentation --disable-shared
make
sudo make install
- Use the following string to connect to the Trådfri gateway and create a new DTLS identity (you will get a pre shared key from the gateway)
SECURITY_KEY = Trådfri security key. Printed on the back of gateway
IDENTITY = Your API user
HOSTNAME = Trådfri gateway hostname or IP address
coap-client -m post -u "Client_identity" -k "SECURITY_KEY" -e '{"9090":"IDENTITY"}' "coaps://HOSTNAME:5684/15011/9063"
- Download the tradfri.conf file and edit the configuration section
- Download the tradfri.sh shell script, place it in the same directory and make it executable with
chmod +x
Usage
- Before running ola_trigger, make sure that olad is running and the universe has been configured with a DMX512 source.
The config file is provided on the command line:
ola_trigger tradfri.conf
2018-11-10
Created a config for the new Trådfri control outlets.
2018-03-06
I have created a new config file tradfri_beta.conf that should support all IKEA Trådfri devices (single color, color temperature & RGB lamps) Also transition time can be changed using a third DMX channel (0-255 ms fade time)
It is still in beta stage so maybe we should change the fade time from millisecond till seconds instead. RGB color conversion would be nice to have.
Creating a plugin for OLA instead of using a trigger file would be better and would give more opportunities, but it requires more work and skills.