[2021-10-18 14:41:10][INFO] : Launching remotes ... [2021-10-18 14:41:10][INFO] : Lancement du démon distant [2021-10-18 14:41:10][INFO] : Arret du demon distant 2 [2021-10-18 14:41:10][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:41:10][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 14:41:11][INFO][root](MainThread) : Start phone_detectiond [2021-10-18 14:41:11][INFO][root](MainThread) : Log level : debug [2021-10-18 14:41:11][INFO][root](MainThread) : Socket : /tmp/jeedom/phone_detection/daemon.sock [2021-10-18 14:41:11][INFO][root](MainThread) : SocketHost : [2021-10-18 14:41:11][INFO][root](MainThread) : SocketPort : 0 [2021-10-18 14:41:11][INFO][root](MainThread) : PID file : /tmp/jeedom/phone_detection/phone_detectiond.pid [2021-10-18 14:41:11][INFO][root](MainThread) : Device : hci0 [2021-10-18 14:41:11][INFO][root](MainThread) : Callback : http://127.0.0.1:80/plugins/phone_detection/core/php/phone_detection.php [2021-10-18 14:41:11][INFO][root](MainThread) : Daemon Name : local [2021-10-18 14:41:11][INFO][root](MainThread) : Interval : 10 [2021-10-18 14:41:11][INFO][root](MainThread) : Present Interval : 20 [2021-10-18 14:41:11][INFO][root](MainThread) : AbsentThreshold: 60 [2021-10-18 14:41:11][INFO][root](MainThread) : Python version : 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] [2021-10-18 14:41:11][DEBUG][root](MainThread) : Writing PID 32358 to /tmp/jeedom/phone_detection/phone_detectiond.pid [2021-10-18 14:41:11][INFO][root](MainThread) : Create phone_detection daemon [2021-10-18 14:41:11][DEBUG][root](MainThread) : Send to test connection to jeedom [2021-10-18 14:41:11][DEBUG][root](MainThread) : Send to jeedom : {'action': 'test', 'source': 'local'} [2021-10-18 14:41:11][INFO] : Receive a test from antenna local [2021-10-18 14:41:11][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 14:41:11][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:41:11][INFO][root](MainThread) : Start heartbeat thread [2021-10-18 14:41:11][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:41:11][INFO][root](MainThread) : Use Unix socket for Jeedom -> daemon communication [2021-10-18 14:41:11][INFO][root](MainThread) : Get devices from Jeedom [2021-10-18 14:41:11][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_devices', 'source': 'local'} [2021-10-18 14:41:11][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:41:11][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:41:11][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:41:11][INFO] : Receive get_devices from antenna local [2021-10-18 14:41:11][INFO] : updateGlobalDevice() [2021-10-18 14:41:11][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 14:41:11][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': False, 'lastValueDate': '2021-10-18 14:40:03', 'name': 'Mobile_Bluetooth_Nico', 'humanName': '[Variables][Mobile_Bluetooth_Nico]', 'id': '177', 'macAddress': '24:5A:B5:C4:3B:E2'}}} [2021-10-18 14:41:11][DEBUG][root](MainThread) : Send to jeedom : {'action': 'refresh_group', 'source': 'local'} [2021-10-18 14:41:11][INFO] : Receive refresh_group from antenna local [2021-10-18 14:41:11][INFO] : updateGlobalDevice() [2021-10-18 14:41:11][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 14:41:11][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:41:11][INFO][root](MainThread) : Start thread detection for Mobile_Bluetooth_Mag [08:aa:55:70:14:36] [2021-10-18 14:41:11][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_status', 'id': 180, 'source': 'local'} [2021-10-18 14:41:11][INFO] : Receive get_status for from antenna local [2021-10-18 14:41:11][DEBUG] : id: 180 [2021-10-18 14:41:11][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 14:41:11][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:41:11][DEBUG][root](MainThread) : Jeedom 180 device status: False [2021-10-18 14:41:11][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:41:11][INFO][root](MainThread) : Start thread detection for Mobile_Bluetooth_Nico [24:5A:B5:C4:3B:E2] [2021-10-18 14:41:11][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_status', 'id': 177, 'source': 'local'} [2021-10-18 14:41:11][INFO] : Receive get_status for from antenna local [2021-10-18 14:41:11][DEBUG] : id: 177 [2021-10-18 14:41:11][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 14:41:11][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:41:11][DEBUG][root](MainThread) : Jeedom 177 device status: False [2021-10-18 14:41:11][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:41:11][INFO] : Launching remotes ... [2021-10-18 14:41:11][INFO] : Lancement du démon distant [2021-10-18 14:41:11][INFO] : Arret du demon distant 2 [2021-10-18 14:41:11][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:41:13][DEBUG] : error 113 : No route to host [2021-10-18 14:41:13][DEBUG] : error 113 : No route to host [2021-10-18 14:41:13][DEBUG] : result callDaemon [2021-10-18 14:41:13][DEBUG] : result callDaemon [2021-10-18 14:41:16][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:41:16][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:41:16][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:41:16][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:41:16.471401 [2021-10-18 14:41:16][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:41:16][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:41:16][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:41:16][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:41:16][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:41:16][INFO][root](Thread-4) : Set Mobile_Bluetooth_Nico's phone present [2021-10-18 14:41:16][DEBUG][root](Thread-4) : 177 must be update [2021-10-18 14:41:16][DEBUG][root](Thread-4) : Mobile_Bluetooth_Nico status has changed to 'present'! Notify Jeedom. [2021-10-18 14:41:16][DEBUG][root](Thread-4) : device status: True [2021-10-18 14:41:16][DEBUG][root](Thread-4) : Send to jeedom : {'action': 'update_device_status', 'id': 177, 'value': 1, 'source': 'local'} [2021-10-18 14:41:16][INFO] : Update device status from antenna local [2021-10-18 14:41:16][DEBUG] : id: 177, value:1 [2021-10-18 14:41:16][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 14:41:16][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 14:41:16][DEBUG] : Update value from to 1 for [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 14:41:16][INFO] : updateGlobalDevice() [2021-10-18 14:41:17][DEBUG][root](Thread-4) : Status Code : 200 [2021-10-18 14:41:17][DEBUG][root](Thread-4) : Jeedom reply : {'success': True, 'value': 1} [2021-10-18 14:41:21][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.PiZero" --callback http://192.168.1.Jeedom/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 14:41:21][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.PiZero" --callback http://192.168.1.Jeedom/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 14:41:24][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.PiZero" --callback http://192.168.1.Jeedom/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.PiZero [2021-10-18 14:41:24][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.PiZero" --callback http://192.168.1.Jeedom/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.PiZero [2021-10-18 14:41:26][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:41:27][INFO] : Démon phone_detection lancé [2021-10-18 14:41:31][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:41:31][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:41:31][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:41:31][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:41:31.675334 [2021-10-18 14:41:31][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:41:31][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:41:32][INFO] : Receive a test from antenna PiZero [2021-10-18 14:41:32][INFO] : Receive a test from antenna PiZero [2021-10-18 14:41:32][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:41:32][INFO] : Receive get_devices from antenna PiZero [2021-10-18 14:41:32][INFO] : updateGlobalDevice() [2021-10-18 14:41:32][INFO] : Receive refresh_group from antenna PiZero [2021-10-18 14:41:32][INFO] : updateGlobalDevice() [2021-10-18 14:41:33][INFO] : Receive get_status for from antenna PiZero [2021-10-18 14:41:33][DEBUG] : id: 180 [2021-10-18 14:41:33][INFO] : Receive get_status for from antenna PiZero [2021-10-18 14:41:33][DEBUG] : id: 177 [2021-10-18 14:41:37][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:41:37][INFO] : Lancement du démon distant [2021-10-18 14:41:37][INFO] : Arret du demon distant 2 [2021-10-18 14:41:37][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:41:38][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:41:38][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:41:39][DEBUG] : error 0 : [2021-10-18 14:41:39][DEBUG] : result callDaemon [2021-10-18 14:41:39][INFO] : Update device status from antenna PiZero [2021-10-18 14:41:39][DEBUG] : id: 177, value:1 [2021-10-18 14:41:39][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 14:41:39][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_PiZero] [2021-10-18 14:41:39][DEBUG] : Update value from to 1 for [Variables][Mobile_Bluetooth_Nico][Etat_PiZero] [2021-10-18 14:41:39][INFO] : updateGlobalDevice() [2021-10-18 14:41:39][INFO] : Commande par SSH fuser -k 55009/tcp >> /dev/null 2>&1 & sur 192.168.1.PiZero [2021-10-18 14:41:41][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:41:41][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:41:41][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:41:41][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:41:41][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:41: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.PiZero" --callback http://192.168.1.Jeedom/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 14:41: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.PiZero" --callback http://192.168.1.Jeedom/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.PiZero [2021-10-18 14:41:46][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:41:46][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:41:46][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:41:46][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:41:46.870979 [2021-10-18 14:41:46][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:41:46][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:41:48][INFO] : Receive a test from antenna PiZero [2021-10-18 14:41:49][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:41:49][INFO] : Receive get_devices from antenna PiZero [2021-10-18 14:41:49][INFO] : updateGlobalDevice() [2021-10-18 14:41:49][INFO] : Receive refresh_group from antenna PiZero [2021-10-18 14:41:49][INFO] : updateGlobalDevice() [2021-10-18 14:41:49][INFO] : Receive get_status for from antenna PiZero [2021-10-18 14:41:49][DEBUG] : id: 180 [2021-10-18 14:41:49][INFO] : Receive get_status for from antenna PiZero [2021-10-18 14:41:49][DEBUG] : id: 177 [2021-10-18 14:41:56][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:41:58][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:42:02][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:42:02][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:42:02][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:42:02][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:42:02.070229 [2021-10-18 14:42:02][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:42:02][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:42:02][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:42:02][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:42:11][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:42:11][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:42:11][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:42:11][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:42:12][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:42:17][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:42:17][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:42:17][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:42:17][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:42:17.264322 [2021-10-18 14:42:17][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:42:17][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:42:19][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:42:22][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:42:22][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:42:22][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:42:27][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:42:32][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:42:32][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:42:32][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:42:32][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:42:32.470831 [2021-10-18 14:42:32][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:42:32][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:42:41][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:42:41][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:42:41][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:42:41][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:42:42][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:42:42][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:42:47][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:42:47][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:42:47][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:42:47][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:42:47.659930 [2021-10-18 14:42:47][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:42:47][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:42:48][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:42:48][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:42:49][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:42:57][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:43:02][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:43:02][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:43:02][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:43:02][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:43:02.861080 [2021-10-18 14:43:02][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:43:02][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:43:08][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:43:10][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:43:10][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:43:11][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:43:11][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:43:11][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:43:11][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:43:12][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:43:18][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:43:18][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:43:18][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:43:18][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:43:18.064607 [2021-10-18 14:43:18][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:43:18][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:43:19][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:43:28][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:43:30][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:43:33][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:43:33][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:43:33][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:43:33][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:43:33.271564 [2021-10-18 14:43:33][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:43:33][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:43:34][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:43:34][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:43:41][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:43:41][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:43:41][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:43:41][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:43:43][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:43:48][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:43:48][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:43:48][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:43:48][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:43:48.469897 [2021-10-18 14:43:48][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:43:48][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:43:49][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:43:54][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:43:55][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:43:55][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:43:58][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:44:03][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:44:03][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:44:03][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:44:03][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:44:03.677995 [2021-10-18 14:44:03][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:44:03][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:44:11][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:44:11][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:44:11][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:44:11][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:44:13][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:44:15][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:44:18][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:44:18][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:44:18][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:44:18][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:44:18.873428 [2021-10-18 14:44:18][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:44:18][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:44:19][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:44:19][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:44:19][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:44:28][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:44:34][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:44:34][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:44:34][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:44:34][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:44:34.075510 [2021-10-18 14:44:34][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:44:34][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:44:39][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:44:40][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:44:40][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:44:41][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:44:41][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:44:41][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:44:41][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:44:44][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:44:49][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:44:49][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:44:49][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:44:49][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:44:49.272267 [2021-10-18 14:44:49][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:44:49][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:44:49][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:44:59][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:45:00][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:45:02][INFO] : Suppression de la log /var/www/html/plugins/phone_detection/core/class/../../../../log/phone_detection_PiZero [2021-10-18 14:45:02][INFO] : Recuperation de la log distante sur PiZero [2021-10-18 14:45:03][INFO] : Récupération de fichier depuis 192.168.1.PiZero [2021-10-18 14:45:04][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:45:04][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:45:04][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:45:04][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:45:04.478451 [2021-10-18 14:45:04][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:45:04][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:45:05][INFO] : Commande par SSH cat /dev/null > /tmp/phone_detection sur 192.168.1.PiZero [2021-10-18 14:45:05][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:45:05][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:45:11][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:45:11][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:45:11][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:45:11][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:45:14][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:45:19][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:45:19][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:45:19][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:45:19][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:45:19.671229 [2021-10-18 14:45:19][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:45:19][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:45:19][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:45:25][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:45:26][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:45:26][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:45:29][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:45:34][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:45:34][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:45:34][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:45:34][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:45:34.873450 [2021-10-18 14:45:34][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:45:34][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:45:41][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:45:41][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:45:41][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:45:41][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:45:44][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:45:46][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:45:49][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:45:50][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:45:50][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:45:50][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:45:50][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:45:50.073417 [2021-10-18 14:45:50][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:45:50][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:45:51][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:45:51][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:46:00][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:46:05][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:46:05][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:46:05][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:46:05][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:46:05.269173 [2021-10-18 14:46:05][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:46:05][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:46:11][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:46:11][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:46:11][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:46:11][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:46:11][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:46:12][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:46:12][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:46:12][DEBUG][root](Thread-4) : 177 forced refresh ! [2021-10-18 14:46:12][DEBUG][root](Thread-4) : device status: True [2021-10-18 14:46:12][DEBUG][root](Thread-4) : Send to jeedom : {'action': 'update_device_status', 'id': 177, 'value': 1, 'source': 'local'} [2021-10-18 14:46:12][INFO] : Update device status from antenna local [2021-10-18 14:46:12][DEBUG] : id: 177, value:1 [2021-10-18 14:46:12][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 14:46:12][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 14:46:12][DEBUG] : Update value from 1 to 1 for [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 14:46:12][INFO] : updateGlobalDevice() [2021-10-18 14:46:12][DEBUG][root](Thread-4) : Status Code : 200 [2021-10-18 14:46:12][DEBUG][root](Thread-4) : Jeedom reply : {'success': True, 'value': 1} [2021-10-18 14:46:15][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:46:20][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:46:20][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:46:20][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:46:20][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:46:20][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:46:20.476530 [2021-10-18 14:46:20][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:46:20][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:46:20][DEBUG][root](Thread-3) : 180 forced refresh ! [2021-10-18 14:46:20][DEBUG][root](Thread-3) : device status: False [2021-10-18 14:46:20][DEBUG][root](Thread-3) : Send to jeedom : {'action': 'update_device_status', 'id': 180, 'value': 0, 'source': 'local'} [2021-10-18 14:46:20][INFO] : Update device status from antenna local [2021-10-18 14:46:20][DEBUG] : id: 180, value:0 [2021-10-18 14:46:20][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Mag] [2021-10-18 14:46:20][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Mag][Etat_local] [2021-10-18 14:46:20][DEBUG] : Update value from to 0 for [Variables][Mobile_Bluetooth_Mag][Etat_local] [2021-10-18 14:46:20][INFO] : updateGlobalDevice() [2021-10-18 14:46:20][DEBUG][root](Thread-3) : Status Code : 200 [2021-10-18 14:46:20][DEBUG][root](Thread-3) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:46:30][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:46:32][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:46:35][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:46:35][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:46:35][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:46:35][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:46:35.711450 [2021-10-18 14:46:35][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:46:35][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:46:36][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:46:36][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:46:41][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:46:41][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:46:41][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:46:41][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:46:45][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:46:50][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 14:46:50][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:46:50][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:46:50][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:46:50][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:46:50.912668 [2021-10-18 14:46:50][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:46:50][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:46:51][INFO] : Update device status from antenna PiZero [2021-10-18 14:46:51][DEBUG] : id: 177, value:1 [2021-10-18 14:46:51][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 14:46:51][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_PiZero] [2021-10-18 14:46:51][DEBUG] : Update value from 1 to 1 for [Variables][Mobile_Bluetooth_Nico][Etat_PiZero] [2021-10-18 14:46:51][INFO] : updateGlobalDevice() [2021-10-18 14:46:56][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:46:56][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:46:56][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:47:00][INFO] : Update device status from antenna PiZero [2021-10-18 14:47:00][DEBUG] : id: 180, value:0 [2021-10-18 14:47:00][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Mag] [2021-10-18 14:47:00][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Mag][Etat_PiZero] [2021-10-18 14:47:00][DEBUG] : Update value from to 0 for [Variables][Mobile_Bluetooth_Mag][Etat_PiZero] [2021-10-18 14:47:00][INFO] : updateGlobalDevice() [2021-10-18 14:47:00][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:47:06][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:47:06][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:47:06][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:47:06][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:47:06.114104 [2021-10-18 14:47:06][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:47:06][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:47:11][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:47:11][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:47:11][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:47:11][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:47:16][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:47:16][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:47:21][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:47:21][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:47:21][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:47:21][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:47:21.315932 [2021-10-18 14:47:21][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:47:21][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:47:22][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:47:22][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:47:31][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:47:36][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:47:36][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:47:36][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:47:36][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:47:36.533978 [2021-10-18 14:47:36][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:47:36][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:47:41][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:47:41][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:47:41][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:47:41][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:47:42][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:47:43][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:47:43][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:47:46][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:47:51][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:47:51][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:47:51][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:47:51][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:47:51.728778 [2021-10-18 14:47:51][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:47:51][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:48:01][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:48:03][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:48:06][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:48:06][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:48:06][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:48:06][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:48:06.940263 [2021-10-18 14:48:06][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:48:06][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:48:07][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:48:07][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:48:11][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:48:11][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:48:11][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:48:11][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:48:16][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:48:22][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:48:22][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:48:22][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:48:22][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:48:22.138497 [2021-10-18 14:48:22][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:48:22][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:48:27][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:48:27][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:48:27][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:48:32][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:48:37][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:48:37][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:48:37][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:48:37][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:48:37.344952 [2021-10-18 14:48:37][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:48:37][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:48:41][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:48:41][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:48:41][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:48:41][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:48:47][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:48:47][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:48:52][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:48:52][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:48:52][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:48:52][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:48:52.546153 [2021-10-18 14:48:52][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:48:52][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:48:52][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:48:52][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:49:02][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:49:03][INFO] : Restarting daemon on remote PiZero [2021-10-18 14:49:03][INFO] : Lancement du démon distant [2021-10-18 14:49:03][INFO] : Arret du demon distant 2 [2021-10-18 14:49:03][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:49:07][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:49:07][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:49:07][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:49:07][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:49:07.751124 [2021-10-18 14:49:07][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:49:07][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:49:08][DEBUG] : error 110 : Connection timed out [2021-10-18 14:49:08][DEBUG] : result callDaemon [2021-10-18 14:49:11][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:49:11][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:49:11][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:49:11][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:49:12][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:49:13][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:49:13][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:49:17][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:49:19][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:49:22][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:49:22][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:49:22][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:49:22][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:49:22.952412 [2021-10-18 14:49:22][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:49:22][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:49:24][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.PiZero" --callback http://192.168.1.Jeedom/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 14:49:27][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:49:32][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:49:33][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:49:38][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:49:38][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:49:38][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:49:38][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:49:38.151759 [2021-10-18 14:49:38][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:49:38][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:49:39][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:49:39][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:49:41][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:49:41][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:49:41][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:49:41][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:49:48][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:49:53][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:49:53][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:49:53][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:49:53][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:49:53.356445 [2021-10-18 14:49:53][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:49:53][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:49:59][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:50:00][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:50:00][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:50:02][INFO] : Restarting daemon on remote PiZero [2021-10-18 14:50:02][INFO] : Lancement du démon distant [2021-10-18 14:50:02][INFO] : Arret du demon distant 2 [2021-10-18 14:50:02][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:50:03][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:50:05][DEBUG] : error 113 : No route to host [2021-10-18 14:50:05][DEBUG] : result callDaemon [2021-10-18 14:50:08][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:50:08][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:50:08][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:50:08][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:50:08.556509 [2021-10-18 14:50:08][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:50:08][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:50:08][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:50:11][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:50:11][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:50:11][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:50:11][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:50:13][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.PiZero" --callback http://192.168.1.Jeedom/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 14:50:15][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:50:18][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:50:20][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:50:23][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:50:23][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:50:23][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:50:23][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:50:23.750603 [2021-10-18 14:50:23][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:50:23][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:50:24][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:50:24][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:50:33][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:50:38][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:50:38][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:50:38][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:50:38][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:50:38.958627 [2021-10-18 14:50:38][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:50:38][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:50:42][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:50:42][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:50:42][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:50:42][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:50:44][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:50:44][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:50:44][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:50:48][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:50:54][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:50:54][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:50:54][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:50:54][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:50:54.161888 [2021-10-18 14:50:54][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:50:54][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:51:02][INFO] : Restarting daemon on remote PiZero [2021-10-18 14:51:02][INFO] : Lancement du démon distant [2021-10-18 14:51:02][INFO] : Arret du demon distant 2 [2021-10-18 14:51:02][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:51:04][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:51:05][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:51:05][DEBUG] : error 113 : No route to host [2021-10-18 14:51:05][DEBUG] : result callDaemon [2021-10-18 14:51:08][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:51:09][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:51:09][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:51:09][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:51:09][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:51:09.358288 [2021-10-18 14:51:09][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:51:09][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:51:10][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:51:10][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:51:12][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:51:12][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:51:12][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:51:12][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:51:13][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.PiZero" --callback http://192.168.1.Jeedom/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 14:51:16][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:51:19][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:51:24][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:51:24][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:51:24][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:51:24][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:51:24.553880 [2021-10-18 14:51:24][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:51:24][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:51:24][DEBUG][root](Thread-3) : 180 forced refresh ! [2021-10-18 14:51:24][DEBUG][root](Thread-3) : device status: False [2021-10-18 14:51:24][DEBUG][root](Thread-3) : Send to jeedom : {'action': 'update_device_status', 'id': 180, 'value': 0, 'source': 'local'} [2021-10-18 14:51:24][INFO] : Update device status from antenna local [2021-10-18 14:51:24][DEBUG] : id: 180, value:0 [2021-10-18 14:51:24][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Mag] [2021-10-18 14:51:24][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Mag][Etat_local] [2021-10-18 14:51:24][DEBUG] : Update value from to 0 for [Variables][Mobile_Bluetooth_Mag][Etat_local] [2021-10-18 14:51:24][INFO] : updateGlobalDevice() [2021-10-18 14:51:24][DEBUG][root](Thread-3) : Status Code : 200 [2021-10-18 14:51:24][DEBUG][root](Thread-3) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:51:30][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:51:31][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:51:31][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:51:31][DEBUG][root](Thread-4) : 177 forced refresh ! [2021-10-18 14:51:31][DEBUG][root](Thread-4) : device status: True [2021-10-18 14:51:31][DEBUG][root](Thread-4) : Send to jeedom : {'action': 'update_device_status', 'id': 177, 'value': 1, 'source': 'local'} [2021-10-18 14:51:31][INFO] : Update device status from antenna local [2021-10-18 14:51:31][DEBUG] : id: 177, value:1 [2021-10-18 14:51:31][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 14:51:31][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 14:51:31][DEBUG] : Update value from 1 to 1 for [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 14:51:31][INFO] : updateGlobalDevice() [2021-10-18 14:51:31][DEBUG][root](Thread-4) : Status Code : 200 [2021-10-18 14:51:31][DEBUG][root](Thread-4) : Jeedom reply : {'success': True, 'value': 1} [2021-10-18 14:51:34][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:51:39][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:51:39][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:51:39][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:51:39][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:51:39.809136 [2021-10-18 14:51:39][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:51:39][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:51:42][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:51:42][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:51:42][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:51:42][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:51:49][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:51:51][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:51:55][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:51:55][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:51:55][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:51:55][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:51:55.005464 [2021-10-18 14:51:55][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:51:55][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:51:55][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:51:55][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:52:03][INFO] : Restarting daemon on remote PiZero [2021-10-18 14:52:03][INFO] : Lancement du démon distant [2021-10-18 14:52:03][INFO] : Arret du demon distant 2 [2021-10-18 14:52:03][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:52:05][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:52:06][DEBUG] : error 113 : No route to host [2021-10-18 14:52:06][DEBUG] : result callDaemon [2021-10-18 14:52:09][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:52:10][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:52:10][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:52:10][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:52:10][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:52:10.200025 [2021-10-18 14:52:10][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:52:10][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:52:12][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:52:12][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:52:12][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:52:12][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:52:14][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.PiZero" --callback http://192.168.1.Jeedom/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 14:52:15][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:52:16][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:52:16][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:52:17][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:52:20][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:52:25][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:52:25][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:52:25][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:52:25][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:52:25.401308 [2021-10-18 14:52:25][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:52:25][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:52:35][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:52:36][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:52:40][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:52:40][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:52:40][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:52:40][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:52:40.604975 [2021-10-18 14:52:40][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:52:40][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:52:41][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:52:41][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:52:42][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:52:42][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:52:42][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:52:42][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:52:50][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:52:55][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:52:55][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:52:55][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:52:55][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:52:55.813217 [2021-10-18 14:52:55][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:52:55][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:53:01][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:53:02][INFO] : Restarting daemon on remote PiZero [2021-10-18 14:53:02][INFO] : Lancement du démon distant [2021-10-18 14:53:02][INFO] : Arret du demon distant 2 [2021-10-18 14:53:02][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:53:02][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:53:02][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:53:05][DEBUG] : error 113 : No route to host [2021-10-18 14:53:05][DEBUG] : result callDaemon [2021-10-18 14:53:05][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:53:08][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:53:11][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:53:11][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:53:11][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:53:11][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:53:11.016749 [2021-10-18 14:53:11][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:53:11][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:53:12][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:53:12][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:53:12][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:53:12][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:53:13][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.PiZero" --callback http://192.168.1.Jeedom/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 14:53:16][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:53:21][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:53:22][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:53:26][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:53:26][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:53:26][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:53:26][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:53:26.219080 [2021-10-18 14:53:26][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:53:26][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:53:26][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:53:26][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:53:36][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:53:41][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:53:41][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:53:41][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:53:41][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:53:41.421204 [2021-10-18 14:53:41][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:53:41][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:53:42][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:53:42][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:53:42][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:53:42][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:53:46][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:53:46][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:53:46][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:53:51][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:53:56][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:53:56][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:53:56][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:53:56][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:53:56.624308 [2021-10-18 14:53:56][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:53:56][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:54:03][INFO] : Restarting daemon on remote PiZero [2021-10-18 14:54:03][INFO] : Lancement du démon distant [2021-10-18 14:54:03][INFO] : Arret du demon distant 2 [2021-10-18 14:54:03][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:54:06][DEBUG] : error 113 : No route to host [2021-10-18 14:54:06][DEBUG] : result callDaemon [2021-10-18 14:54:06][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:54:06][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:54:09][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:54:11][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:54:11][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:54:11][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:54:11][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:54:11.824652 [2021-10-18 14:54:11][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:54:11][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:54:12][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:54:12][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:54:12][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:54:12][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:54:13][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:54:13][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:54:14][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.PiZero" --callback http://192.168.1.Jeedom/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 14:54:17][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:54:21][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:54:27][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:54:27][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:54:27][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:54:27][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:54:27.026356 [2021-10-18 14:54:27][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:54:27][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:54:33][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:54:33][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:54:33][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:54:37][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:54:42][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:54:42][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:54:42][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:54:42][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:54:42.225086 [2021-10-18 14:54:42][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:54:42][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:54:42][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:54:42][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:54:42][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:54:42][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:54:52][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:54:53][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:54:57][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:54:57][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:54:57][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:54:57][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:54:57.422131 [2021-10-18 14:54:57][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:54:57][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:54:57][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:54:57][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:55:02][INFO] : Restarting daemon on remote PiZero [2021-10-18 14:55:02][INFO] : Lancement du démon distant [2021-10-18 14:55:02][INFO] : Arret du demon distant 2 [2021-10-18 14:55:02][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:55:06][DEBUG] : error 113 : No route to host [2021-10-18 14:55:06][DEBUG] : result callDaemon [2021-10-18 14:55:07][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:55:09][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:55:12][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:55:12][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:55:12][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:55:12][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:55:12][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:55:12][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:55:12][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:55:12][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:55:12.626361 [2021-10-18 14:55:12][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:55:12][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:55:14][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.PiZero" --callback http://192.168.1.Jeedom/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 14:55:17][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:55:17][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:55:18][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:55:18][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:55:22][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:55:27][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:55:27][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:55:27][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:55:27][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:55:27.827554 [2021-10-18 14:55:27][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:55:27][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:55:37][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:55:38][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:55:42][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:55:42][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:55:42][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:55:42][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:55:43][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:55:43][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:55:43][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:55:43][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:55:43.023289 [2021-10-18 14:55:43][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:55:43][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:55:43][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:55:43][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:55:53][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:55:58][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:55:58][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:55:58][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:55:58][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:55:58.230235 [2021-10-18 14:55:58][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:55:58][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:56:02][INFO] : Restarting daemon on remote PiZero [2021-10-18 14:56:02][INFO] : Lancement du démon distant [2021-10-18 14:56:02][INFO] : Arret du demon distant 2 [2021-10-18 14:56:02][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:56:03][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:56:04][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:56:04][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:56:05][DEBUG] : error 113 : No route to host [2021-10-18 14:56:05][DEBUG] : result callDaemon [2021-10-18 14:56:08][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:56:08][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:56:12][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:56:12][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:56:12][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:56:12][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:56:13][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:56:13][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:56:13][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:56:13][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:56:13.428705 [2021-10-18 14:56:13][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:56:13][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:56:13][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.PiZero" --callback http://192.168.1.Jeedom/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 14:56:16][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:56:23][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:56:24][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:56:28][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:56:28][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:56:28][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:56:28][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:56:28.628220 [2021-10-18 14:56:28][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:56:28][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:56:28][DEBUG][root](Thread-3) : 180 forced refresh ! [2021-10-18 14:56:28][DEBUG][root](Thread-3) : device status: False [2021-10-18 14:56:28][DEBUG][root](Thread-3) : Send to jeedom : {'action': 'update_device_status', 'id': 180, 'value': 0, 'source': 'local'} [2021-10-18 14:56:28][INFO] : Update device status from antenna local [2021-10-18 14:56:28][DEBUG] : id: 180, value:0 [2021-10-18 14:56:28][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Mag] [2021-10-18 14:56:28][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Mag][Etat_local] [2021-10-18 14:56:28][DEBUG] : Update value from to 0 for [Variables][Mobile_Bluetooth_Mag][Etat_local] [2021-10-18 14:56:28][INFO] : updateGlobalDevice() [2021-10-18 14:56:28][DEBUG][root](Thread-3) : Status Code : 200 [2021-10-18 14:56:28][DEBUG][root](Thread-3) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:56:29][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:56:29][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:56:38][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:56:42][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:56:42][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:56:42][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:56:42][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:56:43][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:56:43][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:56:43][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:56:43][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:56:43.864445 [2021-10-18 14:56:43][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:56:43][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:56:49][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:56:49][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:56:49][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:56:49][DEBUG][root](Thread-4) : 177 forced refresh ! [2021-10-18 14:56:49][DEBUG][root](Thread-4) : device status: True [2021-10-18 14:56:49][DEBUG][root](Thread-4) : Send to jeedom : {'action': 'update_device_status', 'id': 177, 'value': 1, 'source': 'local'} [2021-10-18 14:56:49][INFO] : Update device status from antenna local [2021-10-18 14:56:49][DEBUG] : id: 177, value:1 [2021-10-18 14:56:49][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 14:56:49][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 14:56:49][DEBUG] : Update value from 1 to 1 for [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 14:56:49][INFO] : updateGlobalDevice() [2021-10-18 14:56:49][DEBUG][root](Thread-4) : Status Code : 200 [2021-10-18 14:56:49][DEBUG][root](Thread-4) : Jeedom reply : {'success': True, 'value': 1} [2021-10-18 14:56:53][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:56:59][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:56:59][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:56:59][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:56:59][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:56:59.067994 [2021-10-18 14:56:59][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:56:59][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:57:03][INFO] : Restarting daemon on remote PiZero [2021-10-18 14:57:03][INFO] : Lancement du démon distant [2021-10-18 14:57:03][INFO] : Arret du demon distant 2 [2021-10-18 14:57:03][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 14:57:06][DEBUG] : error 113 : No route to host [2021-10-18 14:57:06][DEBUG] : result callDaemon [2021-10-18 14:57:09][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:57:09][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:57:09][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 14:57:12][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 14:57:12][DEBUG] : This is a heartbeat from antenna local [2021-10-18 14:57:12][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 14:57:12][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 14:57:14][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.PiZero" --callback http://192.168.1.Jeedom/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 14:57:14][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:57:14][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:57:14][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:57:14][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:57:14.267568 [2021-10-18 14:57:14][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:57:14][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 14:57:15][DEBUG][root](Thread-4) : 177 is present [2021-10-18 14:57:15][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 14:57:17][ERROR] : connexion SSH KO for PiZero [2021-10-18 14:57:24][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 14:57:29][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 14:57:29][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 14:57:29][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 14:57:29][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 12:57:29.466900 [2021-10-18 14:57:29][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 14:57:29][DEBUG][root](Thread-3) : 180 is up to date