[2021-10-18 16:41:45][INFO] : Launching remotes ... [2021-10-18 16:41:45][INFO] : Lancement du démon distant [2021-10-18 16:41:45][INFO] : Arret du demon distant 2 [2021-10-18 16:41:45][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 16:41:45][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 16:41:45][INFO][root](MainThread) : Start phone_detectiond [2021-10-18 16:41:45][INFO][root](MainThread) : Log level : debug [2021-10-18 16:41:45][INFO][root](MainThread) : Socket : /tmp/jeedom/phone_detection/daemon.sock [2021-10-18 16:41:45][INFO][root](MainThread) : SocketHost : [2021-10-18 16:41:45][INFO][root](MainThread) : SocketPort : 0 [2021-10-18 16:41:45][INFO][root](MainThread) : PID file : /tmp/jeedom/phone_detection/phone_detectiond.pid [2021-10-18 16:41:45][INFO][root](MainThread) : Device : hci0 [2021-10-18 16:41:45][INFO][root](MainThread) : Callback : http://127.0.0.1:80/plugins/phone_detection/core/php/phone_detection.php [2021-10-18 16:41:45][INFO][root](MainThread) : Daemon Name : local [2021-10-18 16:41:45][INFO][root](MainThread) : Interval : 10 [2021-10-18 16:41:45][INFO][root](MainThread) : Present Interval : 20 [2021-10-18 16:41:45][INFO][root](MainThread) : AbsentThreshold: 60 [2021-10-18 16:41:45][INFO][root](MainThread) : Python version : 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] [2021-10-18 16:41:45][DEBUG][root](MainThread) : Writing PID 3452 to /tmp/jeedom/phone_detection/phone_detectiond.pid [2021-10-18 16:41:45][INFO][root](MainThread) : Create phone_detection daemon [2021-10-18 16:41:45][DEBUG][root](MainThread) : Send to test connection to jeedom [2021-10-18 16:41:45][DEBUG][root](MainThread) : Send to jeedom : {'action': 'test', 'source': 'local'} [2021-10-18 16:41:45][INFO] : Receive a test from antenna local [2021-10-18 16:41:45][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 16:41:45][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:41:45][INFO][root](MainThread) : Start heartbeat thread [2021-10-18 16:41:45][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:41:45][INFO][root](MainThread) : Use Unix socket for Jeedom -> daemon communication [2021-10-18 16:41:45][INFO][root](MainThread) : Get devices from Jeedom [2021-10-18 16:41:45][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_devices', 'source': 'local'} [2021-10-18 16:41:45][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:41:45][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:41:45][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:41:45][INFO] : Receive get_devices from antenna local [2021-10-18 16:41:45][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:41:45][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:41:45][INFO] : [Variables][Mobile_Bluetooth_Nico]-->0 [2021-10-18 16:41:45][INFO] : updateGlobalDevice: state=0/nb1=0/nbDevices=2 [2021-10-18 16:41:45][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 16:41:45][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 16:41:02', 'name': 'Mobile_Bluetooth_Nico', 'humanName': '[Variables][Mobile_Bluetooth_Nico]', 'id': '177', 'macAddress': '24:5A:B5:C4:3B:E2'}}} [2021-10-18 16:41:45][DEBUG][root](MainThread) : Send to jeedom : {'action': 'refresh_group', 'source': 'local'} [2021-10-18 16:41:45][INFO] : Receive refresh_group from antenna local [2021-10-18 16:41:45][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:41:45][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:41:45][INFO] : [Variables][Mobile_Bluetooth_Nico]-->0 [2021-10-18 16:41:45][INFO] : updateGlobalDevice: state=0/nb1=0/nbDevices=2 [2021-10-18 16:41:45][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 16:41:45][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:41:45][INFO][root](MainThread) : Start thread detection for Mobile_Bluetooth_Mag [08:aa:55:70:14:36] [2021-10-18 16:41:45][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_status', 'id': 180, 'source': 'local'} [2021-10-18 16:41:45][INFO] : Receive get_status for from antenna local [2021-10-18 16:41:45][DEBUG] : id: 180 [2021-10-18 16:41:45][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 16:41:45][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:41:45][DEBUG][root](MainThread) : Jeedom 180 device status: False [2021-10-18 16:41:45][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:41:45][INFO][root](MainThread) : Start thread detection for Mobile_Bluetooth_Nico [24:5A:B5:C4:3B:E2] [2021-10-18 16:41:45][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_status', 'id': 177, 'source': 'local'} [2021-10-18 16:41:45][INFO] : Receive get_status for from antenna local [2021-10-18 16:41:45][DEBUG] : id: 177 [2021-10-18 16:41:45][DEBUG][root](MainThread) : Status Code : 200 [2021-10-18 16:41:45][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:41:45][DEBUG][root](MainThread) : Jeedom 177 device status: False [2021-10-18 16:41:45][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:41:46][INFO] : Launching remotes ... [2021-10-18 16:41:46][INFO] : Lancement du démon distant [2021-10-18 16:41:46][INFO] : Arret du demon distant 2 [2021-10-18 16:41:46][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 16:41:50][DEBUG] : error 110 : Connection timed out [2021-10-18 16:41:50][DEBUG] : result callDaemon [2021-10-18 16:41:51][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:41:51][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:41:51][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:41:51][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:41:51.147518 [2021-10-18 16:41:51][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:41:51][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:41:51][INFO] : Commande par SSH fuser -k 55009/tcp >> /dev/null 2>&1 & sur 192.168.1.PiZero [2021-10-18 16:41:51][DEBUG] : error 110 : Connection timed out [2021-10-18 16:41:51][DEBUG] : result callDaemon [2021-10-18 16:41:51][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:41:51][INFO][root](Thread-4) : Set Mobile_Bluetooth_Nico's phone present [2021-10-18 16:41:51][DEBUG][root](Thread-4) : 177 must be update [2021-10-18 16:41:51][DEBUG][root](Thread-4) : Mobile_Bluetooth_Nico status has changed to 'present'! Notify Jeedom. [2021-10-18 16:41:51][DEBUG][root](Thread-4) : device status: True [2021-10-18 16:41:51][DEBUG][root](Thread-4) : Send to jeedom : {'action': 'update_device_status', 'id': 177, 'value': 1, 'source': 'local'} [2021-10-18 16:41:51][INFO] : Update device status from antenna local [2021-10-18 16:41:51][DEBUG] : id: 177, value:1 [2021-10-18 16:41:51][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 16:41:51][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 16:41:51][DEBUG] : Update value from to 1 for [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 16:41:52][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:41:52][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:41:52][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:41:52][INFO] : Commande par SSH fuser -k 55009/tcp >> /dev/null 2>&1 & sur 192.168.1.PiZero [2021-10-18 16:41:54][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:41:54][DEBUG][root](Thread-4) : Status Code : 200 [2021-10-18 16:41:54][DEBUG][root](Thread-4) : Jeedom reply : {'success': True, 'value': 1} [2021-10-18 16:41:58][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 16:41:58][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 16:41:59][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 16:41:59][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 16:42:01][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:42:01][INFO] : Démon phone_detection lancé [2021-10-18 16:42:04][INFO] : Receive a test from antenna PiZero [2021-10-18 16:42:05][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:42:05][INFO] : Receive get_devices from antenna PiZero [2021-10-18 16:42:05][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:42:05][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:42:05][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:42:05][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:42:05][INFO] : Receive refresh_group from antenna PiZero [2021-10-18 16:42:05][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:42:05][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:42:05][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:42:05][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:42:05][INFO] : Receive get_status for from antenna PiZero [2021-10-18 16:42:05][DEBUG] : id: 180 [2021-10-18 16:42:05][INFO] : Receive get_status for from antenna PiZero [2021-10-18 16:42:05][DEBUG] : id: 177 [2021-10-18 16:42:05][INFO] : Receive a test from antenna PiZero [2021-10-18 16:42:06][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:42:06][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:42:06][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:42:06][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:42:06.356101 [2021-10-18 16:42:06][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:42:06][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:42:07][INFO] : Lancement du démon distant [2021-10-18 16:42:07][INFO] : Arret du demon distant 2 [2021-10-18 16:42:07][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 16:42:10][DEBUG] : error 0 : [2021-10-18 16:42:11][DEBUG] : result callDaemon [2021-10-18 16:42:11][INFO] : Update device status from antenna PiZero [2021-10-18 16:42:11][DEBUG] : id: 177, value:1 [2021-10-18 16:42:11][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 16:42:11][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_PiZero] [2021-10-18 16:42:11][DEBUG] : Update value from to 1 for [Variables][Mobile_Bluetooth_Nico][Etat_PiZero] [2021-10-18 16:42:11][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:42:11][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:42:11][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:42:11][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:42:12][INFO] : Commande par SSH fuser -k 55009/tcp >> /dev/null 2>&1 & sur 192.168.1.PiZero [2021-10-18 16:42:14][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:42:15][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:42:15][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:42:15][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:42:15][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:42:15][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:42:15][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:42:16][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:42:17][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 16:42:18][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 16:42:21][INFO] : Receive a test from antenna PiZero [2021-10-18 16:42:21][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:42:21][INFO] : Receive get_devices from antenna PiZero [2021-10-18 16:42:21][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:42:21][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:42:21][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:42:21][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:42:21][INFO] : Receive refresh_group from antenna PiZero [2021-10-18 16:42:21][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:42:21][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:42:21][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:42:21][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:42:21][INFO] : Receive get_status for from antenna PiZero [2021-10-18 16:42:21][DEBUG] : id: 180 [2021-10-18 16:42:21][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:42:21][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:42:21][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:42:21][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:42:21.547776 [2021-10-18 16:42:21][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:42:21][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:42:21][INFO] : Receive get_status for from antenna PiZero [2021-10-18 16:42:21][DEBUG] : id: 177 [2021-10-18 16:42:31][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:42:35][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:42:36][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:42:36][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:42:36][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:42:36][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:42:36.750374 [2021-10-18 16:42:36][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:42:36][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:42:37][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:42:37][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:42:45][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:42:45][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:42:45][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:42:45][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:42:46][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:42:51][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:42:51][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:42:51][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:42:51][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:42:51][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:42:51.948451 [2021-10-18 16:42:51][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:42:51][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:42:57][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:42:58][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:42:58][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:43:01][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:43:07][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:43:07][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:43:07][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:43:07][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:43:07.130251 [2021-10-18 16:43:07][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:43:07][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:43:15][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:43:15][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:43:15][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:43:15][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:43:17][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:43:18][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:43:21][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:43:22][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:43:22][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:43:22][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:43:22][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:43:22.328764 [2021-10-18 16:43:22][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:43:22][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:43:23][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:43:23][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:43:32][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:43:37][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:43:37][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:43:37][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:43:37][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:43:37.527650 [2021-10-18 16:43:37][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:43:37][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:43:43][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:43:44][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:43:44][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:43:45][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:43:45][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:43:45][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:43:45][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:43:47][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:43:51][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:43:52][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:43:52][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:43:52][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:43:52][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:43:52.723482 [2021-10-18 16:43:52][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:43:52][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:44:02][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:44:04][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:44:07][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:44:07][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:44:07][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:44:07][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:44:07.920310 [2021-10-18 16:44:07][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:44:07][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:44:08][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:44:08][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:44:16][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:44:16][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:44:16][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:44:16][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:44:17][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:44:21][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:44:23][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:44:23][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:44:23][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:44:23][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:44:23.121808 [2021-10-18 16:44:23][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:44:23][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:44:28][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:44:29][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:44:29][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:44:33][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:44:38][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:44:38][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:44:38][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:44:38][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:44:38.331351 [2021-10-18 16:44:38][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:44:38][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:44:46][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:44:46][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:44:46][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:44:46][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:44:48][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:44:49][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:44:51][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:44:53][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:44:53][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:44:53][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:44:53][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:44:53.532022 [2021-10-18 16:44:53][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:44:53][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:44:54][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:44:54][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:45:02][INFO] : Suppression de la log /var/www/html/plugins/phone_detection/core/class/../../../../log/phone_detection_PiZero [2021-10-18 16:45:02][INFO] : Recuperation de la log distante sur PiZero [2021-10-18 16:45:02][INFO] : Récupération de fichier depuis 192.168.1.PiZero [2021-10-18 16:45:03][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:45:04][INFO] : Commande par SSH cat /dev/null > /tmp/phone_detection sur 192.168.1.PiZero [2021-10-18 16:45:08][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:45:08][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:45:08][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:45:08][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:45:08.733261 [2021-10-18 16:45:08][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:45:08][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:45:14][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:45:14][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:45:14][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:45:16][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:45:16][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:45:16][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:45:16][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:45:18][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:45:21][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:45:23][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:45:23][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:45:23][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:45:23][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:45:23.929447 [2021-10-18 16:45:23][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:45:23][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:45:33][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:45:34][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:45:39][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:45:39][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:45:39][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:45:39][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:45:39.123757 [2021-10-18 16:45:39][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:45:39][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:45:40][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:45:40][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:45:46][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:45:46][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:45:46][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:45:46][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:45:49][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:45:52][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:45:54][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:45:54][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:45:54][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:45:54][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:45:54.328488 [2021-10-18 16:45:54][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:45:54][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:46:00][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:46:01][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:46:01][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:46:04][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:46:09][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:46:09][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:46:09][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:46:09][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:46:09.527516 [2021-10-18 16:46:09][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:46:09][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:46:16][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:46:16][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:46:16][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:46:16][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:46:19][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:46:21][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:46:22][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:46:24][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:46:24][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:46:24][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:46:24][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:46:24.723839 [2021-10-18 16:46:24][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:46:24][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:46:25][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:46:25][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:46:34][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:46:39][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:46:39][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:46:39][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:46:39][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:46:39.923690 [2021-10-18 16:46:39][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:46:39][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:46:45][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:46:45][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:46:45][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:46:46][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:46:46][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:46:46][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:46:46][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:46:49][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:46:52][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:46:55][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:46:55][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:46:55][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:46:55][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:46:55.118962 [2021-10-18 16:46:55][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:46:55][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:46:55][DEBUG][root](Thread-3) : 180 forced refresh ! [2021-10-18 16:46:55][DEBUG][root](Thread-3) : device status: False [2021-10-18 16:46:55][DEBUG][root](Thread-3) : Send to jeedom : {'action': 'update_device_status', 'id': 180, 'value': 0, 'source': 'local'} [2021-10-18 16:46:55][INFO] : Update device status from antenna local [2021-10-18 16:46:55][DEBUG] : id: 180, value:0 [2021-10-18 16:46:55][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Mag] [2021-10-18 16:46:55][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Mag][Etat_local] [2021-10-18 16:46:55][DEBUG] : Update value from to 0 for [Variables][Mobile_Bluetooth_Mag][Etat_local] [2021-10-18 16:46:55][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:46:55][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:46:55][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:46:55][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:46:55][DEBUG][root](Thread-3) : Status Code : 200 [2021-10-18 16:46:55][DEBUG][root](Thread-3) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:47:05][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:47:05][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:47:10][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:47:10][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:47:10][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:47:10][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:47:10.357122 [2021-10-18 16:47:10][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:47:10][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:47:11][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:47:11][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:47:11][DEBUG][root](Thread-4) : 177 forced refresh ! [2021-10-18 16:47:11][DEBUG][root](Thread-4) : device status: True [2021-10-18 16:47:11][DEBUG][root](Thread-4) : Send to jeedom : {'action': 'update_device_status', 'id': 177, 'value': 1, 'source': 'local'} [2021-10-18 16:47:11][INFO] : Update device status from antenna local [2021-10-18 16:47:11][DEBUG] : id: 177, value:1 [2021-10-18 16:47:11][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 16:47:11][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 16:47:11][DEBUG] : Update value from 1 to 1 for [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 16:47:11][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:47:11][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:47:11][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:47:11][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:47:11][DEBUG][root](Thread-4) : Status Code : 200 [2021-10-18 16:47:11][DEBUG][root](Thread-4) : Jeedom reply : {'success': True, 'value': 1} [2021-10-18 16:47:16][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:47:16][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:47:16][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:47:16][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:47:20][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:47:23][INFO] : Update device status from antenna PiZero [2021-10-18 16:47:23][DEBUG] : id: 177, value:1 [2021-10-18 16:47:23][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 16:47:23][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_PiZero] [2021-10-18 16:47:23][DEBUG] : Update value from 1 to 1 for [Variables][Mobile_Bluetooth_Nico][Etat_PiZero] [2021-10-18 16:47:23][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:47:23][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:47:23][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:47:23][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:47:23][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:47:25][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:47:25][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:47:25][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:47:25][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:47:25.563510 [2021-10-18 16:47:25][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:47:25][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:47:31][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:47:32][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:47:32][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:47:32][INFO] : Update device status from antenna PiZero [2021-10-18 16:47:32][DEBUG] : id: 180, value:0 [2021-10-18 16:47:32][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Mag] [2021-10-18 16:47:32][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Mag][Etat_PiZero] [2021-10-18 16:47:32][DEBUG] : Update value from to 0 for [Variables][Mobile_Bluetooth_Mag][Etat_PiZero] [2021-10-18 16:47:32][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:47:32][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:47:32][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:47:32][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:47:35][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:47:40][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:47:40][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:47:40][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:47:40][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:47:40.770558 [2021-10-18 16:47:40][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:47:40][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:47:46][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:47:46][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:47:46][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:47:46][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:47:50][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:47:52][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:47:53][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:47:55][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:47:55][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:47:55][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:47:55][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:47:55.980834 [2021-10-18 16:47:55][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:47:55][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:47:57][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:47:57][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:48:05][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:48:11][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:48:11][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:48:11][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:48:11][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:48:11.180382 [2021-10-18 16:48:11][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:48:11][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:48:16][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:48:16][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:48:16][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:48:16][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:48:17][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:48:18][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:48:18][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:48:21][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:48:23][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:48:26][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:48:26][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:48:26][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:48:26][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:48:26.387858 [2021-10-18 16:48:26][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:48:26][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:48:36][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:48:38][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:48:41][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:48:41][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:48:41][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:48:41][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:48:41.585002 [2021-10-18 16:48:41][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:48:41][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:48:42][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:48:42][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:48:46][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:48:46][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:48:46][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:48:46][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:48:51][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:48:53][DEBUG] : This is a heartbeat from antenna PiZero [2021-10-18 16:48:56][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:48:56][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:48:56][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:48:56][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:48:56.785608 [2021-10-18 16:48:56][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:48:56][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:49:02][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:49:03][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:49:03][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:49:06][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:49:11][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:49:11][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:49:11][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:49:11][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:49:11.993878 [2021-10-18 16:49:11][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:49:11][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:49:16][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:49:16][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:49:16][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:49:16][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:49:22][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:49:23][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:49:27][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:49:27][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:49:27][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:49:27][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:49:27.201392 [2021-10-18 16:49:27][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:49:27][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:49:27][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:49:27][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:49:37][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:49:42][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:49:42][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:49:42][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:49:42][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:49:42.420968 [2021-10-18 16:49:42][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:49:42][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:49:46][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:49:46][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:49:46][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:49:46][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:49:47][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:49:49][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:49:49][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:49:52][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:49:57][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:49:57][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:49:57][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:49:57][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:49:57.617228 [2021-10-18 16:49:57][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:49:57][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:50:03][INFO] : Restarting daemon on remote PiZero [2021-10-18 16:50:03][INFO] : Lancement du démon distant [2021-10-18 16:50:03][INFO] : Arret du demon distant 2 [2021-10-18 16:50:03][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 16:50:07][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:50:08][DEBUG] : error 110 : Connection timed out [2021-10-18 16:50:08][DEBUG] : result callDaemon [2021-10-18 16:50:09][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:50:12][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:50:12][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:50:12][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:50:12][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:50:12.812981 [2021-10-18 16:50:12][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:50:12][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:50:13][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:50:13][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:50:14][ERROR] : connexion SSH KO for PiZero [2021-10-18 16:50:16][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:50:16][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:50:16][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:50:16][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:50:19][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 16:50:22][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:50:23][ERROR] : connexion SSH KO for PiZero [2021-10-18 16:50:28][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:50:28][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:50:28][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:50:28][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:50:28.015846 [2021-10-18 16:50:28][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:50:28][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:50:33][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:50:33][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:50:33][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:50:38][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:50:43][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:50:43][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:50:43][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:50:43][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:50:43.212697 [2021-10-18 16:50:43][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:50:43][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:50:46][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:50:46][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:50:46][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:50:46][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:50:53][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:50:53][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:50:58][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:50:58][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:50:58][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:50:58][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:50:58.408671 [2021-10-18 16:50:58][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:50:58][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:50:58][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:50:58][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:51:02][INFO] : Restarting daemon on remote PiZero [2021-10-18 16:51:02][INFO] : Lancement du démon distant [2021-10-18 16:51:02][INFO] : Arret du demon distant 2 [2021-10-18 16:51:02][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 16:51:05][DEBUG] : error 113 : No route to host [2021-10-18 16:51:05][DEBUG] : result callDaemon [2021-10-18 16:51:08][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:51:08][ERROR] : connexion SSH KO for PiZero [2021-10-18 16:51:13][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:51:13][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:51:13][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:51:13][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:51:13.609065 [2021-10-18 16:51:13][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:51:13][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16: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 16:51:16][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:51:16][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:51:16][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:51:16][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:51:16][ERROR] : connexion SSH KO for PiZero [2021-10-18 16:51:18][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:51:19][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:51:19][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:51:23][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:51:28][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:51:28][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:51:28][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:51:28][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:51:28.811708 [2021-10-18 16:51:28][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:51:28][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:51:38][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:51:39][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:51:44][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:51:44][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:51:44][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:51:44][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:51:44.017428 [2021-10-18 16:51:44][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:51:44][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:51:44][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:51:44][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:51:46][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:51:46][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:51:46][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:51:46][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:51:54][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:51:59][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:51:59][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:51:59][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:51:59][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:51:59.221865 [2021-10-18 16:51:59][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:51:59][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:51:59][DEBUG][root](Thread-3) : 180 forced refresh ! [2021-10-18 16:51:59][DEBUG][root](Thread-3) : device status: False [2021-10-18 16:51:59][DEBUG][root](Thread-3) : Send to jeedom : {'action': 'update_device_status', 'id': 180, 'value': 0, 'source': 'local'} [2021-10-18 16:51:59][INFO] : Update device status from antenna local [2021-10-18 16:51:59][DEBUG] : id: 180, value:0 [2021-10-18 16:51:59][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Mag] [2021-10-18 16:51:59][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Mag][Etat_local] [2021-10-18 16:51:59][DEBUG] : Update value from to 0 for [Variables][Mobile_Bluetooth_Mag][Etat_local] [2021-10-18 16:51:59][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:51:59][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:51:59][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:51:59][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:51:59][DEBUG][root](Thread-3) : Status Code : 200 [2021-10-18 16:51:59][DEBUG][root](Thread-3) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:52:03][INFO] : Restarting daemon on remote PiZero [2021-10-18 16:52:03][INFO] : Lancement du démon distant [2021-10-18 16:52:03][INFO] : Arret du demon distant 2 [2021-10-18 16:52:03][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 16:52:04][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:52:05][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:52:05][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:52:06][DEBUG] : error 113 : No route to host [2021-10-18 16:52:06][DEBUG] : result callDaemon [2021-10-18 16:52:09][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:52:09][ERROR] : connexion SSH KO for PiZero [2021-10-18 16: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 16:52:14][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:52:14][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:52:14][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:52:14][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:52:14.465792 [2021-10-18 16:52:14][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:52:14][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:52:16][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:52:16][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:52:16][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:52:16][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:52:17][ERROR] : connexion SSH KO for PiZero [2021-10-18 16:52:24][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:52:25][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:52:29][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:52:29][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:52:29][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:52:29][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:52:29.664329 [2021-10-18 16:52:29][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:52:29][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:52:29][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:52:29][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:52:29][DEBUG][root](Thread-4) : 177 forced refresh ! [2021-10-18 16:52:29][DEBUG][root](Thread-4) : device status: True [2021-10-18 16:52:29][DEBUG][root](Thread-4) : Send to jeedom : {'action': 'update_device_status', 'id': 177, 'value': 1, 'source': 'local'} [2021-10-18 16:52:29][INFO] : Update device status from antenna local [2021-10-18 16:52:29][DEBUG] : id: 177, value:1 [2021-10-18 16:52:29][DEBUG] : Device Name: [Variables][Mobile_Bluetooth_Nico] [2021-10-18 16:52:29][DEBUG] : State property name: [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 16:52:29][DEBUG] : Update value from 1 to 1 for [Variables][Mobile_Bluetooth_Nico][Etat_local] [2021-10-18 16:52:29][DEBUG] : updateGlobalDevice(devices=2) [2021-10-18 16:52:29][INFO] : [Variables][Mobile_Bluetooth_Mag]-->0 [2021-10-18 16:52:29][INFO] : [Variables][Mobile_Bluetooth_Nico]-->1 [2021-10-18 16:52:29][INFO] : updateGlobalDevice: state=1/nb1=1/nbDevices=2 [2021-10-18 16:52:29][DEBUG][root](Thread-4) : Status Code : 200 [2021-10-18 16:52:29][DEBUG][root](Thread-4) : Jeedom reply : {'success': True, 'value': 1} [2021-10-18 16:52:39][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:52:44][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:52:44][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:52:44][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:52:44][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:52:44.854908 [2021-10-18 16:52:44][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:52:44][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:52:46][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:52:46][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:52:46][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:52:46][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:52:49][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:52:50][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:52:50][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:52:54][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:53:00][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:53:00][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:53:00][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:53:00][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:53:00.050876 [2021-10-18 16:53:00][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:53:00][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:53:02][INFO] : Restarting daemon on remote PiZero [2021-10-18 16:53:02][INFO] : Lancement du démon distant [2021-10-18 16:53:02][INFO] : Arret du demon distant 2 [2021-10-18 16:53:02][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 16:53:05][DEBUG] : error 113 : No route to host [2021-10-18 16:53:05][DEBUG] : result callDaemon [2021-10-18 16:53:08][ERROR] : connexion SSH KO for PiZero [2021-10-18 16:53:10][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:53:10][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16: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 16:53:15][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:53:15][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:53:15][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:53:15][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:53:15.255898 [2021-10-18 16:53:15][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:53:15][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:53:15][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:53:15][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:53:16][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:53:16][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:53:16][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:53:16][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:53:16][ERROR] : connexion SSH KO for PiZero [2021-10-18 16:53:25][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:53:30][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:53:30][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:53:30][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:53:30][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:53:30.463954 [2021-10-18 16:53:30][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:53:30][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:53:35][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:53:37][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:53:37][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:53:40][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:53:45][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:53:45][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:53:45][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:53:45][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:53:45.671789 [2021-10-18 16:53:45][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:53:45][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:53:46][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:53:46][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:53:46][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:53:46][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:53:55][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:53:57][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:54:00][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:54:00][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:54:00][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:54:00][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:54:00.877398 [2021-10-18 16:54:00][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:54:00][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:54:02][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:54:02][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:54:03][INFO] : Restarting daemon on remote PiZero [2021-10-18 16:54:03][INFO] : Lancement du démon distant [2021-10-18 16:54:03][INFO] : Arret du demon distant 2 [2021-10-18 16:54:03][DEBUG] : callDaemon (tcp://192.168.1.PiZero:55009) {"apikey":"8HvmYjQRFXI8x","action":"stop","args":""} [2021-10-18 16:54:06][DEBUG] : error 113 : No route to host [2021-10-18 16:54:06][DEBUG] : result callDaemon [2021-10-18 16:54:09][ERROR] : connexion SSH KO for PiZero [2021-10-18 16:54:10][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16: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 16:54:16][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:54:16][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:54:16][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:54:16][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:54:16.072795 [2021-10-18 16:54:16][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:54:16][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:54:16][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:54:16][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:54:16][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:54:16][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:54:17][ERROR] : connexion SSH KO for PiZero [2021-10-18 16:54:22][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:54:23][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:54:23][DEBUG][root](Thread-4) : 177 is up to date [2021-10-18 16:54:26][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:54:31][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:54:31][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:54:31][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:54:31][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:54:31.283310 [2021-10-18 16:54:31][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:54:31][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:54:41][DEBUG][root](Thread-3) : Get phone information 180 [2021-10-18 16:54:43][DEBUG][root](Thread-4) : Get phone information 177 [2021-10-18 16:54:46][DEBUG][root](Thread-3) : 180 is absent [2021-10-18 16:54:46][DEBUG][root](Thread-3) : lastStateDate: 2021-10-18 07:54:06 [2021-10-18 16:54:46][DEBUG][root](Thread-3) : thresholdDate: 2021-10-18 07:55:06 [2021-10-18 16:54:46][DEBUG][root](Thread-3) : datetime.utcnow(): 2021-10-18 14:54:46.487153 [2021-10-18 16:54:46][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True [2021-10-18 16:54:46][DEBUG][root](Thread-3) : 180 is up to date [2021-10-18 16:54:46][DEBUG][root](Thread-1) : Send to jeedom : {'action': 'heartbeat', 'source': 'local'} [2021-10-18 16:54:46][DEBUG] : This is a heartbeat from antenna local [2021-10-18 16:54:46][DEBUG][root](Thread-1) : Status Code : 200 [2021-10-18 16:54:46][DEBUG][root](Thread-1) : Jeedom reply : {'success': True, 'value': 0} [2021-10-18 16:54:47][DEBUG][root](Thread-4) : 177 is present [2021-10-18 16:54:47][DEBUG][root](Thread-4) : 177 is up to date