Bonjour,
Plugin qui donne tres envie mais j'ai un petit soucis.
Depuis mon raspberry pi 3 (qui a donc le Bluetooth intégré), j'ai problème de connexion vers mon Miflora (mise à jour derniere version).
La connexion semble fonctionner au début (1-2heures) puis les données ne sont plus mise à jour.
Avec bluetoothctl il me reconnait bien le Controller et le device flower care, j'ai des chg assez régulièrement avec rssi entre -70 et -88.
A un momment donné j'avais aussi beacoup de chg connexion on connexion off mais plus maintenant.
Dans log Blea j'ai : 2017-01-26 18:37:37][INFO] : This is a heartbeat from antenna local
Voicii ce que j'ai dans le log blea_local :
Code : Tout sélectionner
[2017-01-26 18:35:49][DEBUG] : Connecting : C4:7C:8D:61:31:F0 with bluetooth 0
[2017-01-26 18:36:19][DEBUG] : Client connected to [127.0.0.1:44658]
[2017-01-26 18:36:19][DEBUG] : Message read from socket: {"apikey":"iKsVscapM5qkPLvfXa9PLyWpdB7hZCVFJYSE3vIgSQvF6uP9","cmd":"refresh","device":{"id":"C4:7C:8D:61:31:F0"},"command":{"device":{"id":"C4:7C:8D:61:31:F0","delay":"10","needsrefresh":1,"name":"miflora"},"name":"miflora"}}
[2017-01-26 18:36:19][DEBUG] : Client disconnected from [127.0.0.1:44658]
[2017-01-26 18:36:20][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2017-01-26 18:36:20][DEBUG] : Received command from jeedom : refresh
[2017-01-26 18:36:20][DEBUG] : Attempt an action on a device
[2017-01-26 18:36:20][DEBUG] : Attempt to refresh values
[2017-01-26 18:36:20][DEBUG] : Thread Launched
[2017-01-26 18:36:20][DEBUG] : Connecting : C4:7C:8D:61:31:F0 with bluetooth 0
[2017-01-26 18:36:20][DEBUG] : Failed to connect to peripheral C4:7C:8D:61:31:F0, addr type: public attempt 1
[2017-01-26 18:36:21][DEBUG] : Failed to connect to peripheral C4:7C:8D:61:31:F0, addr type: public attempt 2
[2017-01-26 18:36:22][DEBUG] : Failed to connect to peripheral C4:7C:8D:61:31:F0, addr type: public attempt 3
[2017-01-26 18:36:22][ERROR] : 'str' object has no attribute 'disconnect'
[2017-01-26 18:36:23][DEBUG] : [(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'95fe'), (22, '16b Service Data', u'95fe3102980093f031618d7cc40d'), (9, 'Complete Local Name', u'Flower care')] True public c4:7c:8d:61:31:f0
[2017-01-26 18:36:23][DEBUG] : This is a miflora device c4:7c:8d:61:31:f0
[2017-01-26 18:36:23][DEBUG] : Send to jeedom : {u'devices': {u'C4:7C:8D:61:31:F0': {'name': u'Flower care', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'95fe'), (22, '16b Service Data', u'95fe3102980093f031618d7cc40d'), (9, 'Complete Local Name', u'Flower care')]", 'rssi': -88, 'type': 'miflora', 'id': u'C4:7C:8D:61:31:F0', 'present': 1}}}
[2017-01-26 18:36:23][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-01-26 18:36:28][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=iKsVscapM5qkPLvfXa9PLyWpdB7hZCVFJYSE3vIgSQvF6uP9 HTTP/1.1" 200 0
[2017-01-26 18:36:30][DEBUG] : Failed to connect to peripheral C4:7C:8D:61:31:F0, addr type: public attempt 1
[2017-01-26 18:36:32][DEBUG] : Connecting : C4:7C:8D:61:31:F0 with bluetooth 0
[2017-01-26 18:36:41][DEBUG] : Send to jeedom : {'heartbeat': 1, 'source': 'local'}
[2017-01-26 18:36:41][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-01-26 18:36:42][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=iKsVscapM5qkPLvfXa9PLyWpdB7hZCVFJYSE3vIgSQvF6uP9 HTTP/1.1" 200 0
[2017-01-26 18:37:12][DEBUG] : Failed to connect to peripheral C4:7C:8D:61:31:F0, addr type: public attempt 1
[2017-01-26 18:37:13][DEBUG] : Connecting : C4:7C:8D:61:31:F0 with bluetooth 0
[2017-01-26 18:37:37][DEBUG] : Send to jeedom : {'heartbeat': 1, 'source': 'local'}
[2017-01-26 18:37:37][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-01-26 18:37:37][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=iKsVscapM5qkPLvfXa9PLyWpdB7hZCVFJYSE3vIgSQvF6uP9 HTTP/1.1" 200 0
[2017-01-26 18:37:53][DEBUG] : Failed to connect to peripheral C4:7C:8D:61:31:F0, addr type: public attempt 1
[2017-01-26 18:37:55][DEBUG] : Connecting : C4:7C:8D:61:31:F0 with bluetooth 0
[2017-01-26 18:38:33][DEBUG] : Send to jeedom : {'heartbeat': 1, 'source': 'local'}
[2017-01-26 18:38:33][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-01-26 18:38:33][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=iKsVscapM5qkPLvfXa9PLyWpdB7hZCVFJYSE3vIgSQvF6uP9 HTTP/1.1" 200 0
[2017-01-26 18:38:36][DEBUG] : Failed to connect to peripheral C4:7C:8D:61:31:F0, addr type: public attempt 1
[2017-01-26 18:38:37][DEBUG] : Connecting : C4:7C:8D:61:31:F0 with bluetooth 0
Quand je fait bluetoothctl et power on ca a l'air de remarcher correctement.
On dirait que le bluetooth se desactive de mon rasberry à partir d'un certain temps.
Quelqu'un a-t'il déjà eu ce soucis ou une idée de comment le resoudre ?
Merci par avance