Antennes déportées ne voient pas les devices BT

Bonjour,
depuis quelques temps, peut être une mise à jour, j’ai pas fait attention, mon antenne locale fonctionne bien et les antennes déportées ne voient pas les device : eg. rssi à 200 dans mqtt discovery
Voici le logs de l’update et d’une antenne déportée

[2023-12-19 06:31:50] *************************************
[2023-12-19 06:31:50] *   Launch install of dependencies  *
[2023-12-19 06:31:50] *************************************
[2023-12-19 06:31:51] Reading package lists...
[2023-12-19 06:31:52] Building dependency tree...
[2023-12-19 06:31:52] Reading state information...
[2023-12-19 06:31:53] curl is already the newest version (7.74.0-1.3+deb11u10).
[2023-12-19 06:31:53] 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100     2  100     2    0     0      1      0  0:00:02  0:00:01  0:00:01     1
[2023-12-19 06:31:56] Get:1 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
[2023-12-19 06:31:56] Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
[2023-12-19 06:31:56] Get:3 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [313 kB]
[2023-12-19 06:31:57] Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main Sources [12.2 MB]
[2023-12-19 06:32:27] Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.2 MB]
[2023-12-19 06:33:06] Fetched 25.8 MB in 1min 10s (370 kB/s)
[2023-12-19 06:33:12] Reading package lists...
[2023-12-19 06:33:12] *****************************
[2023-12-19 06:33:12] Install modules using apt-get
[2023-12-19 06:33:12] *****************************
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100     2  100     2    0     0      1      0  0:00:02  0:00:01  0:00:01     1
[2023-12-19 06:33:14] Reading package lists...
[2023-12-19 06:33:15] Building dependency tree...
[2023-12-19 06:33:15] Reading state information...
[2023-12-19 06:33:17] logrotate is already the newest version (3.18.0-2+deb11u2).
[2023-12-19 06:33:17] python3 is already the newest version (3.9.2-3).
[2023-12-19 06:33:17] python3-venv is already the newest version (3.9.2-3).
[2023-12-19 06:33:17] bluez is already the newest version (5.55-3.1+rpt2).
[2023-12-19 06:33:17] python3-pip is already the newest version (20.3.4-4+rpt1+deb11u1).
[2023-12-19 06:33:17] 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
[2023-12-19 06:33:18] Version debian:11
[2023-12-19 06:33:19] Install pipx via pip
[2023-12-19 06:33:24] Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
[2023-12-19 06:33:24] Requirement already satisfied: pipx in /usr/local/lib/python3.9/dist-packages (1.2.1)
[2023-12-19 06:33:25] Requirement already satisfied: userpath>=1.6.0 in /usr/local/lib/python3.9/dist-packages (from pipx) (1.9.1)
[2023-12-19 06:33:25] Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.9/dist-packages (from pipx) (21.3)
[2023-12-19 06:33:25] Requirement already satisfied: argcomplete>=1.9.4 in /usr/local/lib/python3.9/dist-packages (from pipx) (3.1.6)
[2023-12-19 06:33:25] Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.9/dist-packages (from packaging>=20.0->pipx) (3.0.7)
[2023-12-19 06:33:25] Requirement already satisfied: click in /usr/local/lib/python3.9/dist-packages (from userpath>=1.6.0->pipx) (8.0.4)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 22.0.4; however, version 23.3.2 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
[2023-12-19 06:33:32] /root/.local/bin has been been added to PATH, but you need to open a new
[2023-12-19 06:33:32] terminal or re-login for this PATH change to take effect.
[2023-12-19 06:33:32]
[2023-12-19 06:33:32] You will need to open a new terminal or re-login for the PATH changes to take
[2023-12-19 06:33:32] effect.
[2023-12-19 06:33:32]
[2023-12-19 06:33:32] Otherwise pipx is ready to go! ✨ 🌟 ✨
[2023-12-19 06:33:32] *************************************
[2023-12-19 06:33:32] Install the required python libraries
[2023-12-19 06:33:32] *************************************
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100     2  100     2    0     0      1      0  0:00:02  0:00:01  0:00:01     1
[2023-12-19 06:33:35] 'theengsgateway' already seems to be installed. Not modifying existing
[2023-12-19 06:33:35] installation in '/root/.local/pipx/venvs/theengsgateway'. Pass '--force' to
[2023-12-19 06:33:35] force installation.
[2023-12-19 06:33:35] ***************************
[2023-12-19 06:33:35] *      Install ended      *
[2023-12-19 06:33:35] ***************************
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0


    Accueil
    Analyse
    Outils
    Plugins
    Réglages

    19:42:53
    Maison

Gestion

Ajouter

Configuration

Documentation

Community
Mes antennes

Bureau
BLEA Local

Chambre
BLEA Chambre

