[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:
parent
89042439b8
commit
8db4641455
9 changed files with 336 additions and 91 deletions
23
virtualization/Docker/scripts/aiocoap
Executable file
23
virtualization/Docker/scripts/aiocoap
Executable file
|
@ -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 .
|
Loading…
Add table
Add a link
Reference in a new issue