Pas de port clé bluetooth proposé par le plugin alors que Bluetooth est démarré

J’avais posté ce sujet en seconde partie de mon post précédent, mais celui-ci a été fermé.

@Mips j’avais cherché les solutions précédentes mais ça ne fonctionnait pas. Après la n-ième désinstallation de Bluepy et réinstallation des dépendances, je n’ai plus l’erreur Bluepy not up to date 1.3.0 expected 1.1.4 (à priori). Je ne sais pas ce qui a changé à la n-ième désinstallation.

Les dépendances semblent installées, c’est ce que dit le log.

Par contre, je n’ai toujours aucune proposition de port clé bluetooth (à part aucun).
Pourtant le bluetooth est bien démarré.
J’ai cherché pas mal sur Google, mais pour Debian je ne trouve pas quoi faire à part vérifier si le bluetooth est bien démarré. Je ne sais pas ce que le plugin s’attend à trouver ici et pourquoi il ne s’y trouve plus.
La liste de mes interfaces (via ls /sys/class/net) :

enp3s0 lo wlp2s0

Statut Bluetooth

bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset
Active: active (running) since Sat 2021-01-23 20:10:01 CET; 59min ago
Docs: man:bluetoothd(8)
Main PID: 9510 (bluetoothd)
Status: « Running »
Tasks: 1 (limit: 4530)
Memory: 736.0K
CGroup: /system.slice/bluetooth.service
└─9510 /usr/lib/bluetooth/bluetoothd
janv. 23 20:10:01 Jeedom systemd[1]: Starting Bluetooth service…
janv. 23 20:10:01 Jeedom bluetoothd[9510]: Bluetooth daemon 5.50
janv. 23 20:10:01 Jeedom systemd[1]: Started Bluetooth service.
janv. 23 20:10:01 Jeedom bluetoothd[9510]: Starting SDP server
janv. 23 20:10:01 Jeedom bluetoothd[9510]: Bluetooth management interface 1.14 i

Merci d’avance pour vos lumières

Bonjour,

Donc le problème précédent à bien été résolu par la solution donnée par le post en fonction; parfait :wink:

Si nouveau problème, nouveau sujet: une sujet=une question.

Peux-tu montrer le log des dépendances au cas où mais de toute façon ce n’est pas les dépendances qui font permettre d’afficher la clé ou pas à priori.

Peux-tu rappeler sur quel machine es-tu ?

@Mips merci pour la réponse.
lors le log des dépendances je ne sais pas lequel c’est… BLEA local me semble le meilleur candidat…
Voici Blea local :

[2021-01-15 12:49:13.422][ERROR] : Error on send request to jeedom HTTPConnectionPool(host='127.0.0.1', port=80): Max retries exceeded with url: /plugins/blea/core/php/jeeBlea.php?apikey=6I04UrX0NZsOjuhU9NUA4OpWmvXbSyrQ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f303cd02208>: Failed to establish a new connection: [Errno 111] Connection refused')) retry : 1/3
[2021-01-15 12:49:13.425][ERROR] : Error on send request to jeedom HTTPConnectionPool(host='127.0.0.1', port=80): Max retries exceeded with url: /plugins/blea/core/php/jeeBlea.php?apikey=6I04UrX0NZsOjuhU9NUA4OpWmvXbSyrQ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f303cd02a58>: Failed to establish a new connection: [Errno 111] Connection refused')) retry : 2/3
[2021-01-15 12:49:13.429][ERROR] : Error on send request to jeedom HTTPConnectionPool(host='127.0.0.1', port=80): Max retries exceeded with url: /plugins/blea/core/php/jeeBlea.php?apikey=6I04UrX0NZsOjuhU9NUA4OpWmvXbSyrQ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f303cd26780>: Failed to establish a new connection: [Errno 111] Connection refused')) retry : 3/3
[2021-01-15 12:49:13.429][ERROR] : Critical error on  send_changes_async local variable 'r' referenced before assignment
[2021-01-15 12:49:13.743][ERROR] : Error on send request to jeedom HTTPConnectionPool(host='127.0.0.1', port=80): Max retries exceeded with url: /plugins/blea/core/php/jeeBlea.php?apikey=6I04UrX0NZsOjuhU9NUA4OpWmvXbSyrQ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f303ccb4080>: Failed to establish a new connection: [Errno 111] Connection refused')) retry : 1/3
[2021-01-15 12:49:13.748][ERROR] : Error on send request to jeedom HTTPConnectionPool(host='127.0.0.1', port=80): Max retries exceeded with url: /plugins/blea/core/php/jeeBlea.php?apikey=6I04UrX0NZsOjuhU9NUA4OpWmvXbSyrQ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f303ccb47f0>: Failed to establish a new connection: [Errno 111] Connection refused')) retry : 2/3
[2021-01-15 12:49:13.752][ERROR] : Error on send request to jeedom HTTPConnectionPool(host='127.0.0.1', port=80): Max retries exceeded with url: /plugins/blea/core/php/jeeBlea.php?apikey=6I04UrX0NZsOjuhU9NUA4OpWmvXbSyrQ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f303cd265c0>: Failed to establish a new connection: [Errno 111] Connection refused')) retry : 3/3
[2021-01-15 12:49:13.752][ERROR] : Critical error on  send_changes_async local variable 'r' referenced before assignment

