Scan en échec

J’ai relancé l’install des dépendances, mais j’ai toujours ce message.

La log du plugin après réinstall :

[2026-05-07 13:20:36] DEBUG  Lancement démon beagle : sudo python3 /var/www/html/plugins/beagle/resources/beagled/beagled.py --device hci1 --loglevel debug --socketport 55556 --sockethost 127.0.0.1 --callback http://127.0.0.1:80/plugins/beagle/core/php/jeeBeagle.php --apikey XXX--cycle 0.1 --jeedomkey YYY

J’ai lancé un redémarrage de Jeedom car sur d’autres fils pour cette même erreur mais d’autres plugins, cela semblait fonctionner : https://community.jeedom.com/t/probleme-utf-8-codec-sur-plugin-rfplayer2/120940/3

Après redémarrage je n’ai plus cette erreur

Toutefois dans la log packages, j’ai une belle erreur concernant pybluez, celle que j’avais déjà eue en voulant installer la beta il y a quelques jours :

Downloading cffi-2.0.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (216 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: pycparser, cffi, cryptography
Attempting uninstall: pycparser
Found existing installation: pycparser 2.23
Uninstalling pycparser-2.23:
Successfully uninstalled pycparser-2.23
Attempting uninstall: cffi
Found existing installation: cffi 2.0.0
Uninstalling cffi-2.0.0:
Successfully uninstalled cffi-2.0.0
Attempting uninstall: cryptography
Found existing installation: cryptography 38.0.0
Uninstalling cryptography-38.0.0:
Successfully uninstalled cryptography-38.0.0
Successfully installed cffi-2.0.0 cryptography-38.0.0 pycparser-2.23
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ echo 18
+ sudo python3 -m pip install --force-reinstall --upgrade pybluez
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pybluez
Downloading PyBluez-0.23.tar.gz (97 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
/tmp/pip-build-env-gfxcoa9b/overlay/lib/python3.9/site-packages/setuptools/_vendor/wheel/bdist_wheel.py:4: FutureWarning: The 'wheel' package is no longer the canonical location of the 'bdist_wheel' command, and will be removed in a future release. Please update to setuptools v70.1 or later which contains an integrated version of this command.
warn(
error in PyBluez setup command: use_2to3 is invalid.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'pybluez' when getting requirements to build wheel
+ echo 19
+ sudo chmod +x /var/www/html/core/class/../../plugins/beagle/resources/post_install.sh
+ sudo /var/www/html/core/class/../../plugins/beagle/resources/post_install.sh
+ echo 20
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end beagle
+ echo 21
+ rm /tmp/jeedom_install_in_progress_beagle
+ echo '*******************End of package installation******************'
*******************End of package installation******************

je comprends très vaguement le problème.

J’ai lancé un scan, je manœuvre l’interrupteur, il ne se passe rien :frowning:

[2026-05-07 13:30:49] INFO  : Start beagled
[2026-05-07 13:30:49] INFO  : Log level : debug
[2026-05-07 13:30:49] DEBUG  : Socket port : 55556
[2026-05-07 13:30:49] DEBUG  : Socket host : 127.0.0.1
[2026-05-07 13:30:49] INFO  : Device : hci1
[2026-05-07 13:30:49] DEBUG  : PID file : /tmp/beagled.pid
[2026-05-07 13:30:49] DEBUG  : Callback : http://127.0.0.1:80/plugins/beagle/core/php/jeeBeagle.php
[2026-05-07 13:30:49] DEBUG  : Cycle : 0.1
[2026-05-07 13:30:49] DEBUG  : JeedomKey : YYY
[2026-05-07 13:30:50] DEBUG  : Bluetooth Mac adress is D8:3A:DD:51:26:6E
[2026-05-07 13:30:50] INFO  : Writing PID 3078 to /tmp/beagled.pid
[2026-05-07 13:30:50] INFO  : Start changes async thread
[2026-05-07 13:30:50] INFO  : Init request module v2.32.5
[2026-05-07 13:30:50] DEBUG  : Starting new HTTP connection (1): 127.0.0.1:80
[2026-05-07 13:30:51] DEBUG  : http://127.0.0.1:80 "GET /plugins/beagle/core/php/jeeBeagle.php?apikey=XXX HTTP/1.1" 200 0
[2026-05-07 13:30:52] INFO  : Socket interface started
[2026-05-07 13:30:52] INFO  : LoopNetServer Thread started
[2026-05-07 13:30:52] INFO  : Listening on: [localhost:55556]
[2026-05-07 13:30:52] DEBUG  : Read Socket Thread Launched
[2026-05-07 13:30:52] DEBUG  : Ble Scanner Thread Launched
[2026-05-07 13:30:52] DEBUG  : Heartbeat Thread Launched
[2026-05-07 13:31:39] INFO  : Client connected to [127.0.0.1:43858]
[2026-05-07 13:31:39] INFO  : Message read from socket: b'{"apikey":"XXX","cmd":"learnin"}'
[2026-05-07 13:31:39] INFO  : Client disconnected from [127.0.0.1:43858]
[2026-05-07 13:31:39] DEBUG  : Message received in socket JEEDOM_SOCKET_MESSAGE
[2026-05-07 13:31:39] DEBUG  : Received command from jeedom : learnin
[2026-05-07 13:31:39] DEBUG  : Enter in learn mode
[2026-05-07 13:31:39] DEBUG  : Send to jeedom: {'learn_mode': 1}
[2026-05-07 13:31:39] DEBUG  : Starting new HTTP connection (1): 127.0.0.1:80
[2026-05-07 13:31:39] DEBUG  : http://127.0.0.1:80 "POST /plugins/beagle/core/php/jeeBeagle.php?apikey=XXXHTTP/1.1" 200 0
[2026-05-07 13:32:40] DEBUG  : Quitting learn mode (60s elapsed)
[2026-05-07 13:32:40] DEBUG  : Send to jeedom: {'learn_mode': 0}
[2026-05-07 13:32:40] DEBUG  : Starting new HTTP connection (1): 127.0.0.1:80
[2026-05-07 13:32:40] DEBUG  : http://127.0.0.1:80 "POST /plugins/beagle/core/php/jeeBeagle.php?apikey=XXX HTTP/1.1" 200 0

Ca sent pas bon…?