TGW ne tient pas plus de 5 min erreur BLEGateway:[org.bluez.Error.NotReady] Resource Not Ready

Bonjour.
J’ai une smart récemment upgradée (via changement emmc) en Debian 11. BLEA ne fonctionnait plus correctement et j’ai donc décidé de migrer ver TGW/MQTT Discovery.

Seulement voilà, j’y arrive pas. L’antenne reçoit pendant 5 min puis j’ai le message BLEGateway:[org.bluez.Error.NotReady] Resource Not Ready

J’ai essayé tout ce qui a été décrit dans les fils existants sans succès.
A la base, j’ai une antenne SENA qui jusqu’à présent fonctionne bien. J’ai assayé avec une autre clé BT Trendnet, et le phénomène est exactement le même au bout de 5 min plus de réception et le message…BLE Gateway…

Je n’ai pas de message particulier lors de l’installation de l’antenne mis à part:

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:
[2024-11-29 12:39:30] Fetched 1039 kB in 0s (10.3 MB/s)

je n’ai plus de plugins utilisant le BT, autre que TGW je les ai supprimés avant installtation.
Avez vous des conseils à me donner?
merci


Informations Jeedom

Core : 4.4.19 (master)
DNS Jeedom : oui

Plugin : Theengs Gateway
Version : 2024-11-22 01:20:05 (beta)

Informations complémentaires


*

Log du plugin:

