Bonjour,
Depuis quelques temps j’ai des soucis. Le plugin fonctionne bien pendant une dizaine de jours sans aucune décroche du bluetooth et d’un coup plus rien.
La dernière fois j’ai relancé les dépendances ça s’est mis à refonctionner ou alors je dois redémarrer le pi3b+.
J’ai toujours utilisé le bluetooth du pi.
je viens de tester le service avec la commande " sudo service bluetooth status " et le service est bien actif.
Qu’est ce que je peux tester d’autres ?
Téléphones utilisés : iphone
Voici le log debug
[2021-10-27 19:45:54][DEBUG] : This is a heartbeat from antenna local
[2021-10-27 19:45:58][INFO] : Launching remotes ...
Signal 15 caught, exiting...
[2021-10-27 19:45:59][INFO] : Lancement démon phone_detection : /usr/bin/python3 /var/www/html/plugins/phone_detection/core/class/../../resources/phone_detectiond/phone_detectiond.py --device hci0 --loglevel debug --apikey dMAShIEC7RPhPpYmrvKwJtkivRulvWxR --pidfile /tmp/jeedom/phone_detection/phone_detectiond.pid --socket /tmp/jeedom/phone_detection/daemon.sock --callback http://127.0.0.1:80/plugins/phone_detection/core/php/phone_detection.php --daemonname "local" --interval 10 --present_interval 30 --absentThreshold 180
[2021-10-27 19:46:00][INFO][root](MainThread) : Start phone_detectiond
[2021-10-27 19:46:00][INFO][root](MainThread) : Log level : debug
[2021-10-27 19:46:00][INFO][root](MainThread) : Socket : /tmp/jeedom/phone_detection/daemon.sock
[2021-10-27 19:46:00][INFO][root](MainThread) : SocketHost :
[2021-10-27 19:46:00][INFO][root](MainThread) : SocketPort : 0
[2021-10-27 19:46:00][INFO][root](MainThread) : PID file : /tmp/jeedom/phone_detection/phone_detectiond.pid
[2021-10-27 19:46:00][INFO][root](MainThread) : Device : hci0
[2021-10-27 19:46:00][INFO][root](MainThread) : Callback : http://127.0.0.1:80/plugins/phone_detection/core/php/phone_detection.php
[2021-10-27 19:46:00][INFO][root](MainThread) : Daemon Name : local
[2021-10-27 19:46:00][INFO][root](MainThread) : Interval : 10
[2021-10-27 19:46:00][INFO][root](MainThread) : Present Interval : 30
[2021-10-27 19:46:00][INFO][root](MainThread) : AbsentThreshold: 180
[2021-10-27 19:46:00][INFO][root](MainThread) : Python version : 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0]
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Writing PID 7786 to /tmp/jeedom/phone_detection/phone_detectiond.pid
[2021-10-27 19:46:00][INFO][root](MainThread) : Create phone_detection daemon
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Send to test connection to jeedom
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Send to jeedom : {'action': 'test', 'source': 'local'}
[2021-10-27 19:46:00][INFO] : Receive a test from antenna local
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Status Code : 200
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0}
[2021-10-27 19:46:00][INFO][root](MainThread) : Start heartbeat thread
[2021-10-27 19:46:00][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'}
[2021-10-27 19:46:00][INFO][root](MainThread) : Use Unix socket for Jeedom -> daemon communication
[2021-10-27 19:46:00][INFO][root](MainThread) : Get devices from Jeedom
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_devices', 'source': 'local'}
[2021-10-27 19:46:00][DEBUG] : This is a heartbeat from antenna local
[2021-10-27 19:46:00][DEBUG][root](Thread-1) : Status Code : 200
[2021-10-27 19:46:00][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0}
[2021-10-27 19:46:00][INFO] : Receive get_devices from antenna local
[2021-10-27 19:46:00][DEBUG] : [Membres][bluetooth Christophe]-->0
[2021-10-27 19:46:00][DEBUG] : [Membres][bluetooth Coralie]-->0
[2021-10-27 19:46:00][DEBUG] : updateGlobalDevice: state=0/nb1=0/nbDevices=1
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Status Code : 200
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': {'144': {'state': False, 'lastValueDate': '2021-10-27 16:14:37', 'name': 'bluetooth Christophe', 'humanName': '[Membres][bluetooth Christophe]', 'id': '144', 'macAddress': '40:9C:28:76:DB:5B'}, '146': {'state': False, 'lastValueDate': '2021-10-27 06:37:59', 'name': 'bluetooth Coralie', 'humanName': '[Membres][bluetooth Coralie]', 'id': '146', 'macAddress': 'D0:2B:20:5F:09:23'}}}
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Send to jeedom : {'action': 'refresh_group', 'source': 'local'}
[2021-10-27 19:46:00][INFO] : Receive refresh_group from antenna local
[2021-10-27 19:46:00][DEBUG] : [Membres][bluetooth Christophe]-->0
[2021-10-27 19:46:00][DEBUG] : [Membres][bluetooth Coralie]-->0
[2021-10-27 19:46:00][DEBUG] : updateGlobalDevice: state=0/nb1=0/nbDevices=1
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Status Code : 200
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0}
[2021-10-27 19:46:00][INFO][root](MainThread) : Start thread detection for bluetooth Christophe [40:9C:28:76:DB:5B]
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_status', 'id': 144, 'source': 'local'}
[2021-10-27 19:46:00][INFO] : Receive get_status for from antenna local
[2021-10-27 19:46:00][DEBUG] : id: 144
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Status Code : 200
[2021-10-27 19:46:00][INFO] : Launching remotes ...
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0}
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Jeedom 144 device status: False
[2021-10-27 19:46:00][DEBUG][root](Thread-3) : Get phone information 144
[2021-10-27 19:46:00][INFO][root](MainThread) : Start thread detection for bluetooth Coralie [D0:2B:20:5F:09:23]
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_status', 'id': 146, 'source': 'local'}
[2021-10-27 19:46:00][INFO] : Démon phone_detection lancé
[2021-10-27 19:46:00][INFO] : Receive get_status for from antenna local
[2021-10-27 19:46:00][DEBUG] : id: 146
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Status Code : 200
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0}
[2021-10-27 19:46:00][DEBUG][root](MainThread) : Jeedom 146 device status: False
[2021-10-27 19:46:00][DEBUG][root](Thread-4) : Get phone information 146
[2021-10-27 19:46:00][DEBUG][root](Thread-3) : 144 is absent
[2021-10-27 19:46:00][DEBUG][root](Thread-3) : lastStateDate: 2021-10-27 16:14:37
[2021-10-27 19:46:00][DEBUG][root](Thread-3) : thresholdDate: 2021-10-27 16:17:37
[2021-10-27 19:46:00][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-27 17:46:00.594567
[2021-10-27 19:46:00][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True
[2021-10-27 19:46:00][DEBUG][root](Thread-3) : 144 is up to date
[2021-10-27 19:46:00][DEBUG][root](Thread-4) : 146 is absent
[2021-10-27 19:46:00][DEBUG][root](Thread-4) : lastStateDate: 2021-10-27 06:37:59
[2021-10-27 19:46:00][DEBUG][root](Thread-4) : thresholdDate: 2021-10-27 06:40:59
[2021-10-27 19:46:00][DEBUG][root](Thread-4) : datetime.utcnow(): 2021-10-27 17:46:00.631899
[2021-10-27 19:46:00][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? True
[2021-10-27 19:46:00][DEBUG][root](Thread-4) : 146 is up to date
[2021-10-27 19:46:10][DEBUG][root](Thread-3) : Get phone information 144
[2021-10-27 19:46:10][DEBUG][root](Thread-4) : Get phone information 146
[2021-10-27 19:46:10][DEBUG][root](Thread-3) : 144 is absent
[2021-10-27 19:46:10][DEBUG][root](Thread-3) : lastStateDate: 2021-10-27 16:14:37
[2021-10-27 19:46:10][DEBUG][root](Thread-3) : thresholdDate: 2021-10-27 16:17:37
[2021-10-27 19:46:10][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-27 17:46:10.662377
[2021-10-27 19:46:10][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True
[2021-10-27 19:46:10][DEBUG][root](Thread-3) : 144 is up to date
[2021-10-27 19:46:10][DEBUG][root](Thread-4) : 146 is absent
[2021-10-27 19:46:10][DEBUG][root](Thread-4) : lastStateDate: 2021-10-27 06:37:59
[2021-10-27 19:46:10][DEBUG][root](Thread-4) : thresholdDate: 2021-10-27 06:40:59
[2021-10-27 19:46:10][DEBUG][root](Thread-4) : datetime.utcnow(): 2021-10-27 17:46:10.709072
[2021-10-27 19:46:10][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? True
[2021-10-27 19:46:10][DEBUG][root](Thread-4) : 146 is up to date
Merci
@benoit5672 c’est peut-être pas le plugin mais je sais pas ou chercher le problème.