Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[Plugin Officiel][Sujet Principal] Ikea Light

Pour échanger sur les plugins classés en catégorie "Objets connectés"
Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par Nebz » 31 mai 2019, 14:42

iklo a écrit :Bonjour à tous,

J'utilise Jeedom depuis ... 7 jours, il est installé sur mon pi3B+ acheté pour l'occasion.
J'ai lu et relu ce post et donc installé la beta du plugins, cependant impossible de me connecter la gateway ikea ..

J'ai vérifié l'ip de la GW
J'ai vérifié et revérifier la security code

Mais j'obtiens toujours un "JSON file not found" et un "Key Error"

Que dois je faire de plus pour du debug ou de l'utilisation ?

J'ai oublié les séances de désintall/install du plugins, reboot de la GW

Voici les logs

Code : Tout sélectionner

[2019-05-31 13:30:05][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2019-05-31 13:30:05][INFO] : Lancement démon ikealight : sudo /usr/bin/python3 /var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py --loglevel debug --socketport 55025 --callback http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php --apikey impkrGeg6B08vrLVgUR0fA3pFvMYPcTI --cycle 0.1 --pid /tmp/jeedom/ikealight/deamon.pid --gatewayip 192.168.15.86 --gatewaycode 2yPDNDmJpTR2dunz
[2019-05-31 13:30:08][INFO] : Start ikeatradfrid
[2019-05-31 13:30:08][INFO] : Log level : debug
[2019-05-31 13:30:08][INFO] : Socket port : 55025
[2019-05-31 13:30:08][INFO] : Socket host : 127.0.0.1
[2019-05-31 13:30:08][INFO] : PID file : /tmp/jeedom/ikealight/deamon.pid
[2019-05-31 13:30:08][INFO] : Apikey : impkrGeg6B08vrLVgUR0fA3pFvMYPcTI
[2019-05-31 13:30:08][INFO] : Callback : http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php
[2019-05-31 13:30:08][INFO] : Cycle : 0.1
[2019-05-31 13:30:08][INFO] : Gateway Ip : 192.168.15.86
[2019-05-31 13:30:08][INFO] : Gateway Code : 2yPDNDmJpTR2dunz
[2019-05-31 13:30:08][DEBUG] : JSON file not found: tradfri_jeedom_psk.conf
[2019-05-31 13:30:08][DEBUG] : Executing 192.168.15.86 post ['15011', '9063']: {'9090': '37133e33d83248458883408bea98fe2e'}
Traceback (most recent call last):
File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 283, in <module>
identity = conf[args.gatewayip].get('identity')
KeyError: '192.168.15.86'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 290, in <module>
psk = api_factory.generate_psk(args.gatewaycode)
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 164, in generate_psk
self._psk = self.request(Gateway().generate_psk(existing_psk_id))
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 96, in request
return self._execute(api_commands, timeout=timeout)
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 83, in _execute
return_value = subprocess.check_output(command, **kwargs)
File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 383, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'coap-client'
[2019-05-31 13:30:35][ERROR] : Impossible de lancer le démon ikealightd, vérifiez le log
Hello,
Tu as un problème d'installation des dépendances, tu peux envoyer ce Log stp ?


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

iklo
Timide
Messages : 4
Inscription : 31 mai 2019, 13:25

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par iklo » 31 mai 2019, 17:35

oui bien sur. Je les ai lu pourtant plusieurs fois sans trouve de souci...
Merci pour ta réactivité

Code : Tout sélectionner

