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
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
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 …