[2021-10-18 10:49:37][INFO] : Launching remotes ... [2021-10-18 10:49:37][INFO] : Lancement du démon distant [2021-10-18 10:49:37][INFO] : Arret du demon distant 2 [2021-10-18 10:49:37][DEBUG] : callDaemon (tcp://192.168.1.0:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 10:49:37][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 8HvmYjQRFXI8x --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 20 --absentThreshold 60 [2021-10-18 10:49:37][INFO][root](MainThread) : Start phone_detectiond [2021-10-18 10:49:37][INFO][root](MainThread) : Log level : debug [2021-10-18 10:49:37][INFO][root](MainThread) : Socket : /tmp/jeedom/phone_detection/daemon.sock [2021-10-18 10:49:37][INFO][root](MainThread) : SocketHost : [2021-10-18 10:49:37][INFO][root](MainThread) : SocketPort : 0 [2021-10-18 10:49:37][INFO][root](MainThread) : PID file : /tmp/jeedom/phone_detection/phone_detectiond.pid [2021-10-18 10:49:37][INFO][root](MainThread) : Device : hci0 [2021-10-18 10:49:37][INFO][root](MainThread) : Callback : http://127.0.0.1:80/plugins/phone_detection/core/php/phone_detection.php [2021-10-18 10:49:37][INFO][root](MainThread) : Daemon Name : local [2021-10-18 10:49:37][INFO][root](MainThread) : Interval : 10 [2021-10-18 10:49:37][INFO][root](MainThread) : Present Interval : 20 [2021-10-18 10:49:37][INFO][root](MainThread) : AbsentThreshold: 60 [2021-10-18 10:49:37][INFO][root](MainThread) : Python version : 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] [2021-10-18 10:49:37][DEBUG][root](MainThread) : Writing PID 28555 to /tmp/jeedom/phone_detection/phone_detectiond.pid [2021-10-18 10:49:37][INFO][root](MainThread) : Create phone_detection daemon [2021-10-18 10:49:37][DEBUG][root](MainThread) : Send to test connection to jeedom [2021-10-18 10:49:37][DEBUG][root](MainThread) : Send to jeedom : {'action': 'test', 'source': 'local'} [2021-10-18 10:49:37][INFO] : Receive a test from antenna local [2021-10-18 10:49:37][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 10:49:37][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:49:37][INFO][root](MainThread) : Start heartbeat thread [2021-10-18 10:49:37][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 10:49:37][INFO][root](MainThread) : Use Unix socket for Jeedom -> daemon communication [2021-10-18 10:49:37][INFO][root](MainThread) : Get devices from Jeedom [2021-10-18 10:49:37][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_devices', 'source': 'local'} [2021-10-18 10:49:37][DEBUG] : This is a heartbeat from antenna local [2021-10-18 10:49:37][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 10:49:37][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:49:37][INFO] : Receive get_devices from antenna local [2021-10-18 10:49:37][INFO] : updateGlobalDevice() [2021-10-18 10:49:37][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 10:49:37][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': {'180': {'state': False, 'lastValueDate': '2021-10-18 07:54:06', 'name': 'Mobile_Bluetooth_Mag', 'humanName': '[Variables][Mobile_Bluetooth_Mag]', 'id': '180', 'macAddress': '08:aa:55:70:14:36'}, '177': {'state': True, 'lastValueDate': '2021-10-18 10:46:38', 'name': 'Mobile_Bluetooth_Nico', 'humanName': '[Variables][Mobile_Bluetooth_Nico]', 'id': '177', 'macAddress': '24:5A:B5:C4:3B:E2'}}} [2021-10-18 10:49:37][DEBUG][root](MainThread) : Send to jeedom : {'action': 'refresh_group', 'source': 'local'} [2021-10-18 10:49:37][INFO] : Receive refresh_group from antenna local [2021-10-18 10:49:37][INFO] : updateGlobalDevice() [2021-10-18 10:49:37][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 10:49:37][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:49:37][INFO][root](MainThread) : Start thread detection for Mobile_Bluetooth_Mag [08:aa:55:70:14:36] [2021-10-18 10:49:37][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_status', 'id': 180, 'source': 'local'} [2021-10-18 10:49:37][INFO] : Receive get_status for from antenna local [2021-10-18 10:49:37][DEBUG] : id: 180 [2021-10-18 10:49:37][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 10:49:37][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:49:37][DEBUG][root](MainThread) : Jeedom 180 device status: False [2021-10-18 10:49:37][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:49:37][INFO][root](MainThread) : Start thread detection for Mobile_Bluetooth_Nico [24:5A:B5:C4:3B:E2] [2021-10-18 10:49:37][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_status', 'id': 177, 'source': 'local'} [2021-10-18 10:49:38][INFO] : Receive get_status for from antenna local [2021-10-18 10:49:38][DEBUG] : id: 177 [2021-10-18 10:49:38][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 10:49:38][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 1} [2021-10-18 10:49:38][DEBUG][root](MainThread) : Jeedom 177 device status: True [2021-10-18 10:49:38][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 10:49:38][DEBUG] : error 0 : [2021-10-18 10:49:38][DEBUG] : result callDaemon [2021-10-18 10:49:38][INFO] : Launching remotes ... [2021-10-18 10:49:38][INFO] : Lancement du démon distant [2021-10-18 10:49:38][INFO] : Arret du demon distant 2 [2021-10-18 10:49:38][DEBUG] : callDaemon (tcp://192.168.1.0:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 10:49:38][DEBUG] : error 0 : [2021-10-18 10:49:38][DEBUG] : result callDaemon [2021-10-18 10:49:39][INFO] : Commande par SSH fuser -k 55009/tcp >> /dev/null 2>&1 & sur 192.168.1.0 [2021-10-18 10:49:39][INFO] : Commande par SSH fuser -k 55009/tcp >> /dev/null 2>&1 & sur 192.168.1.0 [2021-10-18 10:49:43][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:49:43][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:49:43][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:49:43][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:49:43.179327 [2021-10-18 10:49:43][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:49:43][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:49:43][DEBUG][root](Thread-4) : 177 is present [2021-10-18 10:49:43][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 10:49:45][INFO] : Lancement du démon distant /usr/bin/python3 /home/pi/phone_detectiond/resources/phone_detectiond/phone_detectiond.py --loglevel debug --device hci0 --socketport 55009 --sockethost "192.168.1.0" --callback http://192.168.1.1/plugins/phone_detection/core/php/phone_detection.php --apikey 8HvmYjQRFXI8 --daemonname "PiZero" --interval 10 --present_interval 20 --absentThreshold 60 >> /tmp/phone_detection 2>&1 & [2021-10-18 10:49:45][INFO] : Lancement du démon distant /usr/bin/python3 /home/pi/phone_detectiond/resources/phone_detectiond/phone_detectiond.py --loglevel debug --device hci0 --socketport 55009 --sockethost "192.168.1.0" --callback http://192.168.1.1/plugins/phone_detection/core/php/phone_detection.php --apikey 8HvmYjQRFXI8x --daemonname "PiZero" --interval 10 --present_interval 20 --absentThreshold 60 >> /tmp/phone_detection 2>&1 & [2021-10-18 10:49:45][INFO] : Commande par SSH /usr/bin/python3 /home/pi/phone_detectiond/resources/phone_detectiond/phone_detectiond.py --loglevel debug --device hci0 --socketport 55009 --sockethost "192.168.1.0" --callback http://192.168.1.1/plugins/phone_detection/core/php/phone_detection.php --apikey 8HvmYjQRFXI8x --daemonname "PiZero" --interval 10 --present_interval 20 --absentThreshold 60 >> /tmp/phone_detection 2>&1 & sur 192.168.1.0 [2021-10-18 10:49:46][INFO] : Commande par SSH /usr/bin/python3 /home/pi/phone_detectiond/resources/phone_detectiond/phone_detectiond.py --loglevel debug --device hci0 --socketport 55009 --sockethost "192.168.1.0" --callback http://192.168.1.1/plugins/phone_detection/core/php/phone_detection.php --apikey 8HvmYjQRFXI8 --daemonname "PiZero" --interval 10 --present_interval 20 --absentThreshold 60 >> /tmp/phone_detection 2>&1 & sur 192.168.1.0 [2021-10-18 10:49:48][INFO] : Démon phone_detection lancé [2021-10-18 10:49:51][INFO] : Receive a test from antenna PiZero [2021-10-18 10:49:51][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 10:49:51][INFO] : Receive get_devices from antenna PiZero [2021-10-18 10:49:51][INFO] : updateGlobalDevice() [2021-10-18 10:49:51][INFO] : Receive refresh_group from antenna PiZero [2021-10-18 10:49:51][INFO] : updateGlobalDevice() [2021-10-18 10:49:51][INFO] : Receive get_status for from antenna PiZero [2021-10-18 10:49:51][DEBUG] : id: 180 [2021-10-18 10:49:52][INFO] : Receive get_status for from antenna PiZero [2021-10-18 10:49:52][DEBUG] : id: 177 [2021-10-18 10:49:53][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:49:57][INFO] : Receive a test from antenna PiZero [2021-10-18 10:49:58][INFO] : Update device status from antenna PiZero [2021-10-18 10:49:58][DEBUG] : id: 177, value:1 [2021-10-18 10:49:58][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 10:49:58][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_PiZero] [2021-10-18 10:49:58][DEBUG] : Update value to . 1 for [Variables][Mobile_Bluetooth_Nico][Etat_PiZero] [2021-10-18 10:49:58][INFO] : updateGlobalDevice() [2021-10-18 10:49:58][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:49:58][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:49:58][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:49:58][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:49:58.378324 [2021-10-18 10:49:58][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:49:58][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:50:03][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 10:50:05][DEBUG][root](Thread-4) : 177 is present [2021-10-18 10:50:05][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 10:50:07][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 10:50:07][DEBUG] : This is a heartbeat from antenna local [2021-10-18 10:50:07][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 10:50:07][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:50:08][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:50:13][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:50:13][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:50:13][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:50:13][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:50:13.574847 [2021-10-18 10:50:13][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:50:13][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:50:21][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 10:50:23][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:50:25][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 10:50:28][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:50:28][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:50:28][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:50:28][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:50:28.765113 [2021-10-18 10:50:28][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:50:28][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:50:29][DEBUG][root](Thread-4) : 177 is present [2021-10-18 10:50:29][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 10:50:38][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 10:50:38][DEBUG] : This is a heartbeat from antenna local [2021-10-18 10:50:38][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 10:50:38][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:50:38][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:50:43][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:50:43][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:50:43][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:50:43][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:50:43.968642 [2021-10-18 10:50:43][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:50:43][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:50:49][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 10:50:50][DEBUG][root](Thread-4) : 177 is present [2021-10-18 10:50:50][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 10:50:51][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 10:50:51][INFO] : Suppression de la log /var/www/html/plugins/phone_detection/core/class/../../../../log/phone_detection_PiZero [2021-10-18 10:50:51][INFO] : Recuperation de la log distante sur PiZero [2021-10-18 10:50:52][INFO] : Récupération de fichier depuis 192.168.1.0 [2021-10-18 10:50:53][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:50:59][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:50:59][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:50:59][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:50:59][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:50:59.164321 [2021-10-18 10:50:59][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:50:59][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:51:00][INFO] : Commande par SSH cat /dev/null > /tmp/phone_detection sur 192.168.1.0 [2021-10-18 10:51:08][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 10:51:08][DEBUG] : This is a heartbeat from antenna local [2021-10-18 10:51:08][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 10:51:08][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:51:09][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:51:10][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 10:51:14][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:51:14][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:51:14][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:51:14][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:51:14.365016 [2021-10-18 10:51:14][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:51:14][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:51:15][DEBUG][root](Thread-4) : 177 is present [2021-10-18 10:51:15][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 10:51:21][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 10:51:24][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:51:29][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:51:29][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:51:29][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:51:29][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:51:29.564523 [2021-10-18 10:51:29][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:51:29][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:51:35][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 10:51:36][DEBUG][root](Thread-4) : 177 is present [2021-10-18 10:51:36][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 10:51:38][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 10:51:38][DEBUG] : This is a heartbeat from antenna local [2021-10-18 10:51:38][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 10:51:38][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:51:39][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:51:44][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:51:44][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:51:44][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:51:44][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:51:44.765384 [2021-10-18 10:51:44][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:51:44][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:51:54][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:51:56][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 10:51:59][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:51:59][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:51:59][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:51:59][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:51:59.968110 [2021-10-18 10:51:59][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:51:59][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:52:01][DEBUG][root](Thread-4) : 177 is present [2021-10-18 10:52:01][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 10:52:08][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 10:52:08][DEBUG] : This is a heartbeat from antenna local [2021-10-18 10:52:08][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 10:52:08][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:52:09][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:52:15][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:52:15][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:52:15][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:52:15][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:52:15.159425 [2021-10-18 10:52:15][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:52:15][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:52:21][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 10:52:23][DEBUG][root](Thread-4) : 177 is present [2021-10-18 10:52:23][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 10:52:25][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:52:30][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:52:30][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:52:30][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:52:30][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:52:30.360294 [2021-10-18 10:52:30][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:52:30][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:52:38][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 10:52:38][DEBUG] : This is a heartbeat from antenna local [2021-10-18 10:52:38][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 10:52:38][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:52:40][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:52:43][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 10:52:45][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:52:45][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:52:45][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:52:45][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:52:45.561935 [2021-10-18 10:52:45][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:52:45][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:52:45][DEBUG][root](Thread-4) : 177 is present [2021-10-18 10:52:45][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 10:52:55][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:53:00][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:53:00][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:53:00][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:53:00][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:53:00.770328 [2021-10-18 10:53:00][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:53:00][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:53:02][INFO] : Restarting daemon on remote PiZero [2021-10-18 10:53:02][INFO] : Lancement du démon distant [2021-10-18 10:53:02][INFO] : Arret du demon distant 2 [2021-10-18 10:53:02][DEBUG] : callDaemon (tcp://192.168.1.0:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 10:53:05][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 10:53:06][DEBUG][root](Thread-4) : 177 is present [2021-10-18 10:53:06][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 10:53:07][DEBUG] : error 110 : Connection timed out [2021-10-18 10:53:07][DEBUG] : result callDaemon [2021-10-18 10:53:08][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 10:53:08][DEBUG] : This is a heartbeat from antenna local [2021-10-18 10:53:08][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 10:53:08][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:53:10][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:53:15][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:53:15][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:53:15][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:53:15][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:53:15.974220 [2021-10-18 10:53:15][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:53:15][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:53:18][ERROR] : connexion SSH KO for PiZero [2021-10-18 10:53:23][INFO] : Lancement du démon distant /usr/bin/python3 /home/pi/phone_detectiond/resources/phone_detectiond/phone_detectiond.py --loglevel debug --device hci0 --socketport 55009 --sockethost "192.168.1.0" --callback http://192.168.1.1/plugins/phone_detection/core/php/phone_detection.php --apikey 8HvmYjQRFXI8x --daemonname "PiZero" --interval 10 --present_interval 20 --absentThreshold 60 >> /tmp/phone_detection 2>&1 & [2021-10-18 10:53:25][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 10:53:26][ERROR] : connexion SSH KO for PiZero [2021-10-18 10:53:26][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 10:53:31][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 10:53:31][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 10:53:31][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 10:53:31][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 08:53:31.176730 [2021-10-18 10:53:31][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 10:53:31][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 10:53:32][DEBUG][root](Thread-4) : 177 is present [2021-10-18 10:53:32][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 10:53:38][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 10:53:38][DEBUG] : This is a heartbeat from antenna local [2021-10-18 10:53:38][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 10:53:38][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 10:53:41][DEBUG][root](Thread-3) : Get phone information 180