Le plugin ne renvoie aucun status

Bonjour,

Je suis en V4.1.16 sous Debian 10

J’ai installé le plugin ce matin et les commandes ne renvoie rien quand on les teste, pourtant le daemon est affiché à OK

le log detection update me donne ça :

Installation des dépendances
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 http://phoscon.de/apt/deconz buster InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (18.1-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python3-requests is already the newest version (2.21.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python3-setuptools is already the newest version (40.8.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package python3-rpi.gpio
E: Couldn't find any package by glob 'python3-rpi.gpio'
E: Couldn't find any package by regex 'python3-rpi.gpio'
Reading package lists...
Building dependency tree...
Reading state information...
python3-dev is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
bluez is already the newest version (5.50-1.2~deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installation des dépendances terminé !

le log ‹ phone_detection ›:

Traceback (most recent call last):
File "/var/www/html/plugins/phone_detection/core/class/../../resources/phone_detectiond/phone_detectiond.py", line 401, in <module>
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...

La clef bluetooth est opérationnelle (longtemps utilisé avec BLEA)

Bonjour,
Complète les champs grisés avec 10, 30 et 180.
Enregistre et regarde ce que ça donne.

L’idée était bonne mais pas suffisante :frowning: Par acquis de conscience j’ai créé trois autres équipement (ils se voient bien tous mutuellement), mais aucun n’est vu comme présent :frowning:

[2020-11-21 14:14:37][DEBUG][root](Thread-2) : Get phone information 1920
[2020-11-21 14:14:51][DEBUG][root](Thread-3) : 1925 is absent
[2020-11-21 14:14:51][DEBUG][root](Thread-3) : lastStateDate: 2020-11-21 12:56:55.783647
[2020-11-21 14:14:51][DEBUG][root](Thread-3) : thresholdDate: 2020-11-21 12:59:55.783647
[2020-11-21 14:14:51][DEBUG][root](Thread-3) : datetime.utcnow(): 2020-11-21 13:14:51.986552
[2020-11-21 14:14:51][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True
[2020-11-21 14:14:51][DEBUG][root](Thread-3) : 1925 is up to date
[2020-11-21 14:14:52][DEBUG][root](Thread-4) : 1926 is absent
[2020-11-21 14:14:52][DEBUG][root](Thread-4) : lastStateDate: 2020-11-21 12:59:51.838726
[2020-11-21 14:14:52][DEBUG][root](Thread-4) : thresholdDate: 2020-11-21 13:02:51.838726
[2020-11-21 14:14:52][DEBUG][root](Thread-4) : datetime.utcnow(): 2020-11-21 13:14:52.935320
[2020-11-21 14:14:52][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? True
[2020-11-21 14:14:52][DEBUG][root](Thread-4) : 1926 is up to date
[2020-11-21 14:14:59][DEBUG] : postUpdate()
[2020-11-21 14:14:59][DEBUG] : callDeamon update_device Array (     [0] => 1920     [1] => Tel-MG     [2] => e4:fd:a1:b4:d1:80 )
[2020-11-21 14:14:59][DEBUG] : error 0 :
[2020-11-21 14:14:59][DEBUG][root](Thread-1) : Message received in socket
[2020-11-21 14:14:59][DEBUG][root](Thread-1) : {'action': 'update_device', 'args': ['1920', 'Tel-MG', 'e4:fd:a1:b4:d1:80']}
[2020-11-21 14:14:59][DEBUG][root](Thread-1) : Update device in device.json
[2020-11-21 14:14:59][DEBUG] : result callDeamon Array (     [result] => Update OK     [success] => 1 )
[2020-11-21 14:15:01][DEBUG][root](Thread-3) : Get phone information 1925
[2020-11-21 14:15:02][DEBUG][root](Thread-2) : 1920 is absent
[2020-11-21 14:15:02][DEBUG][root](Thread-2) : lastStateDate: 2020-11-21 12:49:31.025562
[2020-11-21 14:15:02][DEBUG][root](Thread-2) : thresholdDate: 2020-11-21 12:52:31.025562
[2020-11-21 14:15:02][DEBUG][root](Thread-2) : datetime.utcnow(): 2020-11-21 13:15:02.861186
[2020-11-21 14:15:02][DEBUG][root](Thread-2) : is datetime.utcnow() > thresholdDate ? True
[2020-11-21 14:15:02][DEBUG][root](Thread-2) : 1920 is up to date
[2020-11-21 14:15:02][DEBUG][root](Thread-4) : Get phone information 1926
[2020-11-21 14:15:04][DEBUG] : postUpdate()
[2020-11-21 14:15:04][DEBUG] : callDeamon update_device Array (     [0] => 1925     [1] => Montre Garmin     [2] => f0:99:19:b3:3c:11 )
[2020-11-21 14:15:04][DEBUG] : error 0 :
[2020-11-21 14:15:04][DEBUG][root](Thread-1) : Message received in socket
[2020-11-21 14:15:04][DEBUG][root](Thread-1) : {'action': 'update_device', 'args': ['1925', 'Montre Garmin', 'f0:99:19:b3:3c:11']}
[2020-11-21 14:15:04][DEBUG][root](Thread-1) : Update device in device.json
[2020-11-21 14:15:04][DEBUG] : result callDeamon Array (     [result] => Update OK     [success] => 1 )
[2020-11-21 14:15:08][DEBUG] : postUpdate()
[2020-11-21 14:15:08][DEBUG] : callDeamon update_device Array (     [0] => 1920     [1] => Tel-MG     [2] => e4:fd:a1:b4:d1:80 )
[2020-11-21 14:15:08][DEBUG] : error 0 :
[2020-11-21 14:15:08][DEBUG][root](Thread-1) : Message received in socket
[2020-11-21 14:15:08][DEBUG][root](Thread-1) : {'action': 'update_device', 'args': ['1920', 'Tel-MG', 'e4:fd:a1:b4:d1:80']}
[2020-11-21 14:15:08][DEBUG][root](Thread-1) : Update device in device.json
[2020-11-21 14:15:08][DEBUG] : result callDeamon Array (     [result] => Update OK     [success] => 1 )
[2020-11-21 14:15:12][DEBUG][root](Thread-2) : Get phone information 1920
[2020-11-21 14:15:27][DEBUG][root](Thread-3) : 1925 is absent
[2020-11-21 14:15:27][DEBUG][root](Thread-3) : lastStateDate: 2020-11-21 12:56:55.783647
[2020-11-21 14:15:27][DEBUG][root](Thread-3) : thresholdDate: 2020-11-21 12:59:55.783647
[2020-11-21 14:15:27][DEBUG][root](Thread-3) : datetime.utcnow(): 2020-11-21 13:15:27.074314
[2020-11-21 14:15:27][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True
[2020-11-21 14:15:27][DEBUG][root](Thread-3) : 1925 is up to date
[2020-11-21 14:15:27][DEBUG][root](Thread-4) : 1926 is absent
[2020-11-21 14:15:27][DEBUG][root](Thread-4) : lastStateDate: 2020-11-21 12:59:51.838726
[2020-11-21 14:15:27][DEBUG][root](Thread-4) : thresholdDate: 2020-11-21 13:02:51.838726
[2020-11-21 14:15:27][DEBUG][root](Thread-4) : datetime.utcnow(): 2020-11-21 13:15:27.977108
[2020-11-21 14:15:27][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? True
[2020-11-21 14:15:27][DEBUG][root](Thread-4) : 1926 is up to date
[2020-11-21 14:15:37][DEBUG][root](Thread-3) : Get phone information 1925
[2020-11-21 14:15:37][DEBUG][root](Thread-2) : 1920 is absent
[2020-11-21 14:15:37][DEBUG][root](Thread-2) : lastStateDate: 2020-11-21 12:49:31.025562
[2020-11-21 14:15:37][DEBUG][root](Thread-2) : thresholdDate: 2020-11-21 12:52:31.025562
[2020-11-21 14:15:37][DEBUG][root](Thread-2) : datetime.utcnow(): 2020-11-21 13:15:37.898255
[2020-11-21 14:15:37][DEBUG][root](Thread-2) : is datetime.utcnow() > thresholdDate ? True 
[2020-11-21 14:15:37][DEBUG][root](Thread-2) : 1920 is up to date
[2020-11-21 14:15:37][DEBUG][root](Thread-4) : Get phone information 1926
[2020-11-21 14:15:47][DEBUG][root](Thread-2) : Get phone information 1920
[2020-11-21 14:16:02][DEBUG][root](Thread-3) : 1925 is absent
[2020-11-21 14:16:02][DEBUG][root](Thread-3) : lastStateDate: 2020-11-21 12:56:55.783647
[2020-11-21 14:16:02][DEBUG][root](Thread-3) : thresholdDate: 2020-11-21 12:59:55.783647
[2020-11-21 14:16:02][DEBUG][root](Thread-3) : datetime.utcnow(): 2020-11-21 13:16:02.117583
[2020-11-21 14:16:02][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? True
[2020-11-21 14:16:02][DEBUG][root](Thread-3) : 1925 is up to date
[2020-11-21 14:16:03][DEBUG][root](Thread-4) : 1926 is absent
[2020-11-21 14:16:03][DEBUG][root](Thread-4) : lastStateDate: 2020-11-21 12:59:51.838726
[2020-11-21 14:16:03][DEBUG][root](Thread-4) : thresholdDate: 2020-11-21 13:02:51.838726
[2020-11-21 14:16:03][DEBUG][root](Thread-4) : datetime.utcnow(): 2020-11-21 13:16:03.017297
[2020-11-21 14:16:03][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? True
[2020-11-21 14:16:03][DEBUG][root](Thread-4) : 1926 is up to date
[2020-11-21 14:16:12][DEBUG][root](Thread-3) : Get phone information 1925
[2020-11-21 14:16:12][DEBUG][root](Thread-2) : 1920 is absent
[2020-11-21 14:16:12][DEBUG][root](Thread-2) : lastStateDate: 2020-11-21 12:49:31.025562
[2020-11-21 14:16:12][DEBUG][root](Thread-2) : thresholdDate: 2020-11-21 12:52:31.025562
[2020-11-21 14:16:12][DEBUG][root](Thread-2) : datetime.utcnow(): 2020-11-21 13:16:12.925314
[2020-11-21 14:16:12][DEBUG][root](Thread-2) : is datetime.utcnow() > thresholdDate ? True
[2020-11-21 14:16:12][DEBUG][root](Thread-2) : 1920 is up to date
[2020-11-21 14:16:13][DEBUG][root](Thread-4) : Get phone information 1926
[2020-11-21 14:16:22][DEBUG][root](Thread-2) : Get phone information 1920

Bonjour, j’ai le même soucis
4 telephone qui ne sont jamais detectés présents

[2020-12-06 11:45:44][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 gfYpwOPr5YbQ7nKgb8aLbCENwSpkmDJP --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-12-06 10:45:45][INFO][root](MainThread) : Start phone_detectiond
[2020-12-06 10:45:45][INFO][root](MainThread) : Log level : debug
[2020-12-06 10:45:45][INFO][root](MainThread) : Socket : /tmp/jeedom/phone_detection/daemon.sock
[2020-12-06 10:45:45][INFO][root](MainThread) : PID file : /tmp/jeedom/phone_detection/daemon.pid
[2020-12-06 10:45:45][INFO][root](MainThread) : Device : hci0
[2020-12-06 10:45:45][INFO][root](MainThread) : Callback : http://127.0.0.1:80/plugins/phone_detection/core/php/phone_detection.php
[2020-12-06 10:45:45][INFO][root](MainThread) : Interval : 10
[2020-12-06 10:45:45][INFO][root](MainThread) : Present Interval : 30
[2020-12-06 10:45:45][INFO][root](MainThread) : AbsentThreshold: 180
[2020-12-06 10:45:45][INFO][root](MainThread) : Python version : 3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0]
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Writing PID 28531 to /tmp/jeedom/phone_detection/daemon.pid
[2020-12-06 10:45:45][INFO][root](MainThread) : Create phone_detection daemon
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Send to test to jeedom
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'test'}
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Status Code :  200
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': 0}
[2020-12-06 10:45:45][INFO][root](MainThread) : Get devices from Jeedom
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'get_devices'}
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Status Code :  200
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': {'256': {'state': False, 'lastValueDate': '2020-12-06 11:22:01', 'name': 'Bluetooth Tel Chérie', 'humanName': '[Réseau_Notifications][Bluetooth Tel Chérie]', 'id': '256', 'macAddress': 'b0:6e:bf:91:c9:0f'}, '258': {'state': False, 'lastValueDate': '', 'name': 'Bluetooth Tel Emma', 'humanName': '[Réseau_Notifications][Bluetooth Tel Emma]', 'id': '258', 'macAddress': '2c:fd:a1:d3:4f:38'}, '254': {'state': False, 'lastValueDate': '2020-12-06 11:15:18', 'name': 'Bluetooth Tel Ludo', 'humanName': '[Réseau_Notifications][Bluetooth Tel Ludo]', 'id': '254', 'macAddress': '84:c7:ea:a0:8e:2b'}, '257': {'state': False, 'lastValueDate': '', 'name': 'Bluetooth Tel Théo', 'humanName': '[Réseau_Notifications][Bluetooth Tel Théo]', 'id': '257', 'macAddress': ''}}}
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'refresh_group'}
[2020-12-06 11:45:45][INFO] : updateGlobalDevice()
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Status Code :  200
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': 0}
[2020-12-06 10:45:45][INFO][root](MainThread) : Start thread detection for Bluetooth Tel Chérie [b0:6e:bf:91:c9:0f]
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'get_status', 'id': 256}
[2020-12-06 11:45:45][DEBUG] : id: 256
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Status Code :  200
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': 0}
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Jeedom 256 device status: False
[2020-12-06 10:45:45][DEBUG][root](Thread-2) : Get phone information 256
[2020-12-06 10:45:45][INFO][root](MainThread) : Start thread detection for Bluetooth Tel Emma [2c:fd:a1:d3:4f:38]
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'get_status', 'id': 258}
[2020-12-06 11:45:45][DEBUG] : id: 258
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Status Code :  200
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': ''}
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Jeedom 258 device status: False
[2020-12-06 10:45:45][DEBUG][root](Thread-3) : Get phone information 258
[2020-12-06 10:45:45][INFO][root](MainThread) : Start thread detection for Bluetooth Tel Ludo [84:c7:ea:a0:8e:2b]
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'get_status', 'id': 254}
[2020-12-06 11:45:45][DEBUG] : id: 254
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Status Code :  200
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': 0}
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Jeedom 254 device status: False
[2020-12-06 10:45:45][DEBUG][root](Thread-4) : Get phone information 254
[2020-12-06 10:45:45][INFO][root](MainThread) : Start thread detection for Bluetooth Tel Théo []
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'get_status', 'id': 257}
[2020-12-06 11:45:45][DEBUG] : id: 257
[2020-12-06 11:45:45][INFO] : Démon phone_detection lancé
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Status Code :  200
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Jeedom reply :  {'success': True, 'value': ''}
[2020-12-06 10:45:45][DEBUG][root](MainThread) : Jeedom 257 device status: False
[2020-12-06 10:45:45][DEBUG][root](Thread-5) : Get phone information 257
[2020-12-06 10:46:10][DEBUG][root](Thread-2) : 256 is absent
[2020-12-06 10:46:10][DEBUG][root](Thread-2) : lastStateDate: 2020-12-06 11:22:01
[2020-12-06 10:46:10][DEBUG][root](Thread-2) : thresholdDate: 2020-12-06 11:25:01
[2020-12-06 10:46:10][DEBUG][root](Thread-2) : datetime.utcnow(): 2020-12-06 10:46:10.392303
[2020-12-06 10:46:10][DEBUG][root](Thread-2) : is datetime.utcnow() > thresholdDate ? False
[2020-12-06 10:46:10][DEBUG][root](Thread-2) : 256 is up to date
[2020-12-06 10:46:10][DEBUG][root](Thread-3) : 258 is absent
[2020-12-06 10:46:10][DEBUG][root](Thread-3) : lastStateDate: 2020-12-06 10:45:45.164009
[2020-12-06 10:46:10][DEBUG][root](Thread-3) : thresholdDate: 2020-12-06 10:48:45.164009
[2020-12-06 10:46:10][DEBUG][root](Thread-3) : datetime.utcnow(): 2020-12-06 10:46:10.401723
[2020-12-06 10:46:10][DEBUG][root](Thread-3) : is datetime.utcnow() > thresholdDate ? False
[2020-12-06 10:46:10][DEBUG][root](Thread-3) : 258 is up to date
[2020-12-06 10:46:10][DEBUG][root](Thread-4) : 254 is absent
[2020-12-06 10:46:10][DEBUG][root](Thread-4) : lastStateDate: 2020-12-06 11:15:18
[2020-12-06 10:46:10][DEBUG][root](Thread-4) : thresholdDate: 2020-12-06 11:18:18
[2020-12-06 10:46:10][DEBUG][root](Thread-4) : datetime.utcnow(): 2020-12-06 10:46:10.458675
[2020-12-06 10:46:10][DEBUG][root](Thread-4) : is datetime.utcnow() > thresholdDate ? False
[2020-12-06 10:46:10][DEBUG][root](Thread-4) : 254 is up to date
[2020-12-06 10:46:10][DEBUG][root](Thread-5) : 257 is absent
[2020-12-06 10:46:10][DEBUG][root](Thread-5) : lastStateDate: 2020-12-06 10:45:45.164191
[2020-12-06 10:46:10][DEBUG][root](Thread-5) : thresholdDate: 2020-12-06 10:48:45.164191
[2020-12-06 10:46:10][DEBUG][root](Thread-5) : datetime.utcnow(): 2020-12-06 10:46:10.515691
[2020-12-06 10:46:10][DEBUG][root](Thread-5) : is datetime.utcnow() > thresholdDate ? False
[2020-12-06 10:46:10][DEBUG][root](Thread-5) : 257 is up to date
[2020-12-06 10:46:20][DEBUG][root](Thread-2) : Get phone information 256
[2020-12-06 10:46:20][DEBUG][root](Thread-3) : Get phone information 258
[2020-12-06 10:46:20][DEBUG][root](Thread-4) : Get phone information 254
[2020-12-06 10:46:20][DEBUG][root](Thread-5) : Get phone information 257