Arrêt de surveillance sur antenne déportée

Bonjour à tous, je galère, je crois depuis le début du plugin phone_detection, impossible de faire fonctionner correctement ce plugin sur mon system, (ça marche… ça marche plus, ah ça remarche, a ben non …). c’est d’autant plus embattant que c’est presque un must have :slight_smile:

Donc, depuis une semaine, je reprends plus sérieusement mes tests et recherches, sauf que là, j’arrive au bout du bout…Je sens que je vais finir par laisser tomber, vous êtes ma dernière chance :pleading_face:

Situation avant cette semaine :

  • 4 telephones Iphone et Android
  • Jeedom smart plus une antenne Raspberry zero
  • Plugin Blea et Phone_detection sur la Smart avec deux clés BT 100M (une pour chaque plugin)
  • Phone_detection sur le raspeberry Zero (avec une clé BT 100M)

Résultat : sur la smart cela fonctionne, mais l’antenne fonctionne que quelques minutes à chaque reboot de celle-ci.

Situation depuis une semaine :

  • 4 telephones Iphone et Android
  • Jeedom smart V4.3.2 plus une antenne Raspberry Pi4 (fraichement installé)
  • Désactivation du Plugin Blea
  • Phone_detection sur la Smart avec deux clés BT 100M (une pour chaque plugin)
  • Phone_detection sur le raspeberryPI4 (avec une clé BT 100M)

Résultat : identique, sur la smart cela fonctionne, mais l’antenne fonctionne que quelques minutes à chaque reboot de celle-ci.
Les téléphones sont biens reconnu (4 au total) mais ensuite ca fini par buggé les téléphones aléatoirement ne sont plus actualisé et reste bloqué en présent ou non présent.

Lorsque je regarde les logs de l’antenne lorsque ça bug ça ressemble à ça : le 1368 n’est plus surveillé :

LOG AntennePi :