Salon
BLEA Salon
Configuration du plugin
Theengs Gateway (tgw) - stable
Etat
Statut
Actif
Action
Catégorie
Programmation
Source
market
Auteur
Mips
Version
2023-12-16 01:20:38
License
AGPL
Prérequis
4.2.0
Logs et surveillance
Niveau log
Aucun Defaut Debug Info Warning Error
Logs
Heartbeat (min)
Configuration
Configuration utilisée pour les antennes
Authentification
Fonctionnalités
interact
Non
cron
Oui
Activer
cron5
Non
cron10
Non
cron15
Non
cron30
Non
cronHourly
Non
cronDaily
Non
deadcmd
Non
health
Oui
Log du plugin tgw_1030
Log brut


ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 111, in connect_mqtt
self.client.connect(self.broker, self.port)
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 914, in connect
return self.reconnect()
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1044, in reconnect
sock = self._create_socket_connection()
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python3.9/socket.py", line 843, in create_connection
raise err
File "/usr/lib/python3.9/socket.py", line 831, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
ERROR:root:A message handler raised an exception: Invalid control character at: line 1 column 82 (char 81)
Traceback (most recent call last):
File "src/dbus_fast/message_bus.py", line 789, in dbus_fast.message_bus.BaseMessageBus._process_message
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/bleak/backends/bluezdbus/manager.py", line 979, in _parse_msg
self._run_advertisement_callbacks(
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/bleak/backends/bluezdbus/manager.py", line 1028, in _run_advertisement_callbacks
callback(device_path, device.copy())
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/bleak/backends/bluezdbus/scanner.py", line 270, in _handle_advertising_data
self.call_detection_callbacks(device, advertisement_data)
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/bleak/backends/scanner.py", line 210, in call_detection_callbacks
callback(device, advertisement_data)
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 350, in detection_callback
decoded_json = json.loads(decoded_json)
File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid control character at: line 1 column 82 (char 81)
ERROR:root:A message handler raised an exception: Invalid control character at: line 1 column 82 (char 81)
Traceback (most recent call last):
File "src/dbus_fast/message_bus.py", line 789, in dbus_fast.message_bus.BaseMessageBus._process_message
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/bleak/backends/bluezdbus/manager.py", line 979, in _parse_msg
self._run_advertisement_callbacks(
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/bleak/backends/bluezdbus/manager.py", line 1028, in _run_advertisement_callbacks
callback(device_path, device.copy())
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/bleak/backends/bluezdbus/scanner.py", line 270, in _handle_advertising_data
self.call_detection_callbacks(device, advertisement_data)
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/bleak/backends/scanner.py", line 210, in call_detection_callbacks
callback(device, advertisement_data)
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 350, in detection_callback
decoded_json = json.loads(decoded_json)
File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid control character at: line 1 column 82 (char 81)


Jeedom stable 4.3.21

Merci d’avance

Peut etre commencer par ca non !?

pourquoi pas mais je fait les install à distance et je suis en ssh, donc il y a peut être eu une perte mais je doute que ce soit la cause, mes 2 antennes déportées ont les mêmes logs
je relance une troisième fois depuis l’interface jeedom web ?

Bonjour,

Donc l’antenne est installée et en ligne?

Si oui alors le problème n’est pas lié au plugin.

Sur quoi est installé l’antenne ?

Bonjour,
oui les antennes fonctionnaient (elles détectaient mes devices) avant, elles sont sur raspbian
Dans tgw elles sont bien présentes et en ligne
Dans mqtt discovery mes devices « n’accrochent » plus que l’antenne locale

Donc qui theengs gateway crash ou que le bluetooth crash, ce n’est pas le plugin qui peut changer ça.

Donc elles sont installés sur des pi? Y a-t-il autre chose qui tourne sur ces machines?
Vérifies l’alimentation, ça peut être une des causes.
Ici on dirait que theengs a reçu un message qu’il n’a pas su décider et qu’il a crash.

Si tu redémarres le pi ça repart?

Merci pour ta réponse, en effet « i turn it off and turn it on again » et oui ça refonctionne, donc quelques chose doit crasher, cela fait presque une heure que les antennes fonctionnent à nouveau. un des pi héberge KODI et l’autre LMS sans que cela pose problème avant avec le plugin Blea

Et on s’en fiche complètement car c’est pas blea et que ce n’est pas comparable


Donc à vérifier pour l’alimentation.

Sinon la version bêta du plugin permet de faire les mises à jour de TheengsGateway => à voir si la version 1.2.0 résout ce problème.
Désinstaller et réinstaller l’antenne permettra aussi de passer en dernière version de TheengsGateway sans avoir besoin de la beta du plugin

Ok je vais tester tout ça, les alimentations sont les officielles rpi

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.