Bonjour,
Cela fait une petite semaine que j’essaye d’utiliser le plugin TGW mais j’ai un soucis pour aller jusqu’au bout du process et je n’arrive pas à voir d’où cela peut venir.
Jeedom: Version 4.3.23 sur VM debian 11 dans un Hyperviseur Proxmox
Antenne: Raspberry pi zero W
J’ai suivant la documentation avec une installation fraiche raspios bulleye.
Création d’un user jeedom avec les droits sudo et sans password
Le process tgw se passe bien, l’installation est OK au bout 45 mins.
Mais lorsque je lance la configuration du service, celle ci configure l’antenne puis passe le Statut en permanence en « Hors ligne ».
Grace à MQTT Explorer je vois bien des trame arriver sur mon broker et j’ai des équipements qui remontent les infos en temps réel sur Jeedom.
Mais toujours ce statut Hors ligne.
J’ai également des difficultés à reconfigurer l’antenne avec de nouveau paramètre. (la configuration actuelle est différente de la configuration souhaitée)
Merci d’avance pour l’aide
Log tgw en debug:
[2024-03-15 13:01:26][INFO] : (Re)Démarrage de l'antenne 'Antenne-TGW2'
[2024-03-15 13:01:26][DEBUG] : Listening to topic:'tgw'
[2024-03-15 13:01:27][DEBUG] : SSH exec:hcitool dev | grep hci => hci0 B8:27:EB:B3:xx:xx
[2024-03-15 13:01:33][DEBUG] : SSH exec:sudo systemctl restart bluetooth.service =>
[2024-03-15 13:01:34][DEBUG] : SSH exec:sudo systemctl restart TheengsGateway.service =>
[2024-03-15 13:01:41][DEBUG] : get file '/var/log/TheengsGateway.log' from 192.168.1.131
[2024-03-15 13:01:45][DEBUG] : SSH exec:hcitool dev | grep hci => hci0 B8:27:EB:B3:xx:xx
[2024-03-15 13:02:30][DEBUG] : SSH exec:hcitool dev | grep hci => hci0 B8:27:EB:B3:xx:xx
[2024-03-15 13:02:37][DEBUG] : SSH exec:hcitool dev | grep hci => hci0 B8:27:EB:B3:xx:xx
[2024-03-15 13:04:21][DEBUG] : SSH exec:hcitool dev | grep hci => hci0 B8:27:EB:B3:xx:xx
[2024-03-15 13:04:23][DEBUG] : Listening to topic:'tgw'
[2024-03-15 13:04:23][INFO] : Configuration de l'antenne 'Antenne-TGW2'
[2024-03-15 13:04:23][DEBUG] : Informations reçues de mqtt2: {"ip":"192.168.1.75","port":"1883","user":"","password":null}
[2024-03-15 13:04:28][DEBUG] : SSH exec:echo '{"adapter":"hci0","discovery_filter":["IBEACON","GAEN","MS-CDP","APPLE_CONT","APPLE_CONTAT"],"discovery_device_name":"Antenne-TGW2","presence":0,"presence_topic":"home\/TGW_345\/presence","log_level":"WARNING","host":"192.168.1.75","port":1883,"user":"ble_antenna","pass":"xxxxxxx","lwt_topic":"tgw\/345\/LWT","publish_topic":"home\/TGW_345\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0","identities":{"80:54:E3:A8:xx:xx":"xxxx"}}' | sudo tee /root/theengsgw.conf => {"adapter":"hci0","discovery_filter":["IBEACON","GAEN","MS-CDP","APPLE_CONT","APPLE_CONTAT"],"discovery_device_name":"Antenne-TGW2","presence":0,"presence_topic":"home\/TGW_345\/presence","log_level":"WARNING","host":"192.168.1.75","port":1883,"user":"ble_antenna","pass":"xxxxx","lwt_topic":"tgw\/345\/LWT","publish_topic":"home\/TGW_345\/BTtoMQTT","ble_scan_time":5,"ble_time_between_scans":5,"publish_advdata":"0","identities":{"80:54:E3:A8:xx:xx":"xxx"}}
[2024-03-15 13:04:33][DEBUG] : SSH exec:sudo systemctl stop TheengsGateway.service =>
[2024-03-15 13:04:33][DEBUG] : SSH exec:echo ' [Unit] Description=TheengsGateway Service Requires=bluetooth.target network-online.target [Service] Type=simple ExecStart=/root/.local/bin/TheengsGateway Restart=always RestartSec=10 StandardOutput=append:/var/log/TheengsGateway.log StandardError=append:/var/log/TheengsGateway.log [Install] WantedBy=multi-user.target ' | sudo tee /etc/systemd/system/TheengsGateway.service => [Unit] Description=TheengsGateway Service Requires=bluetooth.target network-online.target [Service] Type=simple ExecStart=/root/.local/bin/TheengsGateway Restart=always RestartSec=10 StandardOutput=append:/var/log/TheengsGateway.log StandardError=append:/var/log/TheengsGateway.log [Install] WantedBy=multi-user.target
[2024-03-15 13:04:37][DEBUG] : SSH exec:sudo systemctl daemon-reload =>
[2024-03-15 13:04:41][DEBUG] : SSH exec:sudo systemctl enable --now TheengsGateway.service =>
[2024-03-15 13:04:52][DEBUG] : SSH exec:echo ' /var/log/TheengsGateway.log { rotate 4 daily copytruncate size=100k maxsize=50M compress missingok notifempty } ' | sudo tee /etc/logrotate.d/TheengsGateway => /var/log/TheengsGateway.log { rotate 4 daily copytruncate size=100k maxsize=50M compress missingok notifempty }
[2024-03-15 13:06:10][INFO] : Latest version: 1.4.0
[2024-03-15 13:06:13][INFO] : (Re)Démarrage de l'antenne 'Antenne-TGW2'
[2024-03-15 13:06:13][DEBUG] : Listening to topic:'tgw'
[2024-03-15 13:06:19][DEBUG] : SSH exec:hcitool dev | grep hci => hci0 B8:27:EB:B3:xx
[2024-03-15 13:06:22][DEBUG] : SSH exec:sudo systemctl restart bluetooth.service =>
[2024-03-15 13:06:23][DEBUG] : SSH exec:sudo systemctl restart TheengsGateway.service =>
[2024-03-15 13:06:30][DEBUG] : get file '/var/log/TheengsGateway.log' from 192.168.1.131
[2024-03-15 13:09:16][INFO] : Latest version: 1.4.0
[2024-03-15 13:09:23][DEBUG] : SSH exec:hcitool dev | grep hci => hci0 B8:27:EB:B3:xx
[2024-03-15 13:42:05][DEBUG] : SSH exec:hcitool dev | grep hci => hci0 B8:27:EB:B3:xx
[2024-03-15 13:49:12][DEBUG] : SSH exec:hcitool dev | grep hci => hci0 B8:27:EB:B3:xx