[2022-10-19 16:10:53][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:10:53][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:10:53][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:11:03][DEBUG][root](Thread-5) : 1371 is absent
[2022-10-19 16:11:03][DEBUG][root](Thread-5) : lastStateDate: 2022-10-10 22:50:11
[2022-10-19 16:11:03][DEBUG][root](Thread-5) : thresholdDate: 2022-10-10 22:51:41
[2022-10-19 16:11:03][DEBUG][root](Thread-6) : 1367 is absent
[2022-10-19 16:11:03][DEBUG][root](Thread-5) : datetime.utcnow(): 2022-10-19 14:11:03.212138
[2022-10-19 16:11:03][DEBUG][root](Thread-6) : lastStateDate: 2022-10-19 07:38:45
[2022-10-19 16:11:03][DEBUG][root](Thread-5) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:11:03][DEBUG][root](Thread-6) : thresholdDate: 2022-10-19 07:40:15
[2022-10-19 16:11:03][DEBUG][root](Thread-5) : 1371 is up to date
[2022-10-19 16:11:03][DEBUG][root](Thread-6) : datetime.utcnow(): 2022-10-19 14:11:03.214082
[2022-10-19 16:11:03][DEBUG][root](Thread-5) : 1371 forced refresh !
[2022-10-19 16:11:03][DEBUG][root](Thread-6) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:11:03][DEBUG][root](Thread-5) : device status: False
[2022-10-19 16:11:03][DEBUG][root](Thread-6) : 1367 is up to date
[2022-10-19 16:11:03][DEBUG][root](Thread-5) : Send to jeedom :  {'action': 'update_device_status', 'id': 1371, 'value': 0, 'source': 'Pi4Antenne1'}
[2022-10-19 16:11:03][DEBUG][root](Thread-6) : 1367 forced refresh !
[2022-10-19 16:11:03][DEBUG][root](Thread-6) : device status: False
[2022-10-19 16:11:03][DEBUG][root](Thread-6) : Send to jeedom :  {'action': 'update_device_status', 'id': 1367, 'value': 0, 'source': 'Pi4Antenne1'}
[2022-10-19 16:11:03][DEBUG][root](Thread-4) : 1358 is absent
[2022-10-19 16:11:03][DEBUG][root](Thread-4) : lastStateDate: 2022-10-19 14:02:01.098149
[2022-10-19 16:11:03][DEBUG][root](Thread-4) : thresholdDate: 2022-10-19 14:03:31.098149
[2022-10-19 16:11:03][DEBUG][root](Thread-4) : datetime.utcnow(): 2022-10-19 14:11:03.249249
[2022-10-19 16:11:03][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:11:03][DEBUG][root](Thread-4) : 1358 is up to date
[2022-10-19 16:11:03][DEBUG][root](Thread-5) : Status Code :  200
[2022-10-19 16:11:03][DEBUG][root](Thread-6) : Status Code :  200
[2022-10-19 16:11:03][DEBUG][root](Thread-5) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:11:03][DEBUG][root](Thread-6) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:11:23][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:11:23][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:11:23][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:11:33][DEBUG][root](Thread-4) : Get phone information 1358
[2022-10-19 16:11:33][DEBUG][root](Thread-5) : Get phone information 1371
[2022-10-19 16:11:33][DEBUG][root](Thread-6) : Get phone information 1367
[2022-10-19 16:11:53][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:11:53][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:11:53][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:11:58][DEBUG][root](Thread-4) : 1358 is absent
[2022-10-19 16:11:58][DEBUG][root](Thread-4) : lastStateDate: 2022-10-19 14:02:01.098149
[2022-10-19 16:11:58][DEBUG][root](Thread-4) : thresholdDate: 2022-10-19 14:03:31.098149
[2022-10-19 16:11:58][DEBUG][root](Thread-4) : datetime.utcnow(): 2022-10-19 14:11:58.443704
[2022-10-19 16:11:58][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:11:58][DEBUG][root](Thread-4) : 1358 is up to date
[2022-10-19 16:11:58][DEBUG][root](Thread-6) : 1367 is absent
[2022-10-19 16:11:58][DEBUG][root](Thread-5) : 1371 is absent
[2022-10-19 16:11:58][DEBUG][root](Thread-6) : lastStateDate: 2022-10-19 07:38:45
[2022-10-19 16:11:58][DEBUG][root](Thread-5) : lastStateDate: 2022-10-10 22:50:11
[2022-10-19 16:11:58][DEBUG][root](Thread-6) : thresholdDate: 2022-10-19 07:40:15
[2022-10-19 16:11:58][DEBUG][root](Thread-5) : thresholdDate: 2022-10-10 22:51:41
[2022-10-19 16:11:58][DEBUG][root](Thread-6) : datetime.utcnow(): 2022-10-19 14:11:58.450901
[2022-10-19 16:11:58][DEBUG][root](Thread-5) : datetime.utcnow(): 2022-10-19 14:11:58.451262
[2022-10-19 16:11:58][DEBUG][root](Thread-6) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:11:58][DEBUG][root](Thread-5) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:11:58][DEBUG][root](Thread-6) : 1367 is up to date
[2022-10-19 16:11:58][DEBUG][root](Thread-5) : 1371 is up to date
[2022-10-19 16:12:23][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:12:23][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:12:23][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:12:28][DEBUG][root](Thread-4) : Get phone information 1358
[2022-10-19 16:12:28][DEBUG][root](Thread-6) : Get phone information 1367
[2022-10-19 16:12:28][DEBUG][root](Thread-5) : Get phone information 1371
[2022-10-19 16:12:53][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:12:53][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:12:53][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:12:53][DEBUG][root](Thread-4) : 1358 is absent
[2022-10-19 16:12:53][DEBUG][root](Thread-4) : lastStateDate: 2022-10-19 14:02:01.098149
[2022-10-19 16:12:53][DEBUG][root](Thread-4) : thresholdDate: 2022-10-19 14:03:31.098149
[2022-10-19 16:12:53][DEBUG][root](Thread-4) : datetime.utcnow(): 2022-10-19 14:12:53.555297
[2022-10-19 16:12:53][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:12:53][DEBUG][root](Thread-4) : 1358 is up to date
[2022-10-19 16:12:53][DEBUG][root](Thread-5) : 1371 is absent
[2022-10-19 16:12:53][DEBUG][root](Thread-5) : lastStateDate: 2022-10-10 22:50:11
[2022-10-19 16:12:53][DEBUG][root](Thread-5) : thresholdDate: 2022-10-10 22:51:41
[2022-10-19 16:12:53][DEBUG][root](Thread-5) : datetime.utcnow(): 2022-10-19 14:12:53.565628
[2022-10-19 16:12:53][DEBUG][root](Thread-5) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:12:53][DEBUG][root](Thread-5) : 1371 is up to date
[2022-10-19 16:12:53][DEBUG][root](Thread-6) : 1367 is absent
[2022-10-19 16:12:53][DEBUG][root](Thread-6) : lastStateDate: 2022-10-19 07:38:45
[2022-10-19 16:12:53][DEBUG][root](Thread-6) : thresholdDate: 2022-10-19 07:40:15
[2022-10-19 16:12:53][DEBUG][root](Thread-6) : datetime.utcnow(): 2022-10-19 14:12:53.570307
[2022-10-19 16:12:53][DEBUG][root](Thread-6) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:12:53][DEBUG][root](Thread-6) : 1367 is up to date
[2022-10-19 16:13:23][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:13:23][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:13:23][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:13:23][DEBUG][root](Thread-4) : Get phone information 1358
[2022-10-19 16:13:23][DEBUG][root](Thread-5) : Get phone information 1371
[2022-10-19 16:13:23][DEBUG][root](Thread-6) : Get phone information 1367
[2022-10-19 16:13:48][DEBUG][root](Thread-4) : 1358 is absent
[2022-10-19 16:13:48][DEBUG][root](Thread-5) : 1371 is absent
[2022-10-19 16:13:48][DEBUG][root](Thread-4) : lastStateDate: 2022-10-19 14:02:01.098149
[2022-10-19 16:13:48][DEBUG][root](Thread-5) : lastStateDate: 2022-10-10 22:50:11
[2022-10-19 16:13:48][DEBUG][root](Thread-4) : thresholdDate: 2022-10-19 14:03:31.098149
[2022-10-19 16:13:48][DEBUG][root](Thread-5) : thresholdDate: 2022-10-10 22:51:41
[2022-10-19 16:13:48][DEBUG][root](Thread-4) : datetime.utcnow(): 2022-10-19 14:13:48.671157
[2022-10-19 16:13:48][DEBUG][root](Thread-5) : datetime.utcnow(): 2022-10-19 14:13:48.671557
[2022-10-19 16:13:48][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:13:48][DEBUG][root](Thread-5) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:13:48][DEBUG][root](Thread-4) : 1358 is up to date
[2022-10-19 16:13:48][DEBUG][root](Thread-5) : 1371 is up to date
[2022-10-19 16:13:48][DEBUG][root](Thread-6) : 1367 is absent
[2022-10-19 16:13:48][DEBUG][root](Thread-6) : lastStateDate: 2022-10-19 07:38:45
[2022-10-19 16:13:48][DEBUG][root](Thread-6) : thresholdDate: 2022-10-19 07:40:15
[2022-10-19 16:13:48][DEBUG][root](Thread-6) : datetime.utcnow(): 2022-10-19 14:13:48.679679
[2022-10-19 16:13:48][DEBUG][root](Thread-6) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:13:48][DEBUG][root](Thread-6) : 1367 is up to date
[2022-10-19 16:13:53][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:13:53][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:13:53][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:14:18][DEBUG][root](Thread-4) : Get phone information 1358
[2022-10-19 16:14:18][DEBUG][root](Thread-5) : Get phone information 1371
[2022-10-19 16:14:18][DEBUG][root](Thread-6) : Get phone information 1367
[2022-10-19 16:14:23][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:14:23][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:14:23][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:14:43][DEBUG][root](Thread-4) : 1358 is absent
[2022-10-19 16:14:43][DEBUG][root](Thread-4) : lastStateDate: 2022-10-19 14:02:01.098149
[2022-10-19 16:14:43][DEBUG][root](Thread-4) : thresholdDate: 2022-10-19 14:03:31.098149
[2022-10-19 16:14:43][DEBUG][root](Thread-4) : datetime.utcnow(): 2022-10-19 14:14:43.767624
[2022-10-19 16:14:43][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:14:43][DEBUG][root](Thread-4) : 1358 is up to date
[2022-10-19 16:14:43][DEBUG][root](Thread-4) : 1358 forced refresh !
[2022-10-19 16:14:43][DEBUG][root](Thread-4) : device status: False
[2022-10-19 16:14:43][DEBUG][root](Thread-4) : Send to jeedom :  {'action': 'update_device_status', 'id': 1358, 'value': 0, 'source': 'Pi4Antenne1'}
[2022-10-19 16:14:43][DEBUG][root](Thread-5) : 1371 is absent
[2022-10-19 16:14:43][DEBUG][root](Thread-6) : 1367 is absent
[2022-10-19 16:14:43][DEBUG][root](Thread-5) : lastStateDate: 2022-10-10 22:50:11
[2022-10-19 16:14:43][DEBUG][root](Thread-6) : lastStateDate: 2022-10-19 07:38:45
[2022-10-19 16:14:43][DEBUG][root](Thread-5) : thresholdDate: 2022-10-10 22:51:41
[2022-10-19 16:14:43][DEBUG][root](Thread-6) : thresholdDate: 2022-10-19 07:40:15
[2022-10-19 16:14:43][DEBUG][root](Thread-5) : datetime.utcnow(): 2022-10-19 14:14:43.791021
[2022-10-19 16:14:43][DEBUG][root](Thread-6) : datetime.utcnow(): 2022-10-19 14:14:43.791377
[2022-10-19 16:14:43][DEBUG][root](Thread-5) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:14:43][DEBUG][root](Thread-6) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:14:43][DEBUG][root](Thread-5) : 1371 is up to date
[2022-10-19 16:14:43][DEBUG][root](Thread-6) : 1367 is up to date
[2022-10-19 16:14:43][DEBUG][root](Thread-4) : Status Code :  200
[2022-10-19 16:14:43][DEBUG][root](Thread-4) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:14:53][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:14:53][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:14:53][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}