[2024-11-29 12:29:07] DEBUG  : local exec:hcitool dev | grep hci => 	hci1	00:15:83:FB:32:1B
[2024-11-29 12:29:08] DEBUG  : Listening to topic:'tgw'
[2024-11-29 12:29:08] INFO  : Configuration de l'antenne 'trendnet'
[2024-11-29 12:29:08] DEBUG  : Informations reçues de mqtt2: {"ip":"127.0.0.1","port":"1883","protocol":"mqtt","user":"jeedom","password":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO"}
[2024-11-29 12:29:08] DEBUG  : local exec:echo '{"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}' | sudo tee /root/theengsgw.conf => {"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}
[2024-11-29 12:29:08] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:29:08] DEBUG  : local exec:echo '     [Unit]     Description=TheengsGateway Service     Requires=bluetooth.target network-online.target      [Service]     Type=simple     ExecStart=/opt/TheengsGateway/bin/python3 -m TheengsGateway     Restart=always     RestartSec=10     StandardOutput=append:/var/www/html/log/tgw_778     StandardError=append:/var/www/html/log/tgw_778      [Install]     WantedBy=multi-user.target     ' | sudo tee /etc/systemd/system/TheengsGateway.service =>
[2024-11-29 12:29:08] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"offline"}}}
[2024-11-29 12:29:08] INFO  : LWT update:offline
[2024-11-29 12:29:09] DEBUG  : local exec:sudo systemctl daemon-reload =>
[2024-11-29 12:29:10] DEBUG  : local exec:sudo systemctl enable --now TheengsGateway.service =>
[2024-11-29 12:29:11] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"online"}}}
[2024-11-29 12:29:11] INFO  : LWT update:online
[2024-11-29 12:29:26] DEBUG  : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
[2024-11-29 12:29:27] DEBUG  : local exec:sudo /opt/TheengsGateway/bin/python3 -m TheengsGateway -h | grep -Ecw "usage:" => 1
[2024-11-29 12:29:27] DEBUG  : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
[2024-11-29 12:29:29] DEBUG  : local exec:sudo /opt/TheengsGateway/bin/python3 -m TheengsGateway -h | grep -Ecw "usage:" => 1
[2024-11-29 12:29:29] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:29:29] DEBUG  : local exec:sudo rm /etc/systemd/system/TheengsGateway.service =>
[2024-11-29 12:29:29] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"offline"}}}
[2024-11-29 12:29:29] INFO  : LWT update:offline
[2024-11-29 12:29:29] DEBUG  : local exec:sudo systemctl daemon-reload =>
[2024-11-29 12:29:29] DEBUG  : local exec:sudo pipx uninstall TheengsGateway =>
[2024-11-29 12:29:29] DEBUG  : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
[2024-11-29 12:29:31] DEBUG  : local exec:sudo /opt/TheengsGateway/bin/python3 -m TheengsGateway -h | grep -Ecw "usage:" => 1
[2024-11-29 12:29:31] INFO  : Lancement de l'installation de l'antenne 'trendnet'
[2024-11-29 12:29:31] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:29:31] DEBUG  : local exec:sudo bash /var/www/html/plugins/tgw/core/class/../../resources/install.sh http://192.168.1.10/plugins/tgw/core/php/jeetgw.php?id=778 > /var/www/html/log/tgw_778_update 2>&1 & =>
[2024-11-29 12:29:34] DEBUG  : step:0 for id:778
[2024-11-29 12:29:42] DEBUG  : step:1 for id:778
[2024-11-29 12:30:18] DEBUG  : step:2 for id:778
[2024-11-29 12:30:22] DEBUG  : step:3 for id:778
[2024-11-29 12:30:22] DEBUG  : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
[2024-11-29 12:30:24] DEBUG  : local exec:sudo /opt/TheengsGateway/bin/python3 -m TheengsGateway -h | grep -Ecw "usage:" => 1
[2024-11-29 12:30:24] DEBUG  : Task 'pullGatewayVersion' executed now
[2024-11-29 12:30:24] DEBUG  : Listening to topic:'tgw'
[2024-11-29 12:30:24] INFO  : Configuration de l'antenne 'trendnet'
[2024-11-29 12:30:24] DEBUG  : Informations reçues de mqtt2: {"ip":"127.0.0.1","port":"1883","protocol":"mqtt","user":"jeedom","password":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO"}
[2024-11-29 12:30:24] DEBUG  : local exec:echo '{"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}' | sudo tee /root/theengsgw.conf => {"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}
[2024-11-29 12:30:24] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:30:24] DEBUG  : local exec:echo '     [Unit]     Description=TheengsGateway Service     Requires=bluetooth.target network-online.target      [Service]     Type=simple     ExecStart=/opt/TheengsGateway/bin/python3 -m TheengsGateway     Restart=always     RestartSec=10     StandardOutput=append:/var/www/html/log/tgw_778     StandardError=append:/var/www/html/log/tgw_778      [Install]     WantedBy=multi-user.target     ' | sudo tee /etc/systemd/system/TheengsGateway.service =>
[2024-11-29 12:30:25] DEBUG  : local exec:ls /opt/TheengsGateway/lib/python3.*/site-packages | grep -Po 'TheengsDecoder-\K([0-9]\.[0-9]\.[0-9])' => 1.8.0
[2024-11-29 12:30:25] INFO  : TheengsDecoder version of trendnet: 1.8.0
[2024-11-29 12:30:25] DEBUG  : local exec:ls /opt/TheengsGateway/lib/python3.*/site-packages | grep -Po 'TheengsGateway-\K([0-9]\.[0-9]\.[0-9])' => 1.5.0
[2024-11-29 12:30:25] INFO  : TheengsGateway version of trendnet: 1.5.0
[2024-11-29 12:30:25] DEBUG  : local exec:sudo systemctl daemon-reload =>
[2024-11-29 12:30:26] DEBUG  : local exec:sudo systemctl enable --now TheengsGateway.service =>
[2024-11-29 12:30:28] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"online"}}}
[2024-11-29 12:30:28] INFO  : LWT update:online
[2024-11-29 12:30:33] DEBUG  : local exec:hcitool dev | grep hci => 	hci1	00:15:83:FB:32:1B
[2024-11-29 12:30:36] DEBUG  : Listening to topic:'tgw'
[2024-11-29 12:30:36] INFO  : Configuration de l'antenne 'trendnet'
[2024-11-29 12:30:36] DEBUG  : Informations reçues de mqtt2: {"ip":"127.0.0.1","port":"1883","protocol":"mqtt","user":"jeedom","password":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO"}
[2024-11-29 12:30:36] DEBUG  : local exec:echo '{"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}' | sudo tee /root/theengsgw.conf => {"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}
[2024-11-29 12:30:36] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:30:36] DEBUG  : local exec:echo '     [Unit]     Description=TheengsGateway Service     Requires=bluetooth.target network-online.target      [Service]     Type=simple     ExecStart=/opt/TheengsGateway/bin/python3 -m TheengsGateway     Restart=always     RestartSec=10     StandardOutput=append:/var/www/html/log/tgw_778     StandardError=append:/var/www/html/log/tgw_778      [Install]     WantedBy=multi-user.target     ' | sudo tee /etc/systemd/system/TheengsGateway.service =>
[2024-11-29 12:30:36] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"offline"}}}
[2024-11-29 12:30:36] INFO  : LWT update:offline
[2024-11-29 12:30:37] DEBUG  : local exec:sudo systemctl daemon-reload =>
[2024-11-29 12:30:38] DEBUG  : local exec:sudo systemctl enable --now TheengsGateway.service =>
[2024-11-29 12:30:39] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"online"}}}
[2024-11-29 12:30:39] INFO  : LWT update:online
[2024-11-29 12:30:45] DEBUG  : local exec:hcitool dev | grep hci => 	hci1	00:15:83:FB:32:1B
[2024-11-29 12:38:03] DEBUG  : local exec:hcitool dev | grep hci => 	hci1	00:15:83:FB:32:1B
[2024-11-29 12:38:17] DEBUG  : Listening to topic:'tgw'
[2024-11-29 12:38:17] INFO  : Configuration de l'antenne 'trendnet'
[2024-11-29 12:38:17] DEBUG  : Informations reçues de mqtt2: {"ip":"127.0.0.1","port":"1883","protocol":"mqtt","user":"jeedom","password":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO"}
[2024-11-29 12:38:17] DEBUG  : local exec:echo '{"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}' | sudo tee /root/theengsgw.conf => {"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}
[2024-11-29 12:38:17] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:38:17] DEBUG  : local exec:echo '     [Unit]     Description=TheengsGateway Service     Requires=bluetooth.target network-online.target      [Service]     Type=simple     ExecStart=/opt/TheengsGateway/bin/python3 -m TheengsGateway     Restart=always     RestartSec=10     StandardOutput=append:/var/www/html/log/tgw_778     StandardError=append:/var/www/html/log/tgw_778      [Install]     WantedBy=multi-user.target     ' | sudo tee /etc/systemd/system/TheengsGateway.service =>
[2024-11-29 12:38:17] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"offline"}}}
[2024-11-29 12:38:17] INFO  : LWT update:offline
[2024-11-29 12:38:18] DEBUG  : local exec:sudo systemctl daemon-reload =>
[2024-11-29 12:38:19] DEBUG  : local exec:sudo systemctl enable --now TheengsGateway.service =>
[2024-11-29 12:38:20] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"online"}}}
[2024-11-29 12:38:20] INFO  : LWT update:online
[2024-11-29 12:38:37] DEBUG  : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
[2024-11-29 12:38:39] DEBUG  : local exec:sudo /opt/TheengsGateway/bin/python3 -m TheengsGateway -h | grep -Ecw "usage:" => 1
[2024-11-29 12:38:46] DEBUG  : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
[2024-11-29 12:38:48] DEBUG  : local exec:sudo /opt/TheengsGateway/bin/python3 -m TheengsGateway -h | grep -Ecw "usage:" => 1
[2024-11-29 12:38:48] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:38:48] DEBUG  : local exec:sudo rm /etc/systemd/system/TheengsGateway.service =>
[2024-11-29 12:38:48] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"offline"}}}
[2024-11-29 12:38:48] INFO  : LWT update:offline
[2024-11-29 12:38:49] DEBUG  : local exec:sudo systemctl daemon-reload =>
[2024-11-29 12:38:49] DEBUG  : local exec:sudo rm /opt/TheengsGateway =>
[2024-11-29 12:38:49] DEBUG  : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
[2024-11-29 12:38:50] DEBUG  : local exec:sudo /opt/TheengsGateway/bin/python3 -m TheengsGateway -h | grep -Ecw "usage:" => 1
[2024-11-29 12:38:56] DEBUG  : local exec:hcitool dev | grep hci => 	hci1	00:15:83:FB:32:1B
[2024-11-29 12:39:04] DEBUG  : Listening to topic:'tgw'
[2024-11-29 12:39:04] INFO  : Configuration de l'antenne 'trendnet'
[2024-11-29 12:39:04] DEBUG  : Informations reçues de mqtt2: {"ip":"127.0.0.1","port":"1883","protocol":"mqtt","user":"jeedom","password":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO"}
[2024-11-29 12:39:05] DEBUG  : local exec:echo '{"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}' | sudo tee /root/theengsgw.conf => {"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}
[2024-11-29 12:39:05] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:39:05] DEBUG  : local exec:echo '     [Unit]     Description=TheengsGateway Service     Requires=bluetooth.target network-online.target      [Service]     Type=simple     ExecStart=/opt/TheengsGateway/bin/python3 -m TheengsGateway     Restart=always     RestartSec=10     StandardOutput=append:/var/www/html/log/tgw_778     StandardError=append:/var/www/html/log/tgw_778      [Install]     WantedBy=multi-user.target     ' | sudo tee /etc/systemd/system/TheengsGateway.service =>
[2024-11-29 12:39:05] DEBUG  : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
[2024-11-29 12:39:05] DEBUG  : local exec:sudo systemctl daemon-reload =>
[2024-11-29 12:39:06] DEBUG  : local exec:sudo systemctl enable --now TheengsGateway.service =>
[2024-11-29 12:39:07] DEBUG  : local exec:sudo /opt/TheengsGateway/bin/python3 -m TheengsGateway -h | grep -Ecw "usage:" => 1
[2024-11-29 12:39:07] DEBUG  : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
[2024-11-29 12:39:08] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"online"}}}
[2024-11-29 12:39:08] INFO  : LWT update:online
[2024-11-29 12:39:08] DEBUG  : local exec:sudo /opt/TheengsGateway/bin/python3 -m TheengsGateway -h | grep -Ecw "usage:" => 1
[2024-11-29 12:39:08] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:39:08] DEBUG  : local exec:sudo rm /etc/systemd/system/TheengsGateway.service =>
[2024-11-29 12:39:09] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"offline"}}}
[2024-11-29 12:39:09] INFO  : LWT update:offline
[2024-11-29 12:39:09] DEBUG  : local exec:sudo systemctl daemon-reload =>
[2024-11-29 12:39:09] DEBUG  : local exec:sudo pipx uninstall TheengsGateway =>
[2024-11-29 12:39:09] DEBUG  : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
[2024-11-29 12:39:11] DEBUG  : local exec:sudo /opt/TheengsGateway/bin/python3 -m TheengsGateway -h | grep -Ecw "usage:" => 1
[2024-11-29 12:39:11] INFO  : Lancement de l'installation de l'antenne 'trendnet'
[2024-11-29 12:39:11] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:39:11] DEBUG  : local exec:sudo bash /var/www/html/plugins/tgw/core/class/../../resources/install.sh http://192.168.1.10/plugins/tgw/core/php/jeetgw.php?id=778 > /var/www/html/log/tgw_778_update 2>&1 & =>
[2024-11-29 12:39:14] DEBUG  : step:0 for id:778
[2024-11-29 12:39:22] DEBUG  : step:1 for id:778
[2024-11-29 12:39:53] DEBUG  : step:2 for id:778
[2024-11-29 12:39:56] DEBUG  : step:3 for id:778
[2024-11-29 12:39:56] DEBUG  : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
[2024-11-29 12:39:58] DEBUG  : local exec:sudo /opt/TheengsGateway/bin/python3 -m TheengsGateway -h | grep -Ecw "usage:" => 1
[2024-11-29 12:39:58] DEBUG  : Task 'pullGatewayVersion' executed now
[2024-11-29 12:39:58] DEBUG  : Listening to topic:'tgw'
[2024-11-29 12:39:58] INFO  : Configuration de l'antenne 'trendnet'
[2024-11-29 12:39:58] DEBUG  : Informations reçues de mqtt2: {"ip":"127.0.0.1","port":"1883","protocol":"mqtt","user":"jeedom","password":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO"}
[2024-11-29 12:39:58] DEBUG  : local exec:echo '{"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}' | sudo tee /root/theengsgw.conf => {"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}
[2024-11-29 12:39:58] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:39:58] DEBUG  : local exec:echo '     [Unit]     Description=TheengsGateway Service     Requires=bluetooth.target network-online.target      [Service]     Type=simple     ExecStart=/opt/TheengsGateway/bin/python3 -m TheengsGateway     Restart=always     RestartSec=10     StandardOutput=append:/var/www/html/log/tgw_778     StandardError=append:/var/www/html/log/tgw_778      [Install]     WantedBy=multi-user.target     ' | sudo tee /etc/systemd/system/TheengsGateway.service =>
[2024-11-29 12:39:58] DEBUG  : local exec:ls /opt/TheengsGateway/lib/python3.*/site-packages | grep -Po 'TheengsDecoder-\K([0-9]\.[0-9]\.[0-9])' => 1.8.0
[2024-11-29 12:39:58] INFO  : TheengsDecoder version of trendnet: 1.8.0
[2024-11-29 12:39:58] DEBUG  : local exec:ls /opt/TheengsGateway/lib/python3.*/site-packages | grep -Po 'TheengsGateway-\K([0-9]\.[0-9]\.[0-9])' => 1.5.0
[2024-11-29 12:39:58] INFO  : TheengsGateway version of trendnet: 1.5.0
[2024-11-29 12:39:59] DEBUG  : local exec:sudo systemctl daemon-reload =>
[2024-11-29 12:39:59] DEBUG  : local exec:sudo systemctl enable --now TheengsGateway.service =>
[2024-11-29 12:40:01] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"online"}}}
[2024-11-29 12:40:01] INFO  : LWT update:online
[2024-11-29 12:40:48] DEBUG  : Listening to topic:'tgw'
[2024-11-29 12:40:48] INFO  : Configuration de l'antenne 'trendnet'
[2024-11-29 12:40:48] DEBUG  : Informations reçues de mqtt2: {"ip":"127.0.0.1","port":"1883","protocol":"mqtt","user":"jeedom","password":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO"}
[2024-11-29 12:40:49] DEBUG  : local exec:echo '{"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}' | sudo tee /root/theengsgw.conf => {"adapter":"hci1","discovery_filter":["IBEACON"],"discovery_device_name":"trendnet","presence":0,"presence_topic":"home\/TGW_778\/presence","log_level":"WARNING","host":"192.168.1.10","port":1883,"user":"jeedom","pass":"tE5mqXsCXsCvL20Jgk4L9YCANX8GSI6qJlMes6hCXknTLTsxIfHNWPQO4RBwYeaO","lwt_topic":"tgw\/778\/LWT","publish_topic":"home\/TGW_778\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0"}
[2024-11-29 12:40:49] DEBUG  : local exec:sudo systemctl stop TheengsGateway.service =>
[2024-11-29 12:40:49] DEBUG  : local exec:echo '     [Unit]     Description=TheengsGateway Service     Requires=bluetooth.target network-online.target      [Service]     Type=simple     ExecStart=/opt/TheengsGateway/bin/python3 -m TheengsGateway     Restart=always     RestartSec=10     StandardOutput=append:/var/www/html/log/tgw_778     StandardError=append:/var/www/html/log/tgw_778      [Install]     WantedBy=multi-user.target     ' | sudo tee /etc/systemd/system/TheengsGateway.service =>
[2024-11-29 12:40:49] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"offline"}}}
[2024-11-29 12:40:49] INFO  : LWT update:offline
[2024-11-29 12:40:49] DEBUG  : local exec:sudo systemctl daemon-reload =>
[2024-11-29 12:40:50] DEBUG  : local exec:sudo systemctl enable --now TheengsGateway.service =>
[2024-11-29 12:40:52] DEBUG  : handle Mqtt Message:{"tgw":{"778":{"LWT":"online"}}}
[2024-11-29 12:40:52] INFO  : LWT update:online

