Bonjour,
A force de me pencher sur ce sujet je ne suis pas sûr que le problème vienne du plugin mais peut être trouverais-je tout de même de l’aide ici.
J’ai un problème avec le plugin blea, le demon plante et voici le log
[2020-06-22 17:09:33.947][DEBUG] : Daemon is ready
[2020-06-22 17:09:34.277][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 14): Failed to execute management command 'pasvend'
[2020-06-22 17:09:34.726][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 15): Failed to execute management command 'pasvend'
[2020-06-22 17:09:35.175][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 16): Failed to execute management command 'pasvend'
[2020-06-22 17:09:35.629][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 17): Failed to execute management command 'pasvend'
[2020-06-22 17:09:36.074][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 18): Failed to execute management command 'pasvend'
[2020-06-22 17:09:36.526][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 19): Failed to execute management command 'pasvend'
[2020-06-22 17:09:36.985][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 20): Failed to execute management command 'pasvend'
[2020-06-22 17:09:37.440][ERROR] : GLOBAL------Exception on scanner (didn't resolve there is an issue with bluetooth) : Failed to execute management command 'pasvend'
[2020-06-22 17:09:37.441][INFO] : GLOBAL------Shutting down due to errors
[2020-06-22 17:09:37.442][DEBUG] : Send to jeedom : {'learn_mode': 0, 'source': 'local'}
[2020-06-22 17:09:37.448][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-06-22 17:09:37.457][DEBUG] : http://127.0.0.1:80 "POST /plugins/blea/core/php/jeeBlea.php?apikey=#macléapi# HTTP/1.1" 200 0
[2020-06-22 17:09:39.442][DEBUG] : GLOBAL------Shutdown
[2020-06-22 17:09:39.442][DEBUG] : GLOBAL------Removing PID file /tmp/jeedom/blea/deamon.pid
[2020-06-22 17:09:39.443][DEBUG] : GLOBAL------Closing all potential bluetooth connection
[2020-06-22 17:09:39.719][DEBUG] : LoopNetServer Thread stopped
[2020-06-22 17:09:39.719][DEBUG] : Exit 0
j’ai vu que la commande pasvend de bluepy-helper correspondait à l’arrêt d’un scan passif, j’ai donc modifié la config du plugin pour faire un scan actif et tout fonctionne correctement.
J’ai essayer de faire un scan passif depuis debian directement avec bluepy-helper mais sans succés, j’ai une erreur badState. Alors est-ce que je reproduis le problème ou utilise mal bluepy-helper ça je ne sais pas.
La commande « le on » de bluepy-helper fonctionne bien mais « pasv » ou « pasvend » retourne l’erreur « badState ». Parce que, d’après le code de bluepy-helper; je ne suis pas dans l’état connecté et effectivement avec la commande « stat » je vois que je suis à l’état « disc ».
Les commandes scan et scanend fonctionne bien par contre.
Je suis sur une distrib debian buster. Sur un Dell Optiplex. C’est le bluetooth interne mais j’ai essayé avec un dongle USB et j’ai le même problème.
Si quelqu’un a une idée, j’ai peur que les piles de mes NUT se vident encore plus vite, déjà que cela ne tient pas bien longtemps.
Merci