Sur le log principale on voit bien la surveillance du téléphone 1368, au niveau de l’horodatage il y a 2 heures de différence, mais je ne sais pas pourquoi ?

LOG Principal :

[2022-10-19 16:28:51][DEBUG] : This is a heartbeat from antenna local
[2022-10-19 14:28:51][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 14:28:51][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 14:28:51][DEBUG][root](Thread-6) : Get phone information 1367
[2022-10-19 14:28:54][DEBUG][root](Thread-3) : Get phone information 1368
[2022-10-19 14:28:55][DEBUG][root](Thread-4) : Get phone information 1358
[2022-10-19 16:28:55][DEBUG] : This is a heartbeat from antenna Pi4Antenne1
[2022-10-19 14:28:56][DEBUG][root](Thread-6) : 1367 is absent
[2022-10-19 14:28:57][DEBUG][root](Thread-6) : lastStateDate: 2022-10-19 07:41:54
[2022-10-19 14:28:57][DEBUG][root](Thread-6) : thresholdDate: 2022-10-19 07:43:24
[2022-10-19 14:28:57][DEBUG][root](Thread-6) : datetime.today(): 2022-10-19 14:28:57.001249
[2022-10-19 14:28:57][DEBUG][root](Thread-6) : is datetime.today() > thresholdDate ? True
[2022-10-19 14:28:57][DEBUG][root](Thread-6) : 1367 is up to date
[2022-10-19 14:28:57][DEBUG][root](Thread-3) : 1368 is present
[2022-10-19 14:28:57][DEBUG][root](Thread-3) : 1368 is up to date
[2022-10-19 14:28:58][DEBUG][root](Thread-4) : 1358 is present
[2022-10-19 14:28:58][DEBUG][root](Thread-4) : 1358 is up to date
[2022-10-19 14:29:16][DEBUG][root](Thread-5) : Get phone information 1371
[2022-10-19 14:29:21][DEBUG][root](Thread-5) : 1371 is absent
[2022-10-19 14:29:21][DEBUG][root](Thread-5) : lastStateDate: 2022-09-18 16:35:07
[2022-10-19 14:29:21][DEBUG][root](Thread-5) : thresholdDate: 2022-09-18 16:36:37
[2022-10-19 14:29:21][DEBUG][root](Thread-5) : datetime.today(): 2022-10-19 14:29:21.291069
[2022-10-19 14:29:21][DEBUG][root](Thread-5) : is datetime.today() > thresholdDate ? True
[2022-10-19 14:29:21][DEBUG][root](Thread-5) : 1371 is up to date
[2022-10-19 14:29:21][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'local'}
[2022-10-19 16:29:21][DEBUG] : This is a heartbeat from antenna local
[2022-10-19 14:29:21][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 14:29:21][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:29:25][DEBUG] : This is a heartbeat from antenna Pi4Antenne1
[2022-10-19 14:29:27][DEBUG][root](Thread-6) : Get phone information 1367
[2022-10-19 14:29:27][DEBUG][root](Thread-3) : Get phone information 1368
[2022-10-19 14:29:28][DEBUG][root](Thread-4) : Get phone information 1358
[2022-10-19 14:29:32][DEBUG][root](Thread-6) : 1367 is absent
[2022-10-19 14:29:32][DEBUG][root](Thread-6) : lastStateDate: 2022-10-19 07:41:54
[2022-10-19 14:29:32][DEBUG][root](Thread-6) : thresholdDate: 2022-10-19 07:43:24
[2022-10-19 14:29:32][DEBUG][root](Thread-6) : datetime.today(): 2022-10-19 14:29:32.215491
[2022-10-19 14:29:32][DEBUG][root](Thread-6) : is datetime.today() > thresholdDate ? True
[2022-10-19 14:29:32][DEBUG][root](Thread-6) : 1367 is up to date
[2022-10-19 14:29:33][DEBUG][root](Thread-3) : 1368 is present
[2022-10-19 14:29:33][DEBUG][root](Thread-3) : 1368 is up to date
[2022-10-19 14:29:36][DEBUG][root](Thread-4) : 1358 is present
[2022-10-19 14:29:36][DEBUG][root](Thread-4) : 1358 is up to date

