Traceback (most recent call last): File "/var/www/html/plugins/phone_detection/core/class/../../resources/phone_detectiond/phone_detectiond.py", line 401, in DEVICES = jc.getDevices() File "/var/www/html/plugins/phone_detection/core/class/../../resources/phone_detectiond/phone_detectiond.py", line 236, in getDevices for key in devices["value"]: TypeError: 'NoneType' object is not iterable Signal 15 caught, exiting... [2020-04-30 22:31:56][DEBUG] : cmdId:refresh [2020-04-30 22:31:56][DEBUG] : eqLogic Id:47 [2020-04-30 22:31:56][DEBUG] : mac address: :2B:20:74:65: [2020-04-30 22:31:56][INFO] : BT Device: hci0 [2020-04-30 22:31:57][DEBUG] : device name: iPhone de L [2020-04-30 22:31:57][DEBUG] : device state: 1 [2020-04-30 22:31:57][INFO] : updateGlobalDevice() [2020-04-30 22:32:01][DEBUG] : cmdId:refresh [2020-04-30 22:32:01][DEBUG] : eqLogic Id:45 [2020-04-30 22:32:01][DEBUG] : mac address: :BB:2C:A5:0D: [2020-04-30 22:32:01][INFO] : BT Device: hci0 [2020-04-30 22:32:02][DEBUG] : device name: Trojanhorse [2020-04-30 22:32:02][DEBUG] : device state: 1 [2020-04-30 22:32:02][INFO] : updateGlobalDevice() [2020-04-30 22:43:12][DEBUG] : cmdId:refresh [2020-04-30 22:43:12][DEBUG] : eqLogic Id:47 [2020-04-30 22:43:12][DEBUG] : mac address: :2B:20:74:65: [2020-04-30 22:43:12][INFO] : BT Device: hci0 [2020-04-30 22:43:13][DEBUG] : device name: iPhone de [2020-04-30 22:43:13][DEBUG] : device state: 1 [2020-04-30 22:43:13][INFO] : updateGlobalDevice() [2020-04-30 22:43:17][DEBUG] : cmdId:refresh [2020-04-30 22:43:17][DEBUG] : eqLogic Id:45 [2020-04-30 22:43:17][DEBUG] : mac address: :BB:2C:A5:0D: [2020-04-30 22:43:17][INFO] : BT Device: hci0 [2020-04-30 22:43:22][DEBUG] : device name: Trojanhorse [2020-04-30 22:43:22][DEBUG] : device state: 1 [2020-04-30 22:43:22][INFO] : updateGlobalDevice() Signal 15 caught, exiting... [2020-04-30 22:46:46][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 wxrrJCYd5QNLy60WYQrijjBdBB2d4J7X --pidfile /tmp/jeedom/phone_detection/daemon.pid --socket /tmp/jeedom/phone_detection/daemon.sock --callback http://127.0.0.1:80/plugins/phone_detection/core/php/phone_detection.php --interval 10 --present_interval 30 --absentThreshold 180 [2020-04-30 21:46:47][INFO][root](MainThread) : Start phone_detectiond [2020-04-30 21:46:47][INFO][root](MainThread) : Log level : debug [2020-04-30 21:46:47][INFO][root](MainThread) : Socket : /tmp/jeedom/phone_detection/daemon.sock [2020-04-30 21:46:47][INFO][root](MainThread) : PID file : /tmp/jeedom/phone_detection/daemon.pid [2020-04-30 21:46:47][INFO][root](MainThread) : Device : hci0 [2020-04-30 21:46:47][INFO][root](MainThread) : Callback : http://127.0.0.1:80/plugins/phone_detection/core/php/phone_detection.php [2020-04-30 21:46:47][INFO][root](MainThread) : Interval : 10 [2020-04-30 21:46:47][INFO][root](MainThread) : Present Interval : 30 [2020-04-30 21:46:47][INFO][root](MainThread) : AbsentThreshold: 180 [2020-04-30 21:46:47][INFO][root](MainThread) : Python version : 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0] [2020-04-30 21:46:47][DEBUG][root](MainThread) : Writing PID 10527 to /tmp/jeedom/phone_detection/daemon.pid [2020-04-30 21:46:47][INFO][root](MainThread) : Create phone_detection daemon [2020-04-30 21:46:47][DEBUG][root](MainThread) : Send to test to jeedom [2020-04-30 21:46:47][DEBUG][root](MainThread) : Send to jeedom : {'action': 'test'} [2020-04-30 21:46:47][DEBUG][root](MainThread) : Status Code : 200 [2020-04-30 21:46:47][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2020-04-30 21:46:47][INFO][root](MainThread) : Get devices from Jeedom [2020-04-30 21:46:47][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_devices'} [2020-04-30 21:46:47][DEBUG][root](MainThread) : Status Code : 200 [2020-04-30 21:46:47][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': {'47': {'state': True, 'lastValueDate': '2020-04-30 22:24:07', 'name': 'Iphone B', 'humanName': '[Home][Iphone B]', 'id': '47', 'macAddress': ':2B:20:74:65:'}, '45': {'state': True, 'lastValueDate': '2020-04-30 22:15:06', 'name': 'Iphone L', 'humanName': '[Home][Iphone Louls]', 'id': '45', 'macAddress': ':BB:2C:A5:0D:'}}} [2020-04-30 21:46:47][DEBUG][root](MainThread) : Send to jeedom : {'action': 'refresh_group'} [2020-04-30 22:46:47][INFO] : updateGlobalDevice() [2020-04-30 21:46:47][DEBUG][root](MainThread) : Status Code : 200 [2020-04-30 21:46:47][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 0} [2020-04-30 21:46:47][INFO][root](MainThread) : Start thread detection for Iphone B [D0:2B:20:74:] [2020-04-30 21:46:47][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_status', 'id': 47} [2020-04-30 22:46:47][DEBUG] : id: 47 [2020-04-30 21:46:47][DEBUG][root](MainThread) : Status Code : 200 [2020-04-30 21:46:47][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 1} [2020-04-30 21:46:47][DEBUG][root](MainThread) : Jeedom 47 device status: True [2020-04-30 21:46:47][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:46:47][INFO][root](MainThread) : Start thread detection for Iphone Louls [D8:BB:2C:A5:0D:] [2020-04-30 21:46:47][DEBUG][root](MainThread) : Send to jeedom : {'action': 'get_status', 'id': 45} [2020-04-30 22:46:47][DEBUG] : id: 45 [2020-04-30 21:46:47][DEBUG][root](MainThread) : Status Code : 200 [2020-04-30 21:46:47][DEBUG][root](MainThread) : Jeedom reply : {'success': True, 'value': 1} [2020-04-30 21:46:47][DEBUG][root](MainThread) : Jeedom 45 device status: True [2020-04-30 21:46:47][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 22:46:47][INFO] : Démon phone_detection lancé [2020-04-30 21:46:50][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:46:50][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:46:50][DEBUG][root](Thread-3) : 45 is present [2020-04-30 21:46:50][DEBUG][root](Thread-3) : 45 is up to date [2020-04-30 22:47:00][DEBUG] : cmdId:refresh [2020-04-30 22:47:00][DEBUG] : eqLogic Id:47 [2020-04-30 22:47:00][DEBUG] : mac address: D0:2B:20:74: [2020-04-30 22:47:00][INFO] : BT Device: hci0 [2020-04-30 22:47:06][DEBUG] : device name: iPhone de L [2020-04-30 22:47:06][DEBUG] : device state: 1 [2020-04-30 22:47:06][INFO] : updateGlobalDevice() [2020-04-30 21:47:20][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:47:20][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 21:47:22][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:47:22][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:47:23][DEBUG][root](Thread-3) : 45 is present [2020-04-30 21:47:23][DEBUG][root](Thread-3) : 45 is up to date [2020-04-30 21:47:52][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:47:53][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 21:47:54][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:47:54][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:47:55][DEBUG][root](Thread-3) : 45 is present [2020-04-30 21:47:55][DEBUG][root](Thread-3) : 45 is up to date [2020-04-30 21:48:24][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:48:25][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 21:48:26][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:48:26][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:48:26][DEBUG][root](Thread-3) : 45 is present [2020-04-30 21:48:26][DEBUG][root](Thread-3) : 45 is up to date [2020-04-30 21:48:56][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:48:56][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 21:48:58][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:48:58][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:48:59][DEBUG][root](Thread-3) : 45 is present [2020-04-30 21:48:59][DEBUG][root](Thread-3) : 45 is up to date [2020-04-30 21:49:28][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:49:29][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 21:49:31][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:49:31][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:49:31][DEBUG][root](Thread-3) : 45 is present [2020-04-30 21:49:31][DEBUG][root](Thread-3) : 45 is up to date [2020-04-30 21:50:01][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:50:01][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 21:50:02][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:50:02][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:50:02][DEBUG][root](Thread-3) : 45 is present [2020-04-30 21:50:02][DEBUG][root](Thread-3) : 45 is up to date [2020-04-30 21:50:32][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:50:33][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 21:50:35][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:50:35][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:50:39][DEBUG][root](Thread-3) : 45 is absent [2020-04-30 21:50:39][DEBUG][root](Thread-3) : lastStateDate: 2020-04-30 20:50:02.993654 [2020-04-30 21:50:39][DEBUG][root](Thread-3) : thresholdDate: 2020-04-30 20:53:02.993654 [2020-04-30 21:50:39][DEBUG][root](Thread-3) : datetime.utcnow(): 2020-04-30 20:50:39.667627 [2020-04-30 21:50:39][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? False [2020-04-30 21:50:39][DEBUG][root](Thread-3) : 45 is up to date [2020-04-30 22:50:49][DEBUG] : cmdId:refresh [2020-04-30 22:50:49][DEBUG] : eqLogic Id:45 [2020-04-30 22:50:49][DEBUG] : mac address: D8:BB:2C:A5:0D: [2020-04-30 22:50:49][INFO] : BT Device: hci0 [2020-04-30 22:50:55][DEBUG] : device name: [2020-04-30 22:50:55][DEBUG] : device state: 0 [2020-04-30 22:50:55][INFO] : updateGlobalDevice() [2020-04-30 21:51:05][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:51:05][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:51:05][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:51:09][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 21:51:11][DEBUG][root](Thread-3) : 45 is present [2020-04-30 21:51:11][DEBUG][root](Thread-3) : 45 is up to date [2020-04-30 22:51:14][DEBUG] : cmdId:refresh [2020-04-30 22:51:14][DEBUG] : eqLogic Id:45 [2020-04-30 22:51:14][DEBUG] : mac address: D8:BB:2C:A5:0D: [2020-04-30 22:51:14][INFO] : BT Device: hci0 [2020-04-30 22:51:16][DEBUG] : device name: Trojanhorse [2020-04-30 22:51:16][DEBUG] : device state: 1 [2020-04-30 22:51:16][INFO] : updateGlobalDevice() [2020-04-30 22:51:18][DEBUG] : cmdId:refresh [2020-04-30 22:51:18][DEBUG] : eqLogic Id:45 [2020-04-30 22:51:18][DEBUG] : mac address: D8:BB:2C:A5:0D: [2020-04-30 22:51:18][INFO] : BT Device: hci0 [2020-04-30 22:51:22][DEBUG] : device name: Trojanhorse [2020-04-30 22:51:22][DEBUG] : device state: 1 [2020-04-30 22:51:22][INFO] : updateGlobalDevice() [2020-04-30 22:51:25][DEBUG] : cmdId:refresh [2020-04-30 22:51:25][DEBUG] : eqLogic Id:45 [2020-04-30 22:51:25][DEBUG] : mac address: D8:BB:2C:A5: [2020-04-30 22:51:25][INFO] : BT Device: hci0 [2020-04-30 22:51:25][DEBUG] : device name: Trojanhorse [2020-04-30 22:51:25][DEBUG] : device state: 1 [2020-04-30 22:51:25][INFO] : updateGlobalDevice() [2020-04-30 21:51:35][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:51:37][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:51:37][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:51:41][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 21:51:42][DEBUG][root](Thread-3) : 45 is present [2020-04-30 21:51:42][DEBUG][root](Thread-3) : 45 is up to date [2020-04-30 21:52:07][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:52:10][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:52:10][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:52:12][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 21:52:13][DEBUG][root](Thread-3) : 45 is present [2020-04-30 21:52:13][DEBUG][root](Thread-3) : 45 is up to date [2020-04-30 21:52:40][DEBUG][root](Thread-2) : Get phone information 47 [2020-04-30 21:52:42][DEBUG][root](Thread-2) : 47 is present [2020-04-30 21:52:42][DEBUG][root](Thread-2) : 47 is up to date [2020-04-30 21:52:43][DEBUG][root](Thread-3) : Get phone information 45 [2020-04-30 21:52:44][DEBUG][root](Thread-3) : 45 is present [2020-04-30 21:52:44][DEBUG][root](Thread-3) : 45 is up to date