Pas de remontée des capteurs

Bonjour à tous,

Nous avons fait l’installation des deux plugins tgw et mqttdiscovery en remplacement de Blea.
L’installation s’est bien passée en suivant la documentation et le tutoriel.
Les capteurs ont mis du temps à s’afficher mais nous avons tout retrouvé.
Le problème a été que nous n’avons pas les valeurs des capteurs. Nous avons redémarré les antennes et là les valeurs sont apparues cool. Mais en fait, elles ne sont plus jamais remis à jour sauf quand je redémarre les antennes.

Avez vous des informations à me donner pour palier mon problème ?
Merci par avance de votre aide.

Pour tgw, j’utilise le mqttmanager et j’ai deux antennes


log de l’antenne twg627

Traceback (most recent call last):
File "/opt/TheengsGateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 208, in connect_mqtt
self.client.connect(
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4609, in _create_socket
sock = self._create_socket_connection()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4640, 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:BLEGateway:[org.bluez.Error.Failed] No discovery started
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT broker
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT broker
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
INFO:BLEGateway:Connected to MQTT broker
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded


log de l’antenne twg628

INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT broker
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
ERROR:BLEGateway:[org.bluez.Error.NotReady] Resource Not Ready
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Keep alive timeout
INFO:BLEGateway:Connected to MQTT broker
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded

config de mqttdiscovery


log de mqttdiscovery :

[2024-12-16 13:26:49] INFO  : no image available for CBE3FB2B7C1B
[2024-12-16 13:26:49] INFO  : no image available for C9487A300D14
[2024-12-16 13:26:49] INFO  : no image available for LYWSDCGQ
[2024-12-16 13:26:54] INFO  : no image available for LYWSDCGQ
[2024-12-16 13:27:12] INFO  : no image available for LYWSDCGQ
[2024-12-16 13:27:12] INFO  : no image available for LYWSDCGQ
[2024-12-16 13:27:12] INFO  : no image available for CBE3FB2B7C1B
[2024-12-16 13:27:12] INFO  : no image available for C9487A300D14
[2024-12-16 13:27:12] INFO  : no image available for LYWSDCGQ
[2024-12-16 13:27:13] INFO  : no image available for LYWSDCGQ
[2024-12-16 13:27:20] INFO  : no image available for LYWSDCGQ
[2024-12-16 13:27:38] INFO  : no image available for LYWSDCGQ
[2024-12-16 13:27:38] INFO  : no image available for LYWSDCGQ
[2024-12-16 13:27:38] INFO  : no image available for CBE3FB2B7C1B
[2024-12-16 13:27:38] INFO  : no image available for C9487A300D14
[2024-12-16 13:27:38] INFO  : no image available for LYWSDCGQ
[2024-12-16 13:27:39] INFO  : no image available for LYWSDCGQ
[2024-12-18 17:59:32] INFO  : Nouvelle découverte, résumé des configuations:
[2024-12-18 17:59:32] INFO  : - Importées:                 27
[2024-12-18 17:59:32] INFO  : - Auto-création inactive:    0
[2024-12-18 17:59:32] INFO  : - Topic ignoré:              0
[2024-12-18 17:59:32] INFO  : - Erronées:                  0
[2024-12-18 17:59:32] INFO  : - Non supportées:            0
[2024-12-18 17:59:32] INFO  : - Total reçues:              27

log du daemon mqttdiscovery

[2024-12-18 17:38:37]WARNING : Unexpected disconnection from MQTT
[2024-12-18 17:48:42]WARNING : Unexpected disconnection from MQTT
[2024-12-18 17:59:26]WARNING : Unexpected disconnection from MQTT
[2024-12-18 17:59:30] INFO  : Successfully connected to MQTT server
[2024-12-18 17:59:30] INFO  : Successfully subscribed to discovery topic homeassistant
[2024-12-18 17:59:30] INFO  : Successfully subscribed to Maison
[2024-12-18 17:59:30] INFO  : Successfully subscribed to home

les capteurs


Informations Jeedom

Core : 4.4.19 (master)
DNS Jeedom : oui

Plugin : Theengs Gateway
Version : 2024-09-17 01:19:51 (stable)

Plugin : MQTT Discovery (MQTTDiscovery)
Version : 2024-10-06 01:01:51 (stable)

Informations complémentaires

Bonjour,

Sur quelle plate-forme sont installées les antennes et avec quelle antenne bluetooth ?

Une en local sur smart j’ai l’impression? Quel contrôleur bluetooth ?

Et l’autre?

Bonjour Mips,
Désolée de ma réponse tardive mais je n’ai pas été notifié de ta réponse et ensuite je n’étais pas chez moi.

Concernant les plateformes, la première est directement sur la smart et c’est un dongle Asus MSQ-USBBT400, la deuxième est native à un raspberry Pi 3 Model B Rev 1.2.

J’espère avoir répondu aux questions.
Merci d’avance.

Et donc l’antenne sur la smart se fige et celle sur le pi fonctionne?

Les deux se figent. Je n’ai rien qui se met à jour.

Pour la smart (et l’erreur [org.bluez.Error.InProgress] Operation already in progress) je ne vais pas trop m’étendre la dessus dans ce sujet, j’en parle déjà ici: Migration BLEA vers MQTT Discovery - Nuts trouvés mais présence ne remonte pas - #12 par Mips

pour le pi:

  • quelle version de debian?
  • quelle version de pi?
  • theengsgateway est-elle la seule application installée dessus? ou au moins la seule utilisant le bluetooth?
  • dans le log de cette antenne on voit pas mal de problème réseau: Disconnected from MQTT broker with reason code = Keep alive timeout => la connexion réseau ne semble pas stable, cela peut être une cause.
  • est-ce que ce pi est à portée des équipements bluetooth?

Si je comprend bien, en suivant le lien, il n’y a pas vraiment de solution pour la smart.

Concernant le raspberry, c’est raspbian 11, on a installé dessus un broker MQTT avant qu’il y ait le MQTT manager dans jeedom, il nous permettait de dialoguer avec un jacuzzi. Depuis que le plugin est installé, nous n’avons pas réutilisé le jacuzzi et donc pas fait le transfert entre entre les deux broker MQTT. C’est peut être ça qui gêne. Sinon l’antenne bluetooth ne sert que pour les capteurs et elle servait qu’au plugin BLEA, et donc maintenant qu’au plugin theengsgateway.

Mais donc le broker sur le pi n’est plus utilisé ?

L’antenne utilise bien le même broker que plugin-mqttdiscovery ? Car évidemment si l’antenne publie sur un broker et jeedom lit sur un autre ca ne va pas aller.

Et sur qu’il y a des équipements à portée du pi?

Le broker n’est plus utilisé mais il est toujours installé sur le pi.
Il y a au moins un capteur à côté de l’antenne.
L’antenne utilise bien le même broker que le plugin mqttdiscovery, nous allons désactivé le plugin jMQTT qui communiquait avec le broker de pi, et désinstaller et réinstaller l’antenne distante.

Pour la smart, dans le log de l’antenne il y a :

INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT broker
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
ERROR:BLEGateway:adapter 'hci0' not found

je suppose que ca vient bien du driver de l’ASUS BT400. (même s’il y a eu des remontées ponctuelles)
Est-ce que vous avez une liste de clés USB bluetooth compatibles ?

finalement le driver hci0 est revenu…
mais maintenant :

INFO:BLEGateway:Connected to MQTT broker
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress