@Fabrice j'avais lu un de tes messages ou tu expliquais ce cas... J'avais fait de même mais pas d'amélioration... Sinon je me suis ruiner dernièrement et investi dans une SENA UD100 et une TRENDNET TBW-106UB j'ai testé avec les deux pas mieux...
@Ticoq non déco totale sans reco, par contre si je redémarre le le démon de plugin ça reco immédiatement et puis ça re-deco... Merci pour l'info au niveau du mode en continue non disponible pour les Nut Mini.
@Bandit33000 c'est aussi un PI3 que j'utilise mais tu fais comment pour utiliser le BLE intégrer dessus ? Tu as pas un lien/tuto ?
Voici au passage un extrait de mon log après redémarrage du démon :
Code : Tout sélectionner
[2017-03-16 13:04:10][INFO] : Start blead
[2017-03-16 13:04:10][INFO] : Log level : debug
[2017-03-16 13:04:10][INFO] : Socket port : 55008
[2017-03-16 13:04:10][INFO] : Socket host : 127.0.0.1
[2017-03-16 13:04:10][INFO] : Device : hci0
[2017-03-16 13:04:10][INFO] : PID file : /tmp/blead.pid
[2017-03-16 13:04:10][INFO] : Apikey : ***
[2017-03-16 13:04:10][INFO] : Callback : http://127.0.0.1:80/plugins/blea/core/php/jeeBlea.php
[2017-03-16 13:04:10][INFO] : Cycle : 0.3
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.dotti
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.fitbit
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.gigaset
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.hector
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.itag
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.jinlin
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.logiswitch
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.miband
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.miband2
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.miflora
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.miscale
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.myfox
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.niu
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.noke
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.nut
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.playbulb
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.smartplug
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.tb05
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.ticatag
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.wistiki
[2017-03-16 13:04:10][INFO] : Import de la configuration devices.yeelight
[2017-03-16 13:04:10][DEBUG] : Writing PID 31079 to /tmp/blead.pid
[2017-03-16 13:04:10][DEBUG] : Init request module v2.4.3
[2017-03-16 13:04:10][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-03-16 13:04:10][DEBUG] : "GET /plugins/blea/core/php/jeeBlea.php?apikey=*** HTTP/1.1" 200 0
[2017-03-16 13:04:10][DEBUG] : Socket interface started
[2017-03-16 13:04:10][DEBUG] : LoopNetServer Thread started
[2017-03-16 13:04:10][INFO] : Start listening...
[2017-03-16 13:04:10][DEBUG] : Listening on: [127.0.0.1:55008]
[2017-03-16 13:04:10][INFO] : Preparing Scanner...
[2017-03-16 13:04:10][DEBUG] : Read Socket Thread Launched
[2017-03-16 13:04:10][DEBUG] : Send to jeedom : {'source': 'local', 'learn_mode': 0}
[2017-03-16 13:04:10][DEBUG] : Read Device Thread Launched
[2017-03-16 13:04:10][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-03-16 13:04:10][DEBUG] : Heartbeat Thread Launched
[2017-03-16 13:04:10][DEBUG] : Send to jeedom : {'started': 1, 'source': 'local'}
[2017-03-16 13:04:10][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-03-16 13:04:11][DEBUG] : Client connected to [127.0.0.1:41136]
[2017-03-16 13:04:11][DEBUG] : Message read from socket: {"apikey":"***","cmd":"add","device":{"id":"F9:C6:B3:1F:85:0B","delay":"18000","needsrefresh":1,"name":"miflora","refreshlist":[],"islocked":0,"emitterallowed":"local","refresherallowed":"local"}}
[2017-03-16 13:04:11][DEBUG] : Client disconnected from [127.0.0.1:41136]
[2017-03-16 13:04:11][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=*** HTTP/1.1" 200 0
[2017-03-16 13:04:11][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=*** HTTP/1.1" 200 0
[2017-03-16 13:04:11][WARNING] : Exception on scanner (trying to resolve by myself 6): Failed to execute mgmt cmd 'scanend'
[2017-03-16 13:04:11][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2017-03-16 13:04:11][DEBUG] : Received command from jeedom : add
[2017-03-16 13:04:11][DEBUG] : Add device : {u'needsrefresh': 1, u'name': u'miflora', u'emitterallowed': u'local', u'delay': u'18000', u'refresherallowed': u'local', u'islocked': 0, u'refreshlist': [], u'id': u'F9:C6:B3:1F:85:0B'}
[2017-03-16 13:04:11][INFO] : Attempt to recover successful, reseting counter
[2017-03-16 13:04:12][DEBUG] : [(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (22, '16b Service Data', u'0a18e8df17a73252'), (1, 'Flags', u'06')] True random e8:df:17:a7:32:52
[2017-03-16 13:04:12][DEBUG] : This is a nut device e8:df:17:a7:32:52
[2017-03-16 13:04:12][DEBUG] : It's a known packet but not decoded because this device is not Included and I'am not in learn mode e8:df:17:a7:32:52
[2017-03-16 13:04:14][DEBUG] : [(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (255, 'Manufacturer', u'59000003'), (22, '16b Service Data', u'0a18f9c6b31f850b'), (1, 'Flags', u'06')] True random f9:c6:b3:1f:85:0b
[2017-03-16 13:04:14][DEBUG] : This is a nut device f9:c6:b3:1f:85:0b
[2017-03-16 13:04:14][DEBUG] : Send to jeedom : {u'devices': {u'F9:C6:B3:1F:85:0B': {'name': u'nut', 'source': 'local', 'rawdata': "[(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (255, 'Manufacturer', u'59000003'), (22, '16b Service Data', u'0a18f9c6b31f850b'), (1, 'Flags', u'06')]", 'rssi': -73, 'type': 'nut', 'id': u'F9:C6:B3:1F:85:0B', 'present': 1}}}
[2017-03-16 13:04:14][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-03-16 13:04:15][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=*** HTTP/1.1" 200 0
[2017-03-16 13:04:50][DEBUG] : [(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (22, '16b Service Data', u'0a18e8df17a73252'), (1, 'Flags', u'06')] True random e8:df:17:a7:32:52
[2017-03-16 13:04:50][DEBUG] : This is a nut device e8:df:17:a7:32:52
[2017-03-16 13:04:50][DEBUG] : It's a known packet but not decoded because this device is not Included and I'am not in learn mode e8:df:17:a7:32:52
[2017-03-16 13:05:06][DEBUG] : Send to jeedom : {'heartbeat': 1, 'source': 'local'}
[2017-03-16 13:05:06][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-03-16 13:05:06][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=*** HTTP/1.1" 200 0
[2017-03-16 13:06:02][DEBUG] : Send to jeedom : {'heartbeat': 1, 'source': 'local'}
[2017-03-16 13:06:02][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-03-16 13:06:02][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=*** HTTP/1.1" 200 0
[2017-03-16 13:06:11][DEBUG] : Connecting : F9:C6:B3:1F:85:0B with bluetooth 0
[2017-03-16 13:06:51][DEBUG] : Failed to connect to peripheral F9:C6:B3:1F:85:0B, addr type: public attempt
[2017-03-16 13:06:52][DEBUG] : Connecting : F9:C6:B3:1F:85:0B with bluetooth 0
[2017-03-16 13:06:58][DEBUG] : Send to jeedom : {'heartbeat': 1, 'source': 'local'}
[2017-03-16 13:06:58][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-03-16 13:06:58][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=*** HTTP/1.1" 200 0
[2017-03-16 13:07:32][DEBUG] : Failed to connect to peripheral F9:C6:B3:1F:85:0B, addr type: public attempt 1
[2017-03-16 13:07:54][DEBUG] : Send to jeedom : {'heartbeat': 1, 'source': 'local'}
[2017-03-16 13:07:54][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-03-16 13:07:54][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=*** HTTP/1.1" 200 0
[2017-03-16 13:08:50][DEBUG] : Send to jeedom : {'heartbeat': 1, 'source': 'local'}
[2017-03-16 13:08:50][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-03-16 13:08:50][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=*** HTTP/1.1" 200 0
On voit bien qu'après le restart, il retrouve le Nut Mini puis à [2017-03-16 13:06:51][DEBUG] : Failed to connect to peripheral F9:C6:B3:1F:85:0B, addr type: public attempt
Et la plus rien...
Merci pour votre aide.
Chewby