********************************************************
*             Installation des dépendances             *
********************************************************
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Hit:3 https://repo.mosquitto.org/debian stretch InRelease
Reading package lists...
Installation des dépendances apt
Reading package lists...
Building dependency tree...
Reading state information...
python3-setuptools is already the newest version (33.1.1-1).
python3-pip is already the newest version (9.0.1-2+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 82 not upgraded.
Requirement already satisfied: requests in /usr/lib/python3/dist-packages
Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages
Requirement already satisfied: pyudev in /usr/local/lib/python3.5/dist-packages
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pyudev)
Cloning into 'libcoap'...
Submodule 'ext/tinydtls' (https://git.eclipse.org/r/tinydtls/org.eclipse.tinydtls) registered for path 'ext/tinydtls'
Cloning into '/var/www/html/plugins/ikealight/resources/ikealightd/libcoap/ext/tinydtls'...
Submodule path 'ext/tinydtls': checked out 'cc5863fa0e438ba1fa46c05f2a27cd8dd3d85b96'
[HINT] You can run 'autogen.sh --clean' to remove all generated files by the autotools.
Found 'autoconf'.
Found 'aclocal'.
Couldn't find 'libtool'!
Found 'libtoolize'.
--->  Found all needed tools! That's fine.
Generating needed autotools files for libcoap by running autoreconf ...
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force ${ACLOCAL_FLAGS} -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: adding subdirectory ext/tinydtls to autoreconf
autoreconf: Entering directory `ext/tinydtls'
autoreconf: running: aclocal --force
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `ext/tinydtls'
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '../..'.
libtoolize: copying file '../../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:29: installing './ar-lib'
configure.ac:25: installing './compile'
configure.ac:33: installing './config.guess'
configure.ac:33: installing './config.sub'
configure.ac:18: installing './install-sh'
configure.ac:33: error: required file './ltmain.sh' not found
configure.ac:18: installing './missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing './depcomp'
autoreconf: automake failed with exit status: 1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works...
yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together...
yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface...
BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files...
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics...
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether C compiler accepts -Wlogical-op... yes
checking whether C compiler accepts -fdiagnostics-color... yes
checking whether the linker accepts -Wl,--version-script=./libcoap-1.map... yes
checking for ctags... /usr/bin/ctags
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence...
yes
checking for arpa/inet.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence...
yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking sys/unistd.h usability... yes
checking sys/unistd.h presence... yes
checking for sys/unistd.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/select.h usability...
yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for size_t... yes
checking for ssize_t... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strrchr... yes
checking for getaddrinfo... yes
checking for strnlen... yes
checking for malloc... yes
checking for library containing socket... none required
checking for library containing inet_ntop...
none required
checking for library containing clock_gettime... none required
checking operating system... Linux
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
********************************************************
*             Installation terminée                    *
********************************************************

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par Nebz » 31 mai 2019, 17:47

On voir que ce n'est pas passé à la fin, qqun a proposé d'installer make plus haut, il y a même la commande de memoire


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

EIen
Timide
Messages : 30
Inscription : 10 mai 2019, 17:00

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par EIen » 31 mai 2019, 18:03

iklo a écrit :
31 mai 2019, 13:35
Bonjour à tous,

J'utilise Jeedom depuis ... 7 jours, il est installé sur mon pi3B+ acheté pour l'occasion.
J'ai lu et relu ce post et donc installé la beta du plugins, cependant impossible de me connecter la gateway ikea ..

J'ai vérifié l'ip de la GW
J'ai vérifié et revérifier la security code

Mais j'obtiens toujours un "JSON file not found" et un "Key Error"

Que dois je faire de plus pour du debug ou de l'utilisation ?

J'ai oublié les séances de désintall/install du plugins, reboot de la GW

Voici les logs

Code : Tout sélectionner

[2019-05-31 13:30:05][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2019-05-31 13:30:05][INFO] : Lancement démon ikealight : sudo /usr/bin/python3 /var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py --loglevel debug --socketport 55025 --callback http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php --apikey impkrGeg6B08vrLVgUR0fA3pFvMYPcTI --cycle 0.1 --pid /tmp/jeedom/ikealight/deamon.pid --gatewayip 192.168.15.86 --gatewaycode 2yPDNDmJpTR2dunz
[2019-05-31 13:30:08][INFO] : Start ikeatradfrid
[2019-05-31 13:30:08][INFO] : Log level : debug
[2019-05-31 13:30:08][INFO] : Socket port : 55025
[2019-05-31 13:30:08][INFO] : Socket host : 127.0.0.1
[2019-05-31 13:30:08][INFO] : PID file : /tmp/jeedom/ikealight/deamon.pid
[2019-05-31 13:30:08][INFO] : Apikey : impkrGeg6B08vrLVgUR0fA3pFvMYPcTI
[2019-05-31 13:30:08][INFO] : Callback : http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php
[2019-05-31 13:30:08][INFO] : Cycle : 0.1
[2019-05-31 13:30:08][INFO] : Gateway Ip : 192.168.15.86
[2019-05-31 13:30:08][INFO] : Gateway Code : 2yPDNDmJpTR2dunz
[2019-05-31 13:30:08][DEBUG] : JSON file not found: tradfri_jeedom_psk.conf
[2019-05-31 13:30:08][DEBUG] : Executing 192.168.15.86 post ['15011', '9063']: {'9090': '37133e33d83248458883408bea98fe2e'}
Traceback (most recent call last):
File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 283, in <module>
identity = conf[args.gatewayip].get('identity')
KeyError: '192.168.15.86'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 290, in <module>
psk = api_factory.generate_psk(args.gatewaycode)
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 164, in generate_psk
self._psk = self.request(Gateway().generate_psk(existing_psk_id))
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 96, in request
return self._execute(api_commands, timeout=timeout)
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 83, in _execute
return_value = subprocess.check_output(command, **kwargs)
File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 383, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'coap-client'
[2019-05-31 13:30:35][ERROR] : Impossible de lancer le démon ikealightd, vérifiez le log
Il nous faudrait la log complète. La on ne sait pas si c'est la log jeedom ou ikealight.

Après vérifie aussi ta clé. Je me suis fais avoir avec les 0 et les O. La typo Ikea est space

Sartog
Actif
Messages : 502
Inscription : 27 août 2015, 14:54

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par Sartog » 31 mai 2019, 18:44

Bonjour,

Je viens de mettre à jour en stable suite au message de Nebz indiquant que la béta fût poussé en stable.

Hélas, ça ne fonctionne toujours pas ... j'avais ce genre de message d'erreur quand il y avait un caractère non supporté dans le nom de l'ampoule, mais tout ces caractères ont étés retirés depuis longtemps et ça à fonctionné.

Code : Tout sélectionner

[2019-05-31 18:33:42][INFO] : Lancement démon ikealight : sudo /usr/bin/python3 /var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py --loglevel debug --socketport 55025 --callback http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php --apikey CodeAPIKeyici --cycle 0.1 --pid /tmp/jeedom/ikealight/deamon.pid --gatewayip 192.168.0.111 --gatewaycode CodeGWici
[2019-05-31 16:33:43][INFO] : Start ikeatradfrid
[2019-05-31 16:33:43][INFO] : Log level : debug
[2019-05-31 16:33:43][INFO] : Socket port : 55025
[2019-05-31 16:33:43][INFO] : Socket host : 127.0.0.1
[2019-05-31 16:33:43][INFO] : PID file : /tmp/jeedom/ikealight/deamon.pid
[2019-05-31 16:33:43][INFO] : Apikey : CodeAPIKeyici
[2019-05-31 16:33:43][INFO] : Callback : http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php
[2019-05-31 16:33:43][INFO] : Cycle : 0.1
[2019-05-31 16:33:43][INFO] : Gateway Ip : 192.168.0.111
[2019-05-31 16:33:43][INFO] : Gateway Code : CodeGWici
[2019-05-31 16:33:43][DEBUG] : Writing PID 28487 to /tmp/jeedom/ikealight/deamon.pid
[2019-05-31 16:33:43][DEBUG] : Init request module v2.19.1
[2019-05-31 16:33:43][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2019-05-31 18:33:43][DEBUG] : Format Invalide
[2019-05-31 16:33:43][DEBUG] : http://127.0.0.1:80 "GET /plugins/ikealight/core/php/jeeIkealight.php?apikey=CodeAPIKeyici HTTP/1.1" 200 0
[2019-05-31 16:33:43][DEBUG] : Socket interface started
[2019-05-31 16:33:43][DEBUG] : LoopNetServer Thread started
[2019-05-31 16:33:43][INFO] : Start listening...
[2019-05-31 16:33:43][DEBUG] : Listening on: [127.0.0.1:55025]
[2019-05-31 16:33:43][DEBUG] : Read Socket Thread Launched
[2019-05-31 16:33:43][DEBUG] : Thread_follower Thread Launched
[2019-05-31 16:33:43][DEBUG] : Thread_killer Thread Launched
[2019-05-31 16:33:46][DEBUG] : Client connected to [127.0.0.1:35330]
[2019-05-31 16:33:46][DEBUG] : Message read from socket: b'{"apikey":"CodeAPIKeyici","cmd":"add","id":"65550","model":"tradfri_bulb_e14_ws_opal_400lm"}'
[2019-05-31 16:33:46][DEBUG] : Client disconnected from [127.0.0.1:35330]
[2019-05-31 16:33:46][DEBUG] : Client connected to [127.0.0.1:35331]
[2019-05-31 16:33:46][DEBUG] : Message read from socket: b'{"apikey":"CodeAPIKeyici","cmd":"add","id":"65551","model":"tradfri_bulb_e14_ws_opal_400lm"}'
[2019-05-31 16:33:46][DEBUG] : Client disconnected from [127.0.0.1:35331]
[2019-05-31 16:33:46][DEBUG] : Client connected to [127.0.0.1:35332]
[2019-05-31 16:33:46][DEBUG] : Message read from socket: b'{"apikey":"CodeAPIKeyici","cmd":"add","id":"65547","model":"tradfri_bulb_e14_ws_opal_400lm"}'
[2019-05-31 16:33:46][DEBUG] : Client disconnected from [127.0.0.1:35332]
[2019-05-31 16:33:46][DEBUG] : Client connected to [127.0.0.1:35333]
[2019-05-31 16:33:46][DEBUG] : Message read from socket: b'{"apikey":"CodeAPIKeyici","cmd":"add","id":"65539","model":"tradfri_bulb_e14_ws_opal_400lm"}'
[2019-05-31 16:33:46][DEBUG] : Client disconnected from [127.0.0.1:35333]
[2019-05-31 16:33:46][DEBUG] : Client connected to [127.0.0.1:35334]
[2019-05-31 16:33:46][DEBUG] : Message read from socket: b'{"apikey":"CodeAPIKeyici","cmd":"add","id":"65545","model":"tradfri_bulb_e27_cws_opal_600lm"}'
[2019-05-31 16:33:46][DEBUG] : Client disconnected from [127.0.0.1:35334]
[2019-05-31 16:33:46][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2019-05-31 16:33:46][DEBUG] : Received command from jeedom : add
[2019-05-31 16:33:46][DEBUG] : Add device : 65550
[2019-05-31 16:33:46][DEBUG] : Executing 192.168.0.111 get ['15001', '65550']
[2019-05-31 16:33:47][DEBUG] : Thread for 65550 doesn't exists anymore relaunching
[2019-05-31 16:33:47][DEBUG] : Executing 192.168.0.111 get ['15001', '65550']
[2019-05-31 16:33:56][ERROR] : Exception on socket :
[2019-05-31 16:33:57][DEBUG] :
[2019-05-31 16:33:57][DEBUG] : Thread for 65550 doesn't exists anymore relaunching
[2019-05-31 16:33:57][DEBUG] : Executing 192.168.0.111 get ['15001', '65550']
[2019-05-31 16:33:57][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2019-05-31 16:33:57][DEBUG] : Received command from jeedom : add
[2019-05-31 16:33:57][DEBUG] : Add device : 65551
[2019-05-31 16:33:57][DEBUG] : Executing 192.168.0.111 get ['15001', '65551']
[2019-05-31 16:34:07][DEBUG] :
[2019-05-31 16:34:07][DEBUG] : Thread for 65550 doesn't exists anymore relaunching
[2019-05-31 16:34:07][DEBUG] : Executing 192.168.0.111 get ['15001', '65550']
[2019-05-31 16:34:07][ERROR] : Exception on socket :
[2019-05-31 16:34:07][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2019-05-31 16:34:07][DEBUG] : Received command from jeedom : add
[2019-05-31 16:34:07][DEBUG] : Add device : 65547
[2019-05-31 16:34:07][DEBUG] : Executing 192.168.0.111 get ['15001', '65547']
[2019-05-31 16:34:17][DEBUG] :
[2019-05-31 16:34:17][DEBUG] : Thread for 65550 doesn't exists anymore relaunching
[2019-05-31 16:34:17][DEBUG] : Executing 192.168.0.111 get ['15001', '65550']
[2019-05-31 16:34:17][ERROR] : Exception on socket :
[2019-05-31 16:34:17][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2019-05-31 16:34:17][DEBUG] : Received command from jeedom : add
[2019-05-31 16:34:17][DEBUG] : Add device : 65539
[2019-05-31 16:34:17][DEBUG] : Executing 192.168.0.111 get ['15001', '65539']
[2019-05-31 16:34:27][DEBUG] :
[2019-05-31 16:34:27][DEBUG] : Thread for 65550 doesn't exists anymore relaunching
[2019-05-31 16:34:27][DEBUG] : Executing 192.168.0.111 get ['15001', '65550']
[2019-05-31 16:34:27][ERROR] : Exception on socket :
[2019-05-31 16:34:28][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2019-05-31 16:34:28][DEBUG] : Received command from jeedom : add
[2019-05-31 16:34:28][DEBUG] : Add device : 65545
[2019-05-31 16:34:28][DEBUG] : Executing 192.168.0.111 get ['15001', '65545']
[2019-05-31 16:34:29][DEBUG] : Client connected to [127.0.0.1:36342]
[2019-05-31 16:34:29][DEBUG] : Message read from socket: b'{"apikey":"CodeAPIKeyici","cmd":"send","model":"tradfri_bulb_e27_cws_opal_600lm","id":"65545","type":"","action":"on","option":""}'
[2019-05-31 16:34:29][DEBUG] : Client disconnected from [127.0.0.1:36342]
[2019-05-31 16:34:37][DEBUG] :
[2019-05-31 16:34:37][DEBUG] : Thread for 65545 doesn't exists anymore relaunching
[2019-05-31 16:34:37][DEBUG] : Executing 192.168.0.111 get ['15001', '65545']
[2019-05-31 16:34:38][ERROR] : Exception on socket :
[2019-05-31 16:34:38][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2019-05-31 16:34:38][DEBUG] : Received command from jeedom : send
[2019-05-31 16:34:38][DEBUG] : Executing action on : tradfri_bulb_e27_cws_opal_600lm with id 65545
[2019-05-31 16:34:38][DEBUG] : Executing
[2019-05-31 16:34:38][DEBUG] : Executing 192.168.0.111 get ['15001', '65545']
[2019-05-31 16:34:43][DEBUG] : Error executing request: Command '['coap-client', '-u', '5aa3ce7942c248da86a7a10934f953b7', '-k', 'W1BdJ4mns2EVyz8Z', '-v', '0', '-m', 'get', 'coaps://192.168.0.111:5684/15001/65545']' returned non-zero exit status -15
[2019-05-31 16:34:43][DEBUG] : Thread for 65545 doesn't exists anymore relaunching
[2019-05-31 16:34:43][DEBUG] : Executing 192.168.0.111 get ['15001', '65545']
[2019-05-31 16:34:43][ERROR] : Exception on socket : Error executing request: Command '['coap-client', '-u', '5aa3ce7942c248da86a7a10934f953b7', '-k', 'W1BdJ4mns2EVyz8Z', '-v', '0', '-m', 'get', 'coaps://192.168.0.111:5684/15001/65545']' returned non-zero exit status -15
[2019-05-31 16:34:53][DEBUG] :
[2019-05-31 16:34:53][DEBUG] : Thread for 65545 doesn't exists anymore relaunching
[2019-05-31 16:34:53][DEBUG] : Executing 192.168.0.111 get ['15001', '65545']
La MAJ des dépendances ne pose pas de problème, même si je m'interroge sur la fin :

Code : Tout sélectionner

checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
********************************************************
*             Installation terminée                    *
********************************************************
Je ne suis pas chez moi, donc aucune app Ikea ne vient polluer la connexion.
Box : smart, mini+, pi 2 et 3, ipbx800 v4
Protocole : Z-Wave (Fibaro & Qubino), Ikea, Bluetooth
Méteo : Netatmo
Audio : Sonos (Play 1 et 5)

Avatar de l’utilisateur
Poumi
Actif
Messages : 660
Inscription : 21 mars 2019, 22:41

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par Poumi » 31 mai 2019, 18:47

Tu as le même problème de dépendances que 3 messages plus haut...

iklo
Timide
Messages : 4
Inscription : 31 mai 2019, 13:25

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par iklo » 31 mai 2019, 19:05

EIen a écrit :
31 mai 2019, 18:03
.....
Il nous faudrait la log complète. La on ne sait pas si c'est la log jeedom ou ikealight.

Après vérifie aussi ta clé. Je me suis fais avoir avec les 0 et les O. La typo Ikea est space

Ce sont mes logs ikealight, je ne sais pas où trouver les logs jeedom

J'ai vérifié ma clé et il n'y a ni 0 ni O
Nebz a écrit :
31 mai 2019, 17:47
On voir que ce n'est pas passé à la fin, qqun a proposé d'installer make plus haut, il y a même la commande de memoire
soit je me plante mais voici ce que j'ai fais

Code : Tout sélectionner

sudo apt-get update
sudo apt-get upgrade
G même fais

Code : Tout sélectionner

sudo apt-get install automake autoconf libtool
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
autoconf is already the newest version (2.69-10).
automake is already the newest version (1:1.15-6).
libtool is already the newest version (2.4.6-2).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
mais je reste au même stade pour les dépendances

Code : Tout sélectionner

********************************************************
*             Installation des dépendances             *
********************************************************
Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Hit:3 https://repo.mosquitto.org/debian stretch InRelease
Fetched 15.0 kB in 1s (9817 B/s)
Reading package lists...
Installation des dépendances apt
Reading package lists...
Building dependency tree...
Reading state information...
python3-setuptools is already the newest version (33.1.1-1).
python3-pip is already the newest version (9.0.1-2+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already satisfied: requests in /usr/lib/python3/dist-packages
Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages
Requirement already satisfied: pyudev in /usr/local/lib/python3.5/dist-packages
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pyudev)
rm: cannot remove 'libcoap': No such file or directory
Cloning into 'libcoap'...
Submodule 'ext/tinydtls' (https://git.eclipse.org/r/tinydtls/org.eclipse.tinydtls) registered for path 'ext/tinydtls'
Cloning into '/var/www/html/plugins/ikealight/resources/ikealightd/libcoap/ext/tinydtls'...
Submodule path 'ext/tinydtls': checked out 'cc5863fa0e438ba1fa46c05f2a27cd8dd3d85b96'
[HINT] You can run 'autogen.sh --clean' to remove all generated files by the autotools.
Found 'autoconf'.
Found 'aclocal'.
Couldn't find 'libtool'!
Found 'libtoolize'.
--->  Found all needed tools! That's fine.
Generating needed autotools files for libcoap by running autoreconf ...
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force ${ACLOCAL_FLAGS} -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: adding subdirectory ext/tinydtls to autoreconf
autoreconf: Entering directory `ext/tinydtls'
autoreconf: running: aclocal --force
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `ext/tinydtls'
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '../..'.
libtoolize: copying file '../../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:29: installing './ar-lib'
configure.ac:25: installing './compile'
configure.ac:33: installing './config.guess'
configure.ac:33: installing './config.sub'
configure.ac:18: installing './install-sh'
configure.ac:33: error: required file './ltmain.sh' not found
configure.ac:18: installing './missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing './depcomp'
autoreconf: automake failed with exit status: 1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether C compiler accepts -Wlogical-op... yes
checking whether C compiler accepts -fdiagnostics-color... yes
checking whether the linker accepts -Wl,--version-script=./libcoap-1.map... yes
checking for ctags... /usr/bin/ctags
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking sys/unistd.h usability... yes
checking sys/unistd.h presence... yes
checking for sys/unistd.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for size_t... yes
checking for ssize_t... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strrchr... yes
checking for getaddrinfo... yes
checking for strnlen... yes
checking for malloc... yes
checking for library containing socket... none required
checking for library containing inet_ntop... none required
checking for library containing clock_gettime... none required
checking operating system... Linux
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
********************************************************
*             Installation terminée                    *
********************************************************

Sartog
Actif
Messages : 502
Inscription : 27 août 2015, 14:54

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par Sartog » 31 mai 2019, 22:51

Cela à peut être rien à voir, mais est-ce normal que la MAJ des dépendances passe le fichier ressources\ltmain.sh et le dossier ressources\ikealightd\libcoap en lecture seul ?
Box : smart, mini+, pi 2 et 3, ipbx800 v4
Protocole : Z-Wave (Fibaro & Qubino), Ikea, Bluetooth
Méteo : Netatmo
Audio : Sonos (Play 1 et 5)

sim2000
Timide
Messages : 65
Inscription : 08 avr. 2018, 23:19

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par sim2000 » 01 juin 2019, 02:17

Salut à tous,

J'ai un problème aussi quand j'essaie de démarrer le démon.

J'ai un problème avec typing moi aussi:

Code : Tout sélectionner

[2019-06-01 02:10:03][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2019-06-01 02:10:04][INFO] : Lancement démon ikealight : sudo /usr/bin/python3 /var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py --loglevel debug --socketport 55025 --callback http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php --apikey HHXgQZ5d7KZmpXS3n48XZEIcOa5Wbh3u --cycle 0.1 --pid /tmp/jeedom/ikealight/deamon.pid --gatewayip 192.168.1.180 --gatewaycode ZH3VE3raNxrePuLL
Traceback (most recent call last):
  File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 29, in <module>
    import utils
  File "/var/www/html/plugins/ikealight/resources/ikealightd/utils.py", line 1, in <module>
    from pytradfri.const import (ATTR_LIGHT_COLOR_X as X, ATTR_LIGHT_COLOR_Y as Y)
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/__init__.py", line 5, in <module>
    from .gateway import Gateway
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/gateway.py", line 16, in <module>
    from .smart_task import SmartTask
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/smart_task.py", line 34, in <module>
    from .util import BitChoices
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/util.py", line 5, in <module>
    from typing import Union, List, Dict
ImportError: No module named 'typing'
[2019-06-01 02:10:34][ERROR] : Impossible de lancer le démon ikealightd, vérifiez le log
[2019-06-01 02:10:51][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2019-06-01 02:10:52][INFO] : Lancement démon ikealight : sudo /usr/bin/python3 /var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py --loglevel debug --socketport 55025 --callback http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php --apikey HHXgQZ5d7KZmpXS3n48XZEIcOa5Wbh3u --cycle 0.1 --pid /tmp/jeedom/ikealight/deamon.pid --gatewayip 192.168.1.180 --gatewaycode ZH3VE3raNxrePuLL
Traceback (most recent call last):
  File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 29, in <module>
    import utils
  File "/var/www/html/plugins/ikealight/resources/ikealightd/utils.py", line 1, in <module>
    from pytradfri.const import (ATTR_LIGHT_COLOR_X as X, ATTR_LIGHT_COLOR_Y as Y)
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/__init__.py", line 5, in <module>
    from .gateway import Gateway
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/gateway.py", line 16, in <module>
    from .smart_task import SmartTask
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/smart_task.py", line 34, in <module>
    from .util import BitChoices
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/util.py", line 5, in <module>
    from typing import Union, List, Dict
ImportError: No module named 'typing'
[2019-06-01 02:11:22][ERROR] : Impossible de lancer le démon ikealightd, vérifiez le log
J'ai donc tenté la commande: pip install typing
J'ai ce résultat:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: typing in /usr/local/lib/python2.7/dist-packages (3.6.6)

Donc pas d'erreur mais rien de mieux.
Comme dit plus haut j'ai tenté: pip3 install typing
Et là j'ai: bash: pip3: command not found

Avez-vous une petite idée? :D

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par Nebz » 01 juin 2019, 03:43

sim2000 a écrit :Salut à tous,

J'ai un problème aussi quand j'essaie de démarrer le démon.

J'ai un problème avec typing moi aussi:

Code : Tout sélectionner

[2019-06-01 02:10:03][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2019-06-01 02:10:04][INFO] : Lancement démon ikealight : sudo /usr/bin/python3 /var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py --loglevel debug --socketport 55025 --callback http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php --apikey HHXgQZ5d7KZmpXS3n48XZEIcOa5Wbh3u --cycle 0.1 --pid /tmp/jeedom/ikealight/deamon.pid --gatewayip 192.168.1.180 --gatewaycode ZH3VE3raNxrePuLL
Traceback (most recent call last):
  File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 29, in <module>
    import utils
  File "/var/www/html/plugins/ikealight/resources/ikealightd/utils.py", line 1, in <module>
    from pytradfri.const import (ATTR_LIGHT_COLOR_X as X, ATTR_LIGHT_COLOR_Y as Y)
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/__init__.py", line 5, in <module>
    from .gateway import Gateway
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/gateway.py", line 16, in <module>
    from .smart_task import SmartTask
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/smart_task.py", line 34, in <module>
    from .util import BitChoices
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/util.py", line 5, in <module>
    from typing import Union, List, Dict
ImportError: No module named 'typing'
[2019-06-01 02:10:34][ERROR] : Impossible de lancer le démon ikealightd, vérifiez le log
[2019-06-01 02:10:51][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2019-06-01 02:10:52][INFO] : Lancement démon ikealight : sudo /usr/bin/python3 /var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py --loglevel debug --socketport 55025 --callback http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php --apikey HHXgQZ5d7KZmpXS3n48XZEIcOa5Wbh3u --cycle 0.1 --pid /tmp/jeedom/ikealight/deamon.pid --gatewayip 192.168.1.180 --gatewaycode ZH3VE3raNxrePuLL
Traceback (most recent call last):
  File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 29, in <module>
    import utils
  File "/var/www/html/plugins/ikealight/resources/ikealightd/utils.py", line 1, in <module>
    from pytradfri.const import (ATTR_LIGHT_COLOR_X as X, ATTR_LIGHT_COLOR_Y as Y)
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/__init__.py", line 5, in <module>
    from .gateway import Gateway
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/gateway.py", line 16, in <module>
    from .smart_task import SmartTask
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/smart_task.py", line 34, in <module>
    from .util import BitChoices
  File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/util.py", line 5, in <module>
    from typing import Union, List, Dict
ImportError: No module named 'typing'
[2019-06-01 02:11:22][ERROR] : Impossible de lancer le démon ikealightd, vérifiez le log
J'ai donc tenté la commande: pip install typing
J'ai ce résultat:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: typing in /usr/local/lib/python2.7/dist-packages (3.6.6)

Donc pas d'erreur mais rien de mieux.
Comme dit plus haut j'ai tenté: pip3 install typing
Et là j'ai: bash: pip3: command not found

Avez-vous une petite idée? :D
Ceux qui sont repassés en stable et qui ont des problèmes, créez un ticket chez jeedom avec tous vos logs et erreurs et symptômes. Ça sera plus simple :-)


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

sim2000
Timide
Messages : 65
Inscription : 08 avr. 2018, 23:19

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par sim2000 » 02 juin 2019, 17:19

Bon je viens de résoudre le problème en tentant d'en résoudre un autre...
Je galère sur l'installation des dépendances pour Google Cast, j'ai fait les commandes:
sudo apt-get remove python3-pip
sudo apt-get -y install python3-pip

Et j'ai récupéré IKEA LIGHT! Bon par contre pour Google Cast c'est pas ça... :(
Dernière édition par sim2000 le 02 juin 2019, 19:23, édité 1 fois.

morlong
Timide
Messages : 318
Inscription : 21 déc. 2015, 13:09
Localisation : Dijon

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par morlong » 02 juin 2019, 19:20

Cool ca fonctionne aussi chez moi en faisant ça...merci

Envoyé de mon SM-T580 en utilisant Tapatalk

smart
Rfxcom
clé bluetooth *2
Zigate

Jonathann
Timide
Messages : 31
Inscription : 26 avr. 2019, 15:30

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par Jonathann » 02 juin 2019, 23:13

bonsoir à tous,

J'ai aussi un problème depuis hier soir. Plus aucune communication entre jeedom et ma GW ikea. Les dépendances se sont mises en KO du coup impossible que ca fonctionne... Pourtant tout fonctionner très bien avant.
Dans un 1er temps j'avais installé la version STABLE la 1ere fois mais ca ne fonctionner pas du coup j'ai installé la version BETA qui fonctionné parfaitement.
Si quelqu'un peut m'aider svp?

Merci d'avance pour votre aide.


Ci dessous mes logs du plugin:
*******************************************************
* Installation des dépendances *
********************************************************
Hit:1 https://repo.mosquitto.org/debian stretch InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
Reading package lists...
Installation des dépendances apt
Reading package lists...
Building dependency tree...
Reading state information...
python3-setuptools is already the newest version (33.1.1-1).
python3-pip is already the newest version (9.0.1-2+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
sudo: pip3: command not found
sudo: pip3: command not found
sudo: pip3: command not found
Cloning into 'libcoap'...
Submodule 'ext/tinydtls' (https://git.eclipse.org/r/tinydtls/org.eclipse.tinydtls) registered for path 'ext/tinydtls'
Cloning into '/var/www/html/plugins/ikealight/resources/ikealightd/libcoap/ext/tinydtls'...
Submodule path 'ext/tinydtls': checked out 'cc5863fa0e438ba1fa46c05f2a27cd8dd3d85b96'
[HINT] You can run 'autogen.sh --clean' to remove all generated files by the autotools.
Found 'autoconf'.
Found 'aclocal'.
Couldn't find 'libtool'!
Found 'libtoolize'.
---> Found all needed tools! That's fine.
Generating needed autotools files for libcoap by running autoreconf ...
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force ${ACLOCAL_FLAGS} -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: adding subdirectory ext/tinydtls to autoreconf
autoreconf: Entering directory `ext/tinydtls'
autoreconf: running: aclocal --force
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `ext/tinydtls'
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '../..'.
libtoolize: copying file '../../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:29: installing './ar-lib'
configure.ac:25: installing './compile'
configure.ac:33: installing './config.guess'
configure.ac:33: installing './config.sub'
configure.ac:18: installing './install-sh'
configure.ac:33: error: required file './ltmain.sh' not found
configure.ac:18: installing './missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing './depcomp'
autoreconf: automake failed with exit status: 1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface...
ar
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object...
ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o...
yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether C compiler accepts -Wlogical-op... yes
checking whether C compiler accepts -fdiagnostics-color... yes
checking whether the linker accepts -Wl,--version-script=./libcoap-1.map... yes
checking for ctags... no
configure: ==> Note: 'ctags' command not found!
configure: WARNING: ==> Without ctags you will be unable to run the target 'update-map-file'!
configure: WARNING: ==> This is no problem if you just want to build the library libcoap.
configure: ==> Note: your ctags does not support '--c-kinds'!
configure: ==> Most likely, you are using the GNU Emacs ctag and not exuberant ctag
configure: WARNING: ==> This option is required for target 'update-map-file'
configure: WARNING: ==> which is not a problem if you just want to build the library libcoap.
checking assert.h usability... yes
checking assert.h presence...
yes
checking for assert.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/socket.h usability...
yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking sys/unistd.h usability... yes
checking sys/unistd.h presence... yes
checking for sys/unistd.h... yes
checking syslog.h usability... yes
checking syslog.h presence...
yes
checking for syslog.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for size_t... yes
checking for ssize_t... yes
checking for memset... yes
checking for select...
yes
checking for socket... yes
checking for strcasecmp... yes
checking for strrchr... yes
checking for getaddrinfo...
yes
checking for strnlen... yes
checking for malloc... yes
checking for library containing socket... none required
checking for library containing inet_ntop... none required
checking for library containing clock_gettime...
none required
checking operating system... Linux
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
********************************************************
* Installation terminée *
********************************************************

Jonathann
Timide
Messages : 31
Inscription : 26 avr. 2019, 15:30

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par Jonathann » 03 juin 2019, 16:09

Dois je faire un
sudo apt-get remove python3-pip
sudo apt-get install python3-pip
??

Jonathann
Timide
Messages : 31
Inscription : 26 avr. 2019, 15:30

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par Jonathann » 03 juin 2019, 19:57

Je me réponds a moi même mais si quelqu’un à le problème il pourra le resoudre.

Si vous avez un problème de sudo command pip3
Il faut faire un
sudo apt-get remove python3-pip
sudo apt-get install python3-pip

Et relancer les dépendances

AVS Protect
Timide
Messages : 19
Inscription : 24 avr. 2018, 18:45

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par AVS Protect » 05 juin 2019, 13:31

Bonjour,
J'ai suivi tous les conseils et manipulations donnés ce dessus mais rien n'y fait. Mon démon reste en NOK. J'ai passé le plugin en stable en beta revenu en stable toujours pareil. Merci d'avance

[2019-06-05 13:32:08][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
Traceback (most recent call last):
File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 283, in <module>
identity = conf[args.gatewayip].get('identity')
KeyError: '192.168.1.16'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 290, in <module>
psk = api_factory.generate_psk(args.gatewaycode)
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 164, in generate_psk
self._psk = self.request(Gateway().generate_psk(existing_psk_id))
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 96, in request
return self._execute(api_commands, timeout=timeout)
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 83, in _execute
return_value = subprocess.check_output(command, **kwargs)
File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 383, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'coap-client'
[2019-06-05 13:32:38][ERROR] : Impossible de lancer le démon ikealightd, vérifiez le log

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par Nebz » 05 juin 2019, 14:47

AVS Protect a écrit :Bonjour,
J'ai suivi tous les conseils et manipulations donnés ce dessus mais rien n'y fait. Mon démon reste en NOK. J'ai passé le plugin en stable en beta revenu en stable toujours pareil. Merci d'avance

[2019-06-05 13:32:08][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
Traceback (most recent call last):
File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 283, in <module>
identity = conf[args.gatewayip].get('identity')
KeyError: '192.168.1.16'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.py", line 290, in <module>
psk = api_factory.generate_psk(args.gatewaycode)
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 164, in generate_psk
self._psk = self.request(Gateway().generate_psk(existing_psk_id))
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 96, in request
return self._execute(api_commands, timeout=timeout)
File "/var/www/html/plugins/ikealight/resources/ikealightd/pytradfri/api/libcoap_api.py", line 83, in _execute
return_value = subprocess.check_output(command, **kwargs)
File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 383, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'coap-client'
[2019-06-05 13:32:38][ERROR] : Impossible de lancer le démon ikealightd, vérifiez le log
Hello

Ta clé semble incorrecte... laquelle prends-tu ?


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

AVS Protect
Timide
Messages : 19
Inscription : 24 avr. 2018, 18:45

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par AVS Protect » 05 juin 2019, 22:05

Merci de prendre le temps de me répondre Nebz. Je prend la clé au dos de la passerelle Ikea. Cela fonctionnait auparavant mais ne fonctionne plus depuis la derniere mise à jour du plugin....

iklo
Timide
Messages : 4
Inscription : 31 mai 2019, 13:25

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par iklo » 08 juin 2019, 11:26

Nouvelle version du plugins en beta !
J'ai mis à jour, rélancé les dépendances et le daemon tourne :D :D :D :D

Avatar de l’utilisateur
jumpcom
Timide
Messages : 363
Inscription : 06 mai 2015, 18:41

Re: [Plugin Officiel][Sujet Principal] Ikea Light

Message par jumpcom » 11 juin 2019, 11:08

Bonjour,

Ce post ne concerne pas une panne mais je viens aux nouvelles concernant une fonction "future" possible, probable ou utopique, des ampoules Tradfri Ikea :

Est -ce que quelqu'un sait si Ikea prévoit une mise à jour de ses ampoules afin qu'elles conservent en memoire l'état après une coupure de courant ?

Car quand le courant revient après une coupure, les ampoules Ikea s'allument... même si elles consomment peu, c'est un peu nul...

Merci pour le Plugin Ikea.
Jeedom sur Rpi2 - RfxCom
Matériel utilisé

Répondre

Revenir vers « [Catégorie] Objets connectés »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 15 invités