[light.tradfri] async support with resource observation. (#7815)
* [light.tradfri] Initial support for observe * Update for pytradfri 2.0 * Fix imports * Fix missing call * Don't yield from add devices * Fix imports * Minor fixes to async code. * Imports, formatting * Docker updates, some minor async code changes. * Lint * Lint * Update pytradfri * Minor updates for release version * Build fixes * Retry observation if failed * Revert * Additional logging, fix returns * Fix rename * Bump version * Bump version * Support transitions * Lint * Fix transitions * Update Dockerfile * Set temp first * Observation error handling * Lint * Lint * Lint * Merge upstream changes * Fix bugs * Fix bugs * Fix bugs * Lint * Add sensor * Add sensor * Move sensor attrs * Filter devices better * Lint * Address comments * Pin aiocoap * Fix bug if no devices * Requirements
This commit is contained in:
committed by
Paulus Schoutsen
parent
89042439b8
commit
8db4641455
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
# Installs a modified coap client with support for dtls for use with IKEA Tradfri
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
python3 -m pip install cython
|
||||
|
||||
cd /usr/src/app/
|
||||
mkdir -p build && cd build
|
||||
|
||||
git clone --depth 1 https://git.fslab.de/jkonra2m/tinydtls
|
||||
cd tinydtls
|
||||
autoreconf
|
||||
./configure --with-ecc --without-debug
|
||||
cd cython
|
||||
python3 setup.py install
|
||||
|
||||
cd ../..
|
||||
git clone --depth 1 https://github.com/chrysn/aiocoap/
|
||||
cd aiocoap
|
||||
git reset --hard 0df6a1e44582de99ae944b6a7536d08e2a612e8f
|
||||
python3 -m pip install .
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Installs a modified coap client with support for dtls for use with IKEA Tradfri
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
apt-get install -y --no-install-recommends git autoconf automake libtool
|
||||
|
||||
cd /usr/src/app/
|
||||
mkdir -p build && cd build
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user