Pour autant dans santé on peut voir qu’il est bien « présent » sur l’antenne.

Du coup sur cet exemple lorsque le téléphone quitte la maison, il reste toujours présent sur l’antenne, mais dans d’autres cas il n’est plus vu alors qu’il se trouve a 1 mètre de l’antenne.

Si je fais une commande [lancer] sur l’antenne on retrouve pour un temps la surveillance correct du 1368 mais ce n’est pas toujours lui qui bug, cela peut être un ou plusieurs téléphone qui bug de la même façon.

Log AntennePI4 après une commande « lancer » sur cette même antenne:

[2022-10-19 16:44:57][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:44:57][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:44:57][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:44:58][DEBUG][root](Thread-2) : Message received in socket
----------------------------------------
Exception occurred during processing of request from ('192.168.1.5', 44987)
Traceback (most recent call last):
  File "/usr/lib/python3.9/socketserver.py", line 316, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.9/socketserver.py", line 347, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.9/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.9/socketserver.py", line 720, in __init__
    self.handle()
  File "/home/pi/phone_detectiond/resources/phone_detectiond/phone_detectiond.py", line 291, in handle
    lmessage = dict(message)
ValueError: dictionary update sequence element #0 has length 1; 2 is required
----------------------------------------
[2022-10-19 16:45:04][INFO][root](MainThread) : Start phone_detectiond
[2022-10-19 16:45:04][INFO][root](MainThread) : Log level : debug
[2022-10-19 16:45:04][INFO][root](MainThread) : Socket : 
[2022-10-19 16:45:04][INFO][root](MainThread) : SocketHost : 192.168.1.35
[2022-10-19 16:45:04][INFO][root](MainThread) : SocketPort : 55009
[2022-10-19 16:45:04][INFO][root](MainThread) : PID file : /tmp/phone_detectiond.pid
[2022-10-19 16:45:04][INFO][root](MainThread) : Device : hci0
[2022-10-19 16:45:04][INFO][root](MainThread) : Callback : http://192.168.1.5/plugins/phone_detection/core/php/phone_detection.php
[2022-10-19 16:45:04][INFO][root](MainThread) : Daemon Name : Pi4Antenne1
[2022-10-19 16:45:04][INFO][root](MainThread) : Interval : 30
[2022-10-19 16:45:04][INFO][root](MainThread) : Present Interval : 30
[2022-10-19 16:45:04][INFO][root](MainThread) : AbsentThreshold: 90
[2022-10-19 16:45:04][INFO][root](MainThread) : Python version : 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110]
[2022-10-19 16:45:04][DEBUG][root](MainThread) : Writing PID 2181 to /tmp/phone_detectiond.pid
[2022-10-19 16:45:04][INFO][root](MainThread) : Create phone_detection daemon
[2022-10-19 16:45:04][DEBUG][root](MainThread) : Send to test connection to jeedom
[2022-10-19 16:45:04][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'test', 'source': 'Pi4Antenne1'}
[2022-10-19 16:45:04][DEBUG][root](MainThread) : Status Code :  200
[2022-10-19 16:45:04][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:45:04][INFO][root](MainThread) : Start heartbeat thread
[2022-10-19 16:45:04][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:45:04][INFO][root](MainThread) : Use TCP socket for Jeedom -> daemon communication
[2022-10-19 16:45:05][INFO][root](MainThread) : Get devices from Jeedom
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'get_devices', 'source': 'Pi4Antenne1'}
[2022-10-19 16:45:05][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:45:05][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Status Code :  200
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': {'1368': {'state': True, 'lastValueDate': '2022-10-19 15:26:13', 'name': 'Loan (BT)', 'humanName': '[Individus][Loan (BT)]', 'id': '1368', 'macAddress': '88:46:04:71:18:cd'}, '1358': {'state': False, 'lastValueDate': '2022-10-19 16:26:54', 'name': 'Phiphila (BT)', 'humanName': '[Individus][Phiphila (BT)]', 'id': '1358', 'macAddress': '40:9C:28:57:DA:02'}, '1371': {'state': False, 'lastValueDate': '2022-10-10 22:50:11', 'name': 'Rozenn (BT)', 'humanName': '[Individus][Rozenn (BT)]', 'id': '1371', 'macAddress': '4c:f2:02:80:9d:00'}, '1367': {'state': False, 'lastValueDate': '2022-10-19 07:38:45', 'name': 'Ugo (BT)', 'humanName': '[Individus][Ugo (BT)]', 'id': '1367', 'macAddress': '94:0C:98:29:F4:30'}}}
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'refresh_group', 'source': 'Pi4Antenne1'}
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Status Code :  200
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:45:05][INFO][root](MainThread) : Start thread detection for Loan (BT) [88:46:04:71:18:cd]
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'get_status', 'id': 1368, 'source': 'Pi4Antenne1'}
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Status Code :  200
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': 1}
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Jeedom 1368 device status: True
[2022-10-19 16:45:05][DEBUG][root](Thread-3) : Get phone information 1368
[2022-10-19 16:45:05][INFO][root](MainThread) : Start thread detection for Phiphila (BT) [40:9C:28:57:DA:02]
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'get_status', 'id': 1358, 'source': 'Pi4Antenne1'}
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Status Code :  200
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Jeedom 1358 device status: False
[2022-10-19 16:45:05][DEBUG][root](Thread-4) : Get phone information 1358
[2022-10-19 16:45:05][INFO][root](MainThread) : Start thread detection for Rozenn (BT) [4c:f2:02:80:9d:00]
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'get_status', 'id': 1371, 'source': 'Pi4Antenne1'}
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Status Code :  200
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Jeedom 1371 device status: False
[2022-10-19 16:45:05][DEBUG][root](Thread-5) : Get phone information 1371
[2022-10-19 16:45:05][INFO][root](MainThread) : Start thread detection for Ugo (BT) [94:0C:98:29:F4:30]
[2022-10-19 16:45:05][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'get_status', 'id': 1367, 'source': 'Pi4Antenne1'}
[2022-10-19 16:45:06][DEBUG][root](MainThread) : Status Code :  200
[2022-10-19 16:45:06][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:45:06][DEBUG][root](MainThread) : Jeedom 1367 device status: False
[2022-10-19 16:45:06][DEBUG][root](Thread-6) : Get phone information 1367
[2022-10-19 16:45:09][DEBUG][root](Thread-3) : 1368 is present
[2022-10-19 16:45:09][DEBUG][root](Thread-3) : 1368 is up to date
[2022-10-19 16:45:34][DEBUG][root](Thread-4) : 1358 is absent
[2022-10-19 16:45:34][DEBUG][root](Thread-4) : lastStateDate: 2022-10-19 16:26:54
[2022-10-19 16:45:34][DEBUG][root](Thread-4) : thresholdDate: 2022-10-19 16:28:24
[2022-10-19 16:45:34][DEBUG][root](Thread-4) : datetime.utcnow(): 2022-10-19 14:45:34.397700
[2022-10-19 16:45:34][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? False
[2022-10-19 16:45:34][DEBUG][root](Thread-4) : 1358 is up to date
[2022-10-19 16:45:34][DEBUG][root](Thread-5) : 1371 is absent
[2022-10-19 16:45:34][DEBUG][root](Thread-6) : 1367 is absent
[2022-10-19 16:45:34][DEBUG][root](Thread-5) : lastStateDate: 2022-10-10 22:50:11
[2022-10-19 16:45:34][DEBUG][root](Thread-6) : lastStateDate: 2022-10-19 07:38:45
[2022-10-19 16:45:34][DEBUG][root](Thread-5) : thresholdDate: 2022-10-10 22:51:41
[2022-10-19 16:45:34][DEBUG][root](Thread-6) : thresholdDate: 2022-10-19 07:40:15
[2022-10-19 16:45:34][DEBUG][root](Thread-5) : datetime.utcnow(): 2022-10-19 14:45:34.407016
[2022-10-19 16:45:34][DEBUG][root](Thread-6) : datetime.utcnow(): 2022-10-19 14:45:34.407385
[2022-10-19 16:45:34][DEBUG][root](Thread-5) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:45:34][DEBUG][root](Thread-6) : is datetime.utcnow() > thresholdDate ? True
[2022-10-19 16:45:34][DEBUG][root](Thread-5) : 1371 is up to date
[2022-10-19 16:45:34][DEBUG][root](Thread-6) : 1367 is up to date
[2022-10-19 16:45:35][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:45:35][DEBUG][root](Thread-1) : Status Code :  200
[2022-10-19 16:45:35][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-10-19 16:45:39][DEBUG][root](Thread-3) : Get phone information 1368
[2022-10-19 16:45:42][DEBUG][root](Thread-3) : 1368 is present
[2022-10-19 16:45:42][DEBUG][root](Thread-3) : 1368 is up to date
[2022-10-19 16:46:04][DEBUG][root](Thread-4) : Get phone information 1358
[2022-10-19 16:46:04][DEBUG][root](Thread-5) : Get phone information 1371
[2022-10-19 16:46:04][DEBUG][root](Thread-6) : Get phone information 1367
[2022-10-19 16:46:05][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-10-19 16:46:05][DEBUG][root](Thread-1) : Status Code :  200