Je ne sais pas bien entendu à quoi correspondent toutes ces erreurs http.

Mon Jeedom est installé tout seul (pas en machine virtuel) sur un NUC Gigabyte avec processeur Intel, Debian 10.7, Jeedom 4.1.17
C’est peut être la même carte qui gère le Wifi et le Bluetooth. Je ne sais pas comment vérifier tout ça en ligne de commande.
Merci d’avance

Blea_local ces tle log du démon local.
Les dépendances c’est blea_update.

As-tu installé les drivers bluetooth pour ton nuc ? Je ne pense pas qu’il soit de base dans debian.

Hello @Mips

Oui blea_update, ça me paraît évident ce matin. Trop de temps sur mon écran hier…

********************************************************
*			 Installation des dépendances			 *
********************************************************
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 http://phoscon.de/apt/deconz buster InRelease
Hit:5 https://deb.nodesource.com/node_12.x buster InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
libatlas-base-dev is already the newest version (3.10.3-8).
bluetooth is already the newest version (5.50-1.2~deb10u1).
libbluetooth-dev is already the newest version (5.50-1.2~deb10u1).
build-essential is already the newest version (12.6).
libffi-dev is already the newest version (3.2.1-9).
libopenjp2-7 is already the newest version (2.3.0-2+deb10u1).
python3-serial is already the newest version (3.4-4).
python3-setuptools is already the newest version (40.8.0-1).
python3-dev is already the newest version (3.7.3-1).
python3-pyudev is already the newest version (0.21.0-1).
python3-requests is already the newest version (2.21.0-1).
libtiff5 is already the newest version (4.1.0+git191117-2~deb10u1).
rfkill is already the newest version (2.33.1-0.1).
libssl-dev is already the newest version (1.1.1d-0+deb10u4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
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: 
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/1263 kB of archives.
After this operation, 0 B of additional disk space will be used.
(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 ... 159971 files and directories currently installed.)
Preparing to unpack .../python3_3.7.3-1_amd64.deb ...
running python pre-rtupdate hooks for python3.7...
Unpacking python3 (3.7.3-1) over (3.7.3-1) ...
Preparing to unpack .../bluez_5.50-1.2~deb10u1_amd64.deb ...
Unpacking bluez (5.50-1.2~deb10u1) over (5.50-1.2~deb10u1) ...
Preparing to unpack .../python3-pip_18.1-5_all.deb ...
Unpacking python3-pip (18.1-5) over (18.1-5) ...
Setting up python3 (3.7.3-1) ...
running python rtupdate hooks for python3.7...
running python post-rtupdate hooks for python3.7...
Setting up bluez (5.50-1.2~deb10u1) ...
Setting up python3-pip (18.1-5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for dbus (1.12.20-0+deb10u1) ...
Processing triggers for systemd (241-7~deb10u5) ...
Requirement already up-to-date: setuptools in /usr/local/lib/python3.7/dist-packages (51.3.3)
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.20.1-2+deb10u3).
libglib2.0-dev is already the newest version (2.58.3-2+deb10u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already satisfied: pyudev in /usr/lib/python3/dist-packages (0.21.0)
Requirement already satisfied: pyserial in /usr/local/lib/python3.7/dist-packages (3.5)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.21.0)
Requirement already satisfied: pybluez in /usr/local/lib/python3.7/dist-packages (0.23)
Requirement already satisfied: pillow in /usr/local/lib/python3.7/dist-packages (8.1.0)
Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (1.19.5)
Requirement already satisfied: bluepy in /usr/local/lib/python3.7/dist-packages (1.1.4)
Cloning into 'bluepy'...
running build
running build_py
creating build
creating build/lib
creating build/lib/bluepy
copying bluepy/__init__.py -> build/lib/bluepy
copying bluepy/scan_fuzz.py -> build/lib/bluepy
copying bluepy/sensortag.py -> build/lib/bluepy
copying bluepy/blescan.py -> build/lib/bluepy
copying bluepy/thingy52.py -> build/lib/bluepy
copying bluepy/scanner.py -> build/lib/bluepy
copying bluepy/get_services.py -> build/lib/bluepy
copying bluepy/btle.py -> build/lib/bluepy
copying bluepy/uuids.json -> build/lib/bluepy
copying bluepy/bluez-src.tgz -> build/lib/bluepy
copying bluepy/bluepy-helper.c -> build/lib/bluepy
copying bluepy/Makefile -> build/lib/bluepy
running install
Working dir is /tmp/bluepy
execute make -C ./bluepy clean
execute make -C bluepy -j1
running build
running build_py
copying bluepy/bluepy-helper -> build/lib/bluepy
running install_lib
copying build/lib/bluepy/bluepy-helper.c -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/__init__.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/scan_fuzz.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/sensortag.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/uuids.json -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/Makefile -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/blescan.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/thingy52.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/scanner.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/bluez-src.tgz -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/bluepy-helper -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/get_services.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/btle.py -> /usr/local/lib/python3.7/dist-packages/bluepy
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/__init__.py to __init__.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/scan_fuzz.py to scan_fuzz.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/sensortag.py to sensortag.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/blescan.py to blescan.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/thingy52.py to thingy52.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/scanner.py to scanner.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/get_services.py to get_services.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/btle.py to btle.cpython-37.pyc
running install_egg_info
running egg_info
creating bluepy.egg-info
writing bluepy.egg-info/PKG-INFO
writing dependency_links to bluepy.egg-info/dependency_links.txt
writing entry points to bluepy.egg-info/entry_points.txt
writing top-level names to bluepy.egg-info/top_level.txt
writing manifest file 'bluepy.egg-info/SOURCES.txt'
reading manifest file 'bluepy.egg-info/SOURCES.txt'
writing manifest file 'bluepy.egg-info/SOURCES.txt'
removing '/usr/local/lib/python3.7/dist-packages/bluepy-1.1.4-py3.7.egg-info' (and everything under it)
Copying bluepy.egg-info to /usr/local/lib/python3.7/dist-packages/bluepy-1.1.4-py3.7.egg-info
running install_scripts
Installing blescan script to /usr/local/bin
Installing sensortag script to /usr/local/bin
Installing thingy52 script to /usr/local/bin
Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (2.6.1)
Requirement already satisfied: pycrypto in /usr/lib/python3/dist-packages (2.6.1)
********************************************************
*			 Installation terminée					*
********************************************************

Oui, les drivers Wifi et bluetooth ont été installés. J’ai installé debian avec ma clé de drivers privés dans la machine (celle qui fonctionne à caque fois) et Debian ne m’a rien demandé ce qui me semble prouver qu’il l’a trouvée (quand je ne la mets pas, l’install s’arrête et me demande si j’ai les drivers).

Du reste, si le service bluetooth démarre, c’est qu’il est installé, non ?

Merci d’avance

Hello @Mips
Alors j’ai désactivé les démons des plugins avec clé USB (Zigate, Z-Wave et Deconz). Ensuite j’ai éteint la machine et l’ai transporté pour la démarrer près d’un écran (j’ai un bureau Gnome installé vu mon absence de connaissances de la ligne de commande). Je me suis connecté sur le bureau, ai vu que le bluetooth était bien activé. A tout hasard, je l’ai désactivé, puis réactivé. Ensuite j’ai redémarré la machine (à son emplacement normal, sans écran), tous les USB débranchés.
J’ai rebranché les USB. Redémarré les 3 démons arrêtés.
Retournant dans BLEA, le périphérique bluetooth est là : Port clé : #adresse mac# (hci0)
Le démon est lancé.
Donc maintenant ça marche, mais j’aimerais bien comprendre pourquoi pour éviter que ça recommence, éventuellement au prochain reboot.

Est-ce le fait d’avoir désactivé-réactivé bluetooth sur l’écran Gnome, ou le fait d’avoir redémarré avec les USB débranchés qui a pu ramener le blutooth ? Est-ce qu’un périphérique USB branché pourrait perturber le démarrage bluetooth ?

Maintenant quand je fais un hcitool dev, j’obtiens :

Devices:
hci0 D4:25:8B:4E:69:1F

Mais avant, pendant le problème, la même commande me renvoyait un Devices vide !!!

Merci d’avance pour les conseils.

Bonjour,

Il m’est arrivé une fois qu’après un redémarrage (suite à coupure électrique) plus de BT. La clé n’était plus visible. J’avais alors branché /débranché la clé et hop c’était reparti.
Ça ressemble beaucoup à ton cas.
Si ça peut te rassurer ça ne l’a jamais refait depuis.

Hello @Madcow
En fait, j’ai déjà eu ce cas avant, mais à force de redémarrer, ça s’était solutionné.
Cette fois ci non.
Et je ne peux pas retirer la clé puisque c’est une carte interne.
Merci

Ah oui en effet j’avais pas capté que c’était le BT du NUC.
Bizarre ton problème…

Hello,

C’est quoi ton nuc (ref)?
Quand il boote avec un écran, tu as un message d’erreur à propos de hci0 ?

Hello @naboleo

Le NUC c’est un Gigabyte GB-BACE-3000
Il a une Carte Intel IEEE 802.11 AC, Dual Wi-Fi et Bluetooth 4.0 NGFF M.2

Pas de message d’erreur au boot (en tous cas quand je le branche sur un écran) à part une histoire d’UPS qui effectivement n’est pas branché en tous cas à cet endroit là. Rien sur hci0.

Merci d’avance

Dommage si pas d’erreur au boot, la petite modif que j’ai fait sur mon proxmox n’aidera pas