Communication service between the Ikea Tradfri gateway and MQTT
$
Source: https://github.com/ggravlingen/pytradfri
$ sudo pip3 install pytradfri
of update
$ sudo pip3 install --upgrade pytradfri
$ sudo apt install git autoconf automake libtool
$ cd
$ mkdir coap
$ cd coap
$ vi install-coap-client.sh
#!/bin/sh
git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
cd libcoap
./autogen.sh
./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr"
make
make install
$ sudo chmod +x install-coap-client.sh
$ sudo ./install-coap-client.sh