Impossibilité de récupérer la clé API pour Conbee2

Bonjour à tous,

suite à mon récent intéressement à la domotique, et ayant un RPi 3 sous la main, je me suis lancé dans cette aventure.
J’ai donc fait l’acquisition d’une clé PHOSCON ConBee 2.

L’installation de Jeedom ainsi que le plugin deconz s’est bien déroulée comme en atteste la capture suivante :

Vient ensuite l’étape de récupérer la clé API. Et là, rien ne se passe :

Je précise que j’ai mis à jour la clé avec la version 0x26720700.

Auriez-vous une idée du problème ?
D’avance merci

Bonjour @Carthage,

Il faudrait plus d’informations sur ta configuration et éventuellement des logs (en debug) à coller ici en utilisant </>.

Un petit tour par ici peut être utile

Bon courage

Clef Conbee2 sur une petite rallonge USB ?
Copie écran de la page Résumé de Réseaux Deconz

Ma configuration matérielle est un RPi 3B+ avec une clé PHOSCON ConBee 2. L’OS, installé pour le moment sur une carte SD, est un Raspbian Lite.

Je suis venu installé dessus Jeedom en v4.1.27.
Par la suite, installation du plugin deconz.

Une fois ce dernier installé, voici les états que j’ai réalisé :
* Activation du plugin
* Relancer l’installation des dépendances
* Installation deconz local
* Démarrage du démon

Voici les différents logs que j’ai :
* Deconz

[2021-11-29 19:52:12.245][ERROR] : 'undefined'
Usage:
kill [options] <pid> [...]
Options:
<pid> [...]            send signal to every <pid> listed
-<signal>, -s, --signal <signal>
specify the <signal> to be sent
-q, --queue <value>    integer value to be sent with the signal
-l, --list=[<signal>]  list all signal names, or convert one to a name
-L, --table            list all signal names in a nice table
-h, --help     display this help and exit
-V, --version  output version information and exit
For more details see kill(1).
[2021-11-30 11:44:15.583][ERROR] : '127.0.0.1'
* **Deconz_install**
********************************************************
*             Installation deconz                      *
********************************************************
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
libqt5serialport5 libqt5websockets5
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 87.1 kB of archives.
After this operation, 328 kB of additional disk space will be used.
Get:2 http://ftp.crifo.org/raspbian/raspbian bullseye/main armhf libqt5websockets5 armhf 5.15.2-2 [56.2 kB]
Get:1 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf libqt5serialport5 armhf 5.15.2-2 [30.9 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 87.1 kB in 1s (65.3 kB/s)
Selecting previously unselected package libqt5serialport5:armhf.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 63058 files and directories currently installed.)
Preparing to unpack .../libqt5serialport5_5.15.2-2_armhf.deb ...
Unpacking libqt5serialport5:armhf (5.15.2-2) ...
Selecting previously unselected package libqt5websockets5:armhf.
Preparing to unpack .../libqt5websockets5_5.15.2-2_armhf.deb ...
Unpacking libqt5websockets5:armhf (5.15.2-2) ...
Setting up libqt5serialport5:armhf (5.15.2-2) ...
Setting up libqt5websockets5:armhf (5.15.2-2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1) ...
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
Suggested packages:
sqlite3-doc
The following NEW packages will be installed:
sqlite3
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1054 kB of archives.
After this operation, 2729 kB of additional disk space will be used.
Get:1 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian bullseye/main armhf sqlite3 armhf 3.34.1-3 [1054 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 1054 kB in 1s (1452 kB/s)
Selecting previously unselected package sqlite3.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 63070 files and directories currently installed.)
Preparing to unpack .../sqlite3_3.34.1-3_armhf.deb ...
Unpacking sqlite3 (3.34.1-3) ...
Setting up sqlite3 (3.34.1-3) ...
Processing triggers for man-db (2.9.4-2) ...
It's armv7l, RPI
Adding user root to group dialout
--2021-11-29 19:49:45--  http://phoscon.de/apt/deconz.pub.key
Resolving phoscon.de (phoscon.de)... 144.76.96.194
Connecting to phoscon.de (phoscon.de)|144.76.96.194|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1692 (1.7K) [application/octet-stream]
Saving to: 'STDOUT'
0K .                                                     100% 40.5M=0s
2021-11-29 19:49:45 (40.5 MB/s) - written to stdout [1692/1692]
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Ign:2 http://phoscon.de/apt/deconz bullseye InRelease
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
Err:4 http://phoscon.de/apt/deconz bullseye Release
404  Not Found [IP: 144.76.96.194 80]
Reading package lists...
E: The repository 'http://phoscon.de/apt/deconz bullseye Release' does not have a Release file.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package deconz
Failed to disable unit: Unit file deconz-gui.service does not exist.
Failed to stop deconz-gui.service: Unit deconz-gui.service not loaded.
Failed to disable unit: Unit file deconz.service does not exist.
Failed to stop deconz.service: Unit deconz.service not loaded.
********************************************************
*             Installation terminée                    *
********************************************************
* **Deconz_update**
********************************************************
*             Installation des dépendances             *
********************************************************
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (20.3.4-4+rpt1).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python3-setuptools is already the newest version (52.0.0-4).
python3-setuptools set to manually installed.
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
WARNING: Skipping websocket-client as it is not installed.
WARNING: Skipping websocket as it is not installed.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (52.0.0)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting serial
Downloading https://www.piwheels.org/simple/serial/serial-0.0.97-py2.py3-none-any.whl (40 kB)
Collecting pyyaml>=3.13
Downloading https://www.piwheels.org/simple/pyyaml/PyYAML-6.0-cp39-cp39-linux_armv7l.whl (45 kB)
Collecting future>=0.17.1
Downloading https://www.piwheels.org/simple/future/future-0.18.2-py3-none-any.whl (491 kB)
Collecting iso8601>=0.1.12
Downloading https://www.piwheels.org/simple/iso8601/iso8601-1.0.2-py3-none-any.whl (9.7 kB)
Installing collected packages: pyyaml, iso8601, future, serial
Successfully installed future-0.18.2 iso8601-1.0.2 pyyaml-6.0 serial-0.0.97
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyudev
Downloading https://www.piwheels.org/simple/pyudev/pyudev-0.22.0-py3-none-any.whl (63 kB)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pyudev) (1.16.0)
Installing collected packages: pyudev
Successfully installed pyudev-0.22.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.25.1)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: serial in /usr/local/lib/python3.9/dist-packages (0.0.97)
Requirement already satisfied: pyyaml>=3.13 in /usr/local/lib/python3.9/dist-packages (from serial) (6.0)
Requirement already satisfied: iso8601>=0.1.12 in /usr/local/lib/python3.9/dist-packages (from serial) (1.0.2)
Requirement already satisfied: future>=0.17.1 in /usr/local/lib/python3.9/dist-packages (from serial) (0.18.2)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pyudev in /usr/local/lib/python3.9/dist-packages (0.22.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pyudev) (1.16.0)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting websocket-client
Downloading https://www.piwheels.org/simple/websocket-client/websocket_client-1.2.1-py2.py3-none-any.whl (52 kB)
Installing collected packages: websocket-client
Successfully installed websocket-client-1.2.1
********************************************************
*             Installation terminée                    *
********************************************************