Voilà, j’ai beaucoup lu et fais pas mal de test sur l’antenne, mais je ne sais plus quoi faire de plus.
Si vous pouvez m’aider, je n’ai jamais trouvé sur le net dans mes recherches ce genre de problème, je ne comprends pas pourquoi la surveillance des téléphones disparaît inopinément …

La seule solution trouvée pour l’instant à été mettre a la fin du fichier /home/pi/phone_detectiond/resources/phone_detectiond/phone_detectiond.py

#Stop Phone détection relance par jeedom et bonne mise a jour des téléphones
time.sleep(15)
shutdown()

Bonsoir @phiphila
J’ai chez moi un code quo tourne depuis longtemps sur une VM et 3 rpi.
Il utilise pybluez au lieu de l’appel système, et normalement le thread ne devrait pas s’arrêter envas d’erreur.
J’ai pousse le code en beta sur le market cet après-midi.
Tu peux essayer de l’installer, en reinstallant les dépenses et les fichiers sur les antennes
Je n’ai pas beaucoup de temps en moment pour troubleshooter, mais je pense que cette version est plus stable (j’ai 4 téléphones)
Tiens moi au courant
Benoit

Bonjour Benoit

Mon Jeedom est sur une smart et je tiens à garder le support actif, et si j’ai bien compris, je ne dois pas activer l’accès aux versions bêta, chose que je n’ai jamais faite.
par contre sur l’antenne pi là c’est open bar, si besoin de faire des modifications ^^