Bonjour,

Et comment cela se résout-il jusqu’ici, même si ce n’est que temporaire pour 5min?

Bonjour,

la seule solution que j’ai trouvé est de redémarrer le sustème. relancer le bluetooth via `sudo systemctl restart bluetooth.service ne change rien.

Je vais essayer de désinstaller les 2 plugins , redémarrer la box puis réinstaller. j’ai peut être loupé quelque chose.

lorsque la com d’interrompt, il n’y a aucun défaut d’antenne de remonté.
image
seulement le message dans le log

non ca ne va rien changer d’autant plus que ce ne sont pas les plugins qui gère la partie bluetooth.

Essayez de taper bluetoothctl
et ensuite

power off
power on
scan on

car theengsgateway est toujours en ligne, c’est niv matériel qu’il y a un soucis avec le bluetooth et c’est compliqué à détecter.
et de toute facon ca ne serait pas le plugin qui pourrait gérer ca car à nouveau il ne gère absolument pas la partie bluetooth, il installe theengsgateway.

ok pour la cause matériel, mais comment la résoudre? j’ai essayé un autre adaptateur BT, sur un autre port sans succès.
Je viens de tout désinstaller, réinstaller, redémarre… cette fois cela a tenu presque 1h.

j’ai fait les commandes conseillée…

[bluetooth]# power off
Changing power off succeeded
[bluetooth]# scan on
Failed to start discovery: org.bluez.Error.InProgress
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Failed to start discovery: org.bluez.Error.InProgress

je pense a essayer de désactiver zigbee pour voir…

affaire à suivre

rien a faire… systématiquement au bout d’un temps aléatoire, je termine par avoir le message org.bluez.Error.
en cherchant un peu plus, j’ai lancé la commande

root@JeedomSmart:~# rfkill list
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

le fait d’avoir arrêté zigbee n’a rien changé. j’ai aussi essayé avec mon rfplayer, j’imaginais à quelquechose qui vient bloquer la com usb, mais cela ne semble pas le cas.

Bonjour,

pour donner quelques nouvelles sur le problème, et notamment, si d’autres se retrouvent dans le même cas que moi.

J’ai finalement contourné le problème en paramétrant une antenne externe sur le Pi4 qui héberge entre autre mon octoprint. Avec l’antenne externe cela fonctionne sans problèmes depuis 2 jours.

Je vais continuer à explorer et faire des tests pour essayer de trouver une solution pour l’antenne locale.
En tout cas, le problème ne vient pas du plugins.
xpj

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