Concernant la page Résumé de Réseaux Deconz, je te mets une capture d’écran :

J’espère qu’avec ce pavé, ça ne sera pas trop illisible.

EDIT : j’ai oublié de préciser que la clé était monté sur une rallonge USB.

Plug in pas compatible (encore) avec Debian 11.
Donc il faut installer Debian 10 tant que l’équipe Jeedom n’a pas terminé son travail (ou les développeurs tiers) de mise en compatibilité des plug ins avec le récent Debian 11.

Bizarre quand même car il est inscrit dans la documentation du plugin, et je cite :

IMPORTANT
Il faut absolument Debian Strech (debian 9) ou plus pour que le plugin puisse fonctionner

Par contre, je viens de voir, toujours sur cette même documentation :

IMPORTANT
Sur RPI il faut désactiver les options serial pour que la clef conbee fonctionne correctement (ca se passe en ssh dans raspi-config)

Je vais effectuer ceci et voir ce que cela donne.

EDIT : Aucun changement suite à la désactivation des options serial.

En sus de la manip serial sous ssh Voir surtout ici concernant l’incompatibilité Debian11 j’insiste car ton problème vient bien d’ici:
https://doc.jeedom.com/fr_FR/compatibility/debian11

Je veux bien essayer cette solution. Je mettrai mon retour dès que possible

Voilà, l’installation est terminée. Elle n’était pas sans encombre…
Mais voilà, tout fonctionne correctement. Il s’agissait très certainement de compatibilité avec Debian 11.
Pour information également, dans la configuration du plugin, lors de la découverte de la ConBee2, l’adresse IP indiquée resté sur 127.0.0.1.
Après l’avoir changer avec la véritable adresse IP, sauvegarder et redémarrer le RPi, un nouveau fichier log « DeconzServer » est apparu.
Il ne me restait plus qu’à récupérer cette fameuse clé API pour que ça fonctionne.

Merci à toi @Yves19 pour ton aide !

Bonjour,
Bientôt un an après, est-ce que le plugin supporte désormais Debian 11? (ne le voyant pas dans le changelog, j’ai peur de connaitre déjà la réponse…)
Merci

Je me suis relancé dans un setup pour tester, et c’est bon ça marche. le plugin Deconz supporte désormais Debian 11