J’espère voir votre version bêta arriver en stable prochainement, parce que même avec ma « modif » ce n’est pas parfait, j’ai des téléphones qui passent de temps en temps en absent pendant quelques instants.

Si j’enlève ma « modif » le log de l’antenne montre bien que les téléphones, absents depuis le redémarrage de l’antenne (survenue il y a 1 semaine) sont toujours bien scrutés, par contre pour mon téléphone, le 1358, qui va et vient dans la journée, n’est plus scruté,… Inexistant dans le log. Pourtant, sur le log de la smart les détections sur ce téléphone, le 1358, fonctionnent toujours comme il faut.

Bienvenue au club,
J’ai le même genre de soucis depuis qq mois, la détection se bloque de manière aléatoire entre l’antenne locale et une antenne déportée.
Obligé de relancer le daemon régulièrement.

bonsoir @nniccollas ,

tu as l’air de décrire un problème différent. Tu parles de problème de communication entre l’antenne remote et le jeedom ‹ local ›.
Phiphila, lui, indique que l’antenne remote arrête de scruter l’état de son telephone, ce qui, bien entendu, renvoie des informations erronées au jeedom ‹ local ›.

Quand tu redémarres le daemon, est-ce le demon ‹ remote › ou le demon ‹ local ›.
Est-ce que tu as des problèmes seulement sur un demon ‹ remote ›, ou cela se produit aussi sur le daemon ‹ local ›?

merci par avance pour tes réponses
Benoit

Hello,

Mon problème est global, que ce soit en local ou sur l’antenne remote, la détection se bloque ou ne détecte plus, je ne sais pas.
Un redémarrage du deamon local résout le soucis.

Lorsque plus personne ne se trouve physiquement au domicile, parfois:

  • Le local ou L’antenne remote me detecte toujours.
  • Le local ou L’antenne remote me marque absent alors que je suis là.

Un redémarrage du deamon local résout le soucis.

Hello @nniccollas ,

merci pour les informations, je pense que c’est effectivement le meme probleme. D’apres mes recherches, le probleme vient des acces concurrents au driver bluetooth, qui ne le gere pas correctement.
La solution est de rendre sequentiel les appels au driver bluetooth, comme propose avec une gestion des acces concurrents, ou en re-ecrivant partiellement le code pour sequentialiser les appels. Le probleme de cette solution, c’est qu’actuellement il y a une verification de la presence des telephones toutes les 10 secondes par defaut, et un timeout de 10 secondes. Donc si tu as 4 telephones, ta frequence de detection de presence max ne pourrait etre garanti toute les 10 secondes…
Je viens de pousser en stable le code que j’utilise depuis puis d’un an. Il devrait etre propose dans la journee ou demain par le market jeedom. Il faut mettre a jour les depences !
Je l’utilise avec 4 antennes remote (pas de local), 4 telephones, et un polling de '15 secondes en cas d’absence, 45 secondes en cas de presence, delai pour considerer le telephone absent de 200 secondes.
Je n’ai pas de blocage, ou de faux positif. Par « prudence » je redemarre toutes les antennes tous les jours dans la nuit, pour phone_detection et blea avec le scenario suivant (a mettre dans un bloc code)

blea::launch_allremotes();  
phone_detection::launch_allremotes();

j’espere que ca va aider.
Benoit

Bonsoir,

Peux-tu confirmer la version du démon pour l’antenne après la mise à jour ?
Je reste toujours en 1.0 malgré la mise à jour alors que le plugin est en V2.0

Merci !

Mise à jour effectuée, a voir ce que ça donne demain.
merci :+1:

La version du démon de mon antenne Pi4Antenne1 est en 1.0 aussi, je pense que c’est juste l’info de version qui n’a pas été actualisée.

Dans les logs de la smart en local et de l’antenne, j’ai une erreur de bt
2022-11-19 21:55:17][DEBUG]root : bt error 5: Input/output error


Smart Local:

[2022-11-19 22:54:56][DEBUG] : Device Name: [Individus][Loan (BT)]
[2022-11-19 22:54:56][INFO] : Update value from 1 to 1 for [Individus][Loan (BT)][Etat_Pi4Antenne1]
[2022-11-19 22:54:56][DEBUG] : [Individus][Loan (BT)]-->1
[2022-11-19 22:54:56][DEBUG] : [Individus][Philippe (BT)]-->1
[2022-11-19 22:54:56][DEBUG] : [Individus][Rozenn (BT)]-->0
[2022-11-19 22:54:56][DEBUG] : [Individus][Ugo (BT)]-->1
[2022-11-19 22:54:56][DEBUG] : updateGlobalDevice: state=1/nb1=3/nbDevices=4
[2022-11-19 22:55:08][INFO] : Update device status from antenna Pi4Antenne1
[2022-11-19 22:55:08][DEBUG] : id: 1358, value:1
[2022-11-19 22:55:08][DEBUG] : Device Name: [Individus][Philippe (BT)]
[2022-11-19 22:55:08][INFO] : Update value from 1 to 1 for [Individus][Philippe (BT)][Etat_Pi4Antenne1]
[2022-11-19 22:55:08][DEBUG] : [Individus][Loan (BT)]-->1
[2022-11-19 22:55:08][DEBUG] : [Individus][Philippe (BT)]-->1
[2022-11-19 22:55:08][DEBUG] : [Individus][Rozenn (BT)]-->0
[2022-11-19 22:55:08][DEBUG] : [Individus][Ugo (BT)]-->1
[2022-11-19 22:55:08][DEBUG] : updateGlobalDevice: state=1/nb1=3/nbDevices=4
[2022-11-19 21:55:09][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'local'}
[2022-11-19 22:55:09][DEBUG] : This is a heartbeat from antenna local
[2022-11-19 21:55:09][DEBUG][root](Thread-1) : Status Code :  200
[2022-11-19 21:55:09][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-11-19 21:55:12][DEBUG][root](Thread-5) : Get phone information 1371
[2022-11-19 22:55:13][DEBUG] : This is a heartbeat from antenna Pi4Antenne1
[2022-11-19 21:55:13][DEBUG][root](Thread-6) : Get phone information 1367
[2022-11-19 21:55:16][DEBUG][root](Thread-3) : Get phone information 1368
[2022-11-19 21:55:17][DEBUG][root](Thread-4) : Get phone information 1358
[2022-11-19 21:55:17][DEBUG][root](Thread-5) : bt error 5: Input/output error
[2022-11-19 21:55:17][DEBUG][root](Thread-5) : 1371 is absent
[2022-11-19 21:55:17][DEBUG][root](Thread-5) : lastStateDate: 2022-10-29 16:30:25
[2022-11-19 21:55:17][DEBUG][root](Thread-5) : thresholdDate: 2022-10-29 16:32:25
[2022-11-19 21:55:17][DEBUG][root](Thread-5) : datetime.utcnow(): 2022-11-19 21:55:17.504156
[2022-11-19 21:55:17][DEBUG][root](Thread-5) : is datetime.utcnow() > thresholdDate ? True
[2022-11-19 21:55:17][DEBUG][root](Thread-6) : 1367 is present
[2022-11-19 21:55:18][DEBUG][root](Thread-3) : 1368 is present
[2022-11-19 21:55:18][DEBUG][root](Thread-4) : 1358 is present

antenne:

[2022-11-19 22:44:23][DEBUG][root](Thread-3) : Get phone information 1368
[2022-11-19 22:44:25][DEBUG][root](Thread-5) : bt error 5: Input/output error
[2022-11-19 22:44:25][DEBUG][root](Thread-5) : 1371 is absent
[2022-11-19 22:44:25][DEBUG][root](Thread-5) : lastStateDate: 2022-10-30 17:33:03
[2022-11-19 22:44:25][DEBUG][root](Thread-5) : thresholdDate: 2022-10-30 17:35:03
[2022-11-19 22:44:25][DEBUG][root](Thread-5) : datetime.utcnow(): 2022-11-19 21:44:25.873426
[2022-11-19 22:44:25][DEBUG][root](Thread-5) : is datetime.utcnow() > thresholdDate ? True
[2022-11-19 22:44:26][DEBUG][root](Thread-6) : 1367 is present
[2022-11-19 22:44:26][DEBUG][root](Thread-3) : 1368 is present
[2022-11-19 22:44:44][DEBUG][root](Thread-1) : Send to jeedom :  {'action': 'heartbeat', 'source': 'Pi4Antenne1'}
[2022-11-19 22:44:44][DEBUG][root](Thread-1) : Status Code :  200
[2022-11-19 22:44:44][DEBUG][root](Thread-1) : Jeedom reply :  {'success': True, 'value': 0}
[2022-11-19 22:44:45][DEBUG][root](Thread-4) : Get phone information 1358
[2022-11-19 22:44:50][DEBUG][root](Thread-4) : bt error 5: Input/output error
[2022-11-19 22:44:50][DEBUG][root](Thread-4) : 1358 is absent
[2022-11-19 22:44:50][DEBUG][root](Thread-4) : lastStateDate: 2022-11-19 22:38:39
[2022-11-19 22:44:50][DEBUG][root](Thread-4) : thresholdDate: 2022-11-19 22:40:39
[2022-11-19 22:44:50][DEBUG][root](Thread-4) : datetime.utcnow(): 2022-11-19 21:44:50.888221
[2022-11-19 22:44:50][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? False
[2022-11-19 22:44:50][DEBUG][root](Thread-5) : Get phone information 1371
[2022-11-19 22:44:51][DEBUG][root](Thread-6) : Get phone information 1367
[2022-11-19 22:44:51][DEBUG][root](Thread-3) : Get phone information 1368
[2022-11-19 22:44:56][DEBUG][root](Thread-5) : bt error 5: Input/output error
[2022-11-19 22:44:56][DEBUG][root](Thread-5) : 1371 is absent
[2022-11-19 22:44:56][DEBUG][root](Thread-5) : lastStateDate: 2022-10-30 17:33:03
[2022-11-19 22:44:56][DEBUG][root](Thread-5) : thresholdDate: 2022-10-30 17:35:03
[2022-11-19 22:44:56][DEBUG][root](Thread-5) : datetime.utcnow(): 2022-11-19 21:44:56.030781
[2022-11-19 22:44:56][DEBUG][root](Thread-5) : is datetime.utcnow() > thresholdDate ? True
[2022-11-19 22:44:57][DEBUG][root](Thread-6) : 1367 is present
[2022-11-19 22:44:57][DEBUG][root](Thread-3) : 1368 is present

salut

As tu résolu ton problème?
J’ai la même erreur sur ma fresh install Jeedom v4.3.10, dernière version du plugin phone_detection.
Contrairement à toi l’antenne est en local.
hcitool scan fonctionne et blea aussi. J’ai bien sur arrêté blea pour tester

[2022-11-20 13:51:33][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'get_status', 'id': 325, 'source': 'local'}
[2022-11-20 13:51:33][DEBUG][root](Thread-3) : bt error 5: Input/output error
[2022-11-20 13:51:33][DEBUG][root](Thread-4) : bt error 5: Input/output error
[2022-11-20 13:51:33][DEBUG][root](Thread-3) : 327 is absent
[2022-11-20 13:51:33][DEBUG][root](Thread-4) : 323 is absent

voila la log de l’install des dépendances

********************************************************
*			 Installation des dépendances			 *
********************************************************
Hit:1 http://ftp.fr.debian.org/debian buster InRelease
Get:2 http://ftp.fr.debian.org/debian buster-updates InRelease [56.6 kB]
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:4 https://deb.nodesource.com/node_16.x buster InRelease
Fetched 56.6 kB in 1s (99.4 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
libatlas-base-dev is already the newest version (3.10.3-8).
build-essential is already the newest version (12.6).
libffi-dev is already the newest version (3.2.1-9).
libopenjp2-7 is already the newest version (2.3.0-2+deb10u2).
libssl-dev is already the newest version (1.1.1n-0+deb10u3).
python3-serial is already the newest version (3.4-4).
python3-setuptools is already the newest version (40.8.0-1).
python3-dev is already the newest version (3.7.3-1).
python3-pyudev is already the newest version (0.21.0-1).
python3-requests is already the newest version (2.21.0-1).
libtiff5 is already the newest version (4.1.0+git191117-2~deb10u4).
rfkill is already the newest version (2.33.1-0.1).
bluetooth is already the newest version (5.50-1.2~deb10u3).
libbluetooth-dev is already the newest version (5.50-1.2~deb10u3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  bluez-hcidump
0 upgraded, 1 newly installed, 3 reinstalled, 0 to remove and 0 not upgraded.
Need to get 179 kB/1444 kB of archives.
After this operation, 501 kB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security buster/updates/main amd64 bluez-hcidump amd64 5.50-1.2~deb10u3 [179 kB]
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: 
Fetched 179 kB in 0s (2090 kB/s)
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 65651 files and directories currently installed.)
Preparing to unpack .../python3_3.7.3-1_amd64.deb ...
running python pre-rtupdate hooks for python3.7...
Unpacking python3 (3.7.3-1) over (3.7.3-1) ...
Preparing to unpack .../bluez_5.50-1.2~deb10u3_amd64.deb ...
Unpacking bluez (5.50-1.2~deb10u3) over (5.50-1.2~deb10u3) ...
Preparing to unpack .../python3-pip_18.1-5_all.deb ...
Unpacking python3-pip (18.1-5) over (18.1-5) ...
Selecting previously unselected package bluez-hcidump.
Preparing to unpack .../bluez-hcidump_5.50-1.2~deb10u3_amd64.deb ...
Unpacking bluez-hcidump (5.50-1.2~deb10u3) ...
Setting up bluez-hcidump (5.50-1.2~deb10u3) ...
Setting up python3 (3.7.3-1) ...
running python rtupdate hooks for python3.7...
running python post-rtupdate hooks for python3.7...
Setting up bluez (5.50-1.2~deb10u3) ...
Setting up python3-pip (18.1-5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for dbus (1.12.24-0+deb10u1) ...
Processing triggers for systemd (241-7~deb10u8) ...
Requirement already satisfied: setuptools in /usr/local/lib/python3.7/dist-packages (65.5.1)
Collecting setuptools
  Downloading setuptools-65.6.0-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 18.6 MB/s eta 0:00:00
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 65.5.1
    Uninstalling setuptools-65.5.1:
      Successfully uninstalled setuptools-65.5.1
Successfully installed setuptools-65.6.0
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
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.20.1-2+deb10u4).
libglib2.0-dev is already the newest version (2.58.3-2+deb10u4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already satisfied: pyudev in /usr/local/lib/python3.7/dist-packages (0.24.0)
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
Requirement already satisfied: pyserial in /usr/local/lib/python3.7/dist-packages (3.5)
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
Requirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (2.28.1)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests) (3.4)
Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.7/dist-packages (from requests) (2.1.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests) (2022.9.24)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests) (1.26.12)
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: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...

Reading state information...
The following NEW packages will be installed:
  python3-bluez
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 46.9 kB of archives.
After this operation, 268 kB of additional disk space will be used.
Get:1 http://ftp.fr.debian.org/debian buster/main amd64 python3-bluez amd64 0.22+really0.22-1 [46.9 kB]
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: 
Fetched 46.9 kB in 0s (288 kB/s)
Selecting previously unselected package python3-bluez.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
Preparing to unpack .../python3-bluez_0.22+really0.22-1_amd64.deb ...
Unpacking python3-bluez (0.22+really0.22-1) ...
Setting up python3-bluez (0.22+really0.22-1) ...
Requirement already satisfied: cryptography in /usr/local/lib/python3.7/dist-packages (38.0.3)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.7/dist-packages (from cryptography) (1.15.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi>=1.12->cryptography) (2.21)
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
Requirement already satisfied: pycrypto in /usr/lib/python3/dist-packages (2.6.1)
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
********************************************************
*			 Installation terminée					*
********************************************************

Merci!

Hello @rootard et @phiphila .
je pense que cette erreur apparait quand le telephone est absent, donc que ce n’est pas vraiment une erreur. Le thread continue a bien fonctionner apres ce message, et donc le polling tu telephones continue. Lorsqu’il sera present, l’erreur disparaitra.
Je ferai un fix plus tard pour transformer ce message en debug et laisser les erreurs pour les autres message. Je pense que « bt error 5 » doit être le timeout. Il faut d’abord que je verifie avant de publier un fix.
Benoit

Merci pour ta réponse
Je suis sur un NUC, les tels sont présents mais pas détectés il doit y avoir autre chose
A suivre

Salut @benoit5672,

Depuis votre dernière mise à jour il y a une grosse amélioration, mes problèmes de téléphone bloqué en présent ou en absent sur l’antenne ont disparus. Bon cela ne fait que quelques jours, j’attends donc une petite semaine pour crier victoire, mais ça a l’air d’être sur la bonne voie, merci donc d’avoir mis à jour votre plugin, c’est super :+1: :+1:

1 « J'aime »

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