Ce Forum passera en lecture seule en janvier 2020
Image
Merci de vous rendre sur https://community.jeedom.com maintenant pour vos prochains postes ;)

Plugin blea

Avatar de l’utilisateur
cedricdirr
Timide
Messages : 90
Inscription : 22 juil. 2016, 11:13
Localisation : Dublin
Contact :

Re: Plugin blea

Message par cedricdirr » 07 avr. 2017, 23:16

Bonjour a tous, bonjour Ludovic:
Je suis en pleine migration sur nuc, j'ai donc été acheter un dongle bluetooth (V 2.1)
Je m'arrache les cheveux, lu les 89 pages du forums plus une bonne 20taine de tutos et......
D'apres ce que tu sa dit precemment sur ce fil, le plugin n'accepte pas ma version de cle bluetooth (2.19)??
---------------------
Message par sarakha63 » 27 Déc 2016, 18:55
Oui la tu as une clé bluetooth 2 donc ca marchera pas.
---------------------

# hcitool lescan
Set scan parameters failed: Input/output error
# dmesg | grep Bluetooth
Bluetooth: Core ver 2.19

Toutes mes squeezebox RPI3 ont le bluetooth natif, dont mon ancien jeedom, avec lequel le plugin fonctionnait parfaitement :'(
:'(

Aucune autre alternative que d'acheter un nouveau dongle?
Merci beucoup de votre aide!
Cedric
Mon Blog ICI: http://domotation.blogspot.ie
Tuto: Connaitre la dispo de vos stations de velib preferees (ici DublinBikes)
viewtopic.php?f=59&t=5924&hilit=dublin& ... 40#p470672

Deennoo
Timide
Messages : 450
Inscription : 05 nov. 2015, 13:51

Re: Plugin blea

Message par Deennoo » 07 avr. 2017, 23:33

cedricdirr a écrit :Bonjour a tous, bonjour Ludovic:
Je suis en pleine migration sur nuc, j'ai donc été acheter un dongle bluetooth (V 2.1)
Je m'arrache les cheveux, lu les 89 pages du forums plus une bonne 20taine de tutos et......
D'apres ce que tu sa dit precemment sur ce fil, le plugin n'accepte pas ma version de cle bluetooth (2.19)??
---------------------
Message par sarakha63 » 27 Déc 2016, 18:55
Oui la tu as une clé bluetooth 2 donc ca marchera pas.
---------------------

# hcitool lescan
Set scan parameters failed: Input/output error
# dmesg | grep Bluetooth
Bluetooth: Core ver 2.19

Toutes mes squeezebox RPI3 ont le bluetooth natif, dont mon ancien jeedom, avec lequel le plugin fonctionnait parfaitement :'(
:'(

Aucune autre alternative que d'acheter un nouveau dongle?
Merci beucoup de votre aide!
Cedric
Et bien non le btle n'existe qu'à partir du bluetooth 4.

Avatar de l’utilisateur
cedricdirr
Timide
Messages : 90
Inscription : 22 juil. 2016, 11:13
Localisation : Dublin
Contact :

Re: Plugin blea

Message par cedricdirr » 07 avr. 2017, 23:38

Merci beaucoup de ta reactivite!
C'est commandé ^^

cordialement
Cedric
Mon Blog ICI: http://domotation.blogspot.ie
Tuto: Connaitre la dispo de vos stations de velib preferees (ici DublinBikes)
viewtopic.php?f=59&t=5924&hilit=dublin& ... 40#p470672

Avatar de l’utilisateur
Shyrka973
Actif
Messages : 555
Inscription : 18 août 2014, 18:17
Localisation : Kourou / Guyane

Re: Plugin blea

Message par Shyrka973 » 08 avr. 2017, 19:42

Bonjour,

Dans la page Santé du plugin, dans la colonne "Batterie", j'ai l'icône "Secteur" pour les modules à pile:
Image

C'est le cas chez vous ?

Sur une copie d'écran de cette page "Santé" faite par @Sarakha63, on voit bien le niveau des piles devant les modules à pile:
Image

J'ai vérifié que pour les NUT, je n'ai pas de remonté de batterie mais pour les Mi Flora, oui.

Evidemment, cela n'empêche pas au plugin de fonctionner.
DIY Proxmox 5.1 / i3-6100U @ 2.30GHz / 4Go RAM / 128 Go SSD : Jeedom 3.2.12 - Stretch
Protocol: Z-Wave, EnOcean, RFXtrx433E, Xiaomi, BLEA, MQTT, ESPeasy, Jeeduino, Abeille

Avatar de l’utilisateur
snorlax
Timide
Messages : 202
Inscription : 01 févr. 2016, 15:16

Re: Plugin blea

Message par snorlax » 08 avr. 2017, 21:34

Pareil pour moi : prises secteur pour mes Nut mini :(

Avatar de l’utilisateur
cedricdirr
Timide
Messages : 90
Inscription : 22 juil. 2016, 11:13
Localisation : Dublin
Contact :

Re: Plugin blea

Message par cedricdirr » 10 avr. 2017, 09:24

m4x91 a écrit :
m4x91 a écrit :Yop !
J'ai une galère sur l'installation sur mon antenne déporté, dépendance local et distante ok mais quand je lance le démon distant, il se coupe avec l'erreur "Error: importing module from jeedom folder"

Vous avez une idée ? Car j'ai pas de trace :(

PS : Vu que j'ai pas de module sur mon Jeedom le démon local est "NOK Le port n'est pas configuré"
Up :)

J'ai testé avec une antenne local pour avoir le démon OK mais ça change rien, on dirait bien un problème de droit, j'ai pourtant testé avec le login root au cas ou mais pareil :evil:
Bonjour, meme probleme pour moi, as tu trouvé la solution stp?
Mon Blog ICI: http://domotation.blogspot.ie
Tuto: Connaitre la dispo de vos stations de velib preferees (ici DublinBikes)
viewtopic.php?f=59&t=5924&hilit=dublin& ... 40#p470672

broshet
Timide
Messages : 171
Inscription : 04 juin 2015, 13:29
Contact :

Re: Plugin blea

Message par broshet » 10 avr. 2017, 13:33

Salut

J'ai beau chercher, je ne comprend toujours pas ce problème qui perdure. BLEA fonctionne sur mon RPI3 lorsque mais il s'arrête dès le début.

Si je désactive tout le module dans JEEDOM et que je le redémarre, il détecte bien mes deux MIFLORA et me retourne les valeurs ... par contre à partir de là, il ne remonte plus rien !

A noter que mon RPI3 est posé juste à côté des deux capteurs !

Voici mes logs :

BLEA (à l'activation du module) :

Code : Tout sélectionner

[2017-04-10 13:25:35][INFO] : Début d'activation du plugin
[2017-04-10 13:25:36][INFO] : Info sur le démon : Array (     [log] => blea     [state] => nok     [launchable] => ok     [launchable_message] => Gestion automatique désactivée     [auto] => 0     [last_launch] => 2017-04-10 13:24:26 ) 
[2017-04-10 13:25:36][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=blea function=install callInstallFunction=1

BLEA_Local (Après démarrage du Daémon)

Code : Tout sélectionner

[2017-04-10 13:27:04][INFO] : Start blead
[2017-04-10 13:27:04][INFO] : Log level : debug
[2017-04-10 13:27:04][INFO] : Socket port : 55008
[2017-04-10 13:27:04][INFO] : Socket host : 127.0.0.1
[2017-04-10 13:27:04][INFO] : Device : hci0
[2017-04-10 13:27:04][INFO] : PID file : /tmp/blead.pid
[2017-04-10 13:27:04][INFO] : Apikey : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[2017-04-10 13:27:04][INFO] : Callback : http://127.0.0.1:80/plugins/blea/core/php/jeeBlea.php
[2017-04-10 13:27:04][INFO] : Cycle : 0.3
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.dotti
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.fitbit
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.gigaset
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.hector
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.itag
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.jinlin
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.logiswitch
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.miband
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.miband2
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.miflora
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.miscale
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.myfox
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.niu
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.noke
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.nut
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.playbulb
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.runtastic
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.smartplug
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.tb05
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.ticatag
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.wistiki
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.yeelight
[2017-04-10 13:27:04][DEBUG] : Writing PID 15040 to /tmp/blead.pid
[2017-04-10 13:27:04][DEBUG] : Init request module v2.4.3
[2017-04-10 13:27:04][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:27:04][DEBUG] : "GET /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:27:04][DEBUG] : Socket interface started
[2017-04-10 13:27:04][INFO] : Start listening...
[2017-04-10 13:27:04][DEBUG] : LoopNetServer Thread started
[2017-04-10 13:27:04][INFO] : Preparing Scanner...
[2017-04-10 13:27:04][DEBUG] : Listening on: [127.0.0.1:55008]
[2017-04-10 13:27:04][DEBUG] : Read Socket Thread Launched
[2017-04-10 13:27:04][DEBUG] : Send to jeedom :  {'source': 'local', 'learn_mode': 0}
[2017-04-10 13:27:04][DEBUG] : Read Device Thread Launched
[2017-04-10 13:27:04][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:27:04][DEBUG] : Heartbeat Thread Launched
[2017-04-10 13:27:04][DEBUG] : Send to jeedom :  {'started': 1, 'source': 'local'}
[2017-04-10 13:27:04][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:27:04][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:27:04][DEBUG] : Client connected to [127.0.0.1:60042]
[2017-04-10 13:27:04][DEBUG] : Message read from socket: {"apikey":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","cmd":"add","device":{"id":"C4:7C:8D:62:04:71","delay":"18000","needsrefresh":1,"name":"miflora","refreshlist":[],"islocked":0,"emitterallowed":"all","refresherallowed":"all"}}
[2017-04-10 13:27:04][DEBUG] : Client disconnected from [127.0.0.1:60042]
[2017-04-10 13:27:04][DEBUG] : Client connected to [127.0.0.1:60044]
[2017-04-10 13:27:04][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:27:04][DEBUG] : Message read from socket: {"apikey":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","cmd":"add","device":{"id":"C4:7C:8D:62:07:AC","delay":"18000","needsrefresh":1,"name":"miflora","refreshlist":[],"islocked":0,"emitterallowed":"all","refresherallowed":"all"}}
[2017-04-10 13:27:04][DEBUG] : Client disconnected from [127.0.0.1:60044]
[2017-04-10 13:27:04][WARNING] : Exception on scanner (trying to resolve by myself 6): Failed to execute mgmt cmd 'scanend'
[2017-04-10 13:27:05][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2017-04-10 13:27:05][DEBUG] : Received command from jeedom : add
[2017-04-10 13:27:05][DEBUG] : Add device : {u'needsrefresh': 1, u'name': u'miflora', u'emitterallowed': u'all', u'delay': u'18000', u'refresherallowed': u'all', u'islocked': 0, u'refreshlist': [], u'id': u'C4:7C:8D:62:04:71'}
[2017-04-10 13:27:05][DEBUG] : [(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'95fe'), (22, '16b Service Data', u'95fe3102980007ac07628d7cc40d'), (9, 'Complete Local Name', u'Flower care')] True public c4:7c:8d:62:07:ac
[2017-04-10 13:27:05][DEBUG] : This is a miflora device c4:7c:8d:62:07:ac
[2017-04-10 13:27:05][DEBUG] : It's a known packet but not decoded because this device is not Included and I'am not in learn mode c4:7c:8d:62:07:ac
[2017-04-10 13:27:05][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2017-04-10 13:27:05][DEBUG] : Received command from jeedom : add
[2017-04-10 13:27:05][DEBUG] : Add device : {u'needsrefresh': 1, u'name': u'miflora', u'emitterallowed': u'all', u'delay': u'18000', u'refresherallowed': u'all', u'islocked': 0, u'refreshlist': [], u'id': u'C4:7C:8D:62:07:AC'}
[2017-04-10 13:27:05][INFO] : Attempt to recover successful, reseting counter
[2017-04-10 13:27:05][DEBUG] : [(1, 'Flags', u'06'), (255, 'Manufacturer', u'0100c6495a7fc413'), (7, 'Complete 128b Services', u'9ecadc240ee5a9e093f3a3b50100406e')] True random c6:49:5a:7f:c4:13
[2017-04-10 13:27:05][DEBUG] : It's an unknown packet but not sent because this device is not Included and I'am not in learn mode c6:49:5a:7f:c4:13
[2017-04-10 13:27:05][DEBUG] : [(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'95fe'), (22, '16b Service Data', u'95fe310298004b7104628d7cc40d'), (9, 'Complete Local Name', u'Flower care')] True public c4:7c:8d:62:04:71
[2017-04-10 13:27:05][DEBUG] : This is a miflora device c4:7c:8d:62:04:71
[2017-04-10 13:27:05][DEBUG] : Send to jeedom : {u'devices': {u'C4:7C:8D:62:04:71': {'name': u'Flower care', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'95fe'), (22, '16b Service Data', u'95fe310298004b7104628d7cc40d'), (9, 'Complete Local Name', u'Flower care')]", 'rssi': -72, 'type': 'miflora', 'id': u'C4:7C:8D:62:04:71', 'present': 1}}}
[2017-04-10 13:27:05][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:27:06][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:27:07][INFO] : Attempt to recover successful, reseting counter
[2017-04-10 13:27:09][DEBUG] : This is a miflora device c4:7c:8d:62:07:ac
[2017-04-10 13:27:09][DEBUG] : Send to jeedom : {u'devices': {u'C4:7C:8D:62:07:AC': {'name': u'Flower care', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'95fe'), (22, '16b Service Data', u'95fe3102980007ac07628d7cc40d'), (9, 'Complete Local Name', u'Flower care')]", 'rssi': -63, 'type': 'miflora', 'id': u'C4:7C:8D:62:07:AC', 'present': 1}}}
[2017-04-10 13:27:09][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:27:09][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:27:13][DEBUG] : [(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'0d180f18'), (9, 'Complete Local Name', u'Geonaute BLE HRM')] True public 20:cd:39:97:58:3b
[2017-04-10 13:27:13][DEBUG] : It's an unknown packet but not sent because this device is not Included and I'am not in learn mode 20:cd:39:97:58:3b
BLEA_Local (Après demande de Refresh - Le composant reste actualisé au 06/04 pas à la date du jour)

Code : Tout sélectionner

[2017-04-10 13:28:00][DEBUG] : Send to jeedom :  {'heartbeat': 1, 'source': 'local'}
[2017-04-10 13:28:00][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:28:00][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:28:56][DEBUG] : Send to jeedom :  {'heartbeat': 1, 'source': 'local'}
[2017-04-10 13:28:56][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:28:56][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:29:04][DEBUG] : Connecting : C4:7C:8D:62:07:AC with bluetooth 0
[2017-04-10 13:29:44][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:07:AC, addr type: public attempt 1
[2017-04-10 13:29:45][DEBUG] : Connecting : C4:7C:8D:62:07:AC with bluetooth 0
[2017-04-10 13:29:49][DEBUG] : Client connected to [127.0.0.1:60064]
[2017-04-10 13:29:49][DEBUG] : Message read from socket: {"apikey":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","cmd":"refresh","device":{"id":"C4:7C:8D:62:04:71"},"command":{"device":{"id":"C4:7C:8D:62:04:71","delay":"18000","needsrefresh":1,"name":"miflora"},"name":"miflora"}}
[2017-04-10 13:29:49][DEBUG] : Client disconnected from [127.0.0.1:60064]
[2017-04-10 13:29:49][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2017-04-10 13:29:49][DEBUG] : Received command from jeedom : refresh
[2017-04-10 13:29:49][DEBUG] : Attempt an action on a device
[2017-04-10 13:29:49][DEBUG] : Thread Launched
[2017-04-10 13:29:49][DEBUG] : Attempt to refresh values
[2017-04-10 13:29:49][DEBUG] : Connecting : C4:7C:8D:62:04:71 with bluetooth 0
[2017-04-10 13:29:52][DEBUG] : Send to jeedom :  {'heartbeat': 1, 'source': 'local'}
[2017-04-10 13:29:52][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:29:52][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:30:26][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:07:AC, addr type: public attempt 1
[2017-04-10 13:30:27][DEBUG] : Connecting : C4:7C:8D:62:04:71 with bluetooth 0
[2017-04-10 13:30:27][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:04:71, addr type: public attempt 1
[2017-04-10 13:30:28][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:04:71, addr type: public attempt 2
[2017-04-10 13:30:29][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:04:71, addr type: public attempt 3
[2017-04-10 13:30:29][ERROR] : 'str' object has no attribute 'disconnect'
[2017-04-10 13:30:29][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:04:71, addr type: public attempt 1
Il semble que si je change l'état de l'option "Autoriser l'inclusion de devices inconnus" cela fonctionne parfois une seule fois mais cela s'arretes ensuite ...

Avez vous une idée de ce qui ne va pas ?

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin blea

Message par nou » 10 avr. 2017, 16:17

Bonjour à tous,

je galère à mettre en place le plugin. Il est installé. la clé aussi.
j'ai essayé de chercher la réponse, mais en vain.
pour info, je suis sur une installation DIY (debian Jessie), à jour bien entendu

Code : Tout sélectionner

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 052: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 005: ID 0409:55aa NEC Corp. Hub
Bus 001 Device 054: ID 0658:0200 Sigma Designs, Inc.
Bus 001 Device 002: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 065: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 003 Device 064: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 003 Device 003: ID 0409:55aa NEC Corp. Hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Les dépendances sont installées :

Code : Tout sélectionner

Working dir is /tmp/bluepy
execute make -C ./bluepy clean
execute make -C bluepy
running build
running build_py
copying bluepy/bluepy-helper -> build/lib.linux-x86_64-2.7/bluepy
running install_lib
copying build/lib.linux-x86_64-2.7/bluepy/bluepy-helper -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/Makefile -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/bluepy-helper.c -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/bluez-src.tgz -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/uuids.json -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/__init__.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/blescan.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/btle.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/get_services.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/sensortag.py -> /usr/local/lib/python2.7/dist-packages/bluepy
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/blescan.py to blescan.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/btle.py to btle.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/get_services.py to get_services.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/sensortag.py to sensortag.pyc
running install_egg_info
running egg_info
creating bluepy.egg-info
writing bluepy.egg-info/PKG-INFO
writing top-level names to bluepy.egg-info/top_level.txt
writing dependency_links to bluepy.egg-info/dependency_links.txt
writing entry points to bluepy.egg-info/entry_points.txt
writing manifest file 'bluepy.egg-info/SOURCES.txt'
reading manifest file 'bluepy.egg-info/SOURCES.txt'
writing manifest file 'bluepy.egg-info/SOURCES.txt'
removing '/usr/local/lib/python2.7/dist-packages/bluepy-1.0.5.egg-info' (and everything under it)
Copying bluepy.egg-info to /usr/local/lib/python2.7/dist-packages/bluepy-1.0.5.egg-info
running install_scripts
Installing blescan script to /usr/local/bin
Installing sensortag script to /usr/local/bin
Everything is successfully installed!
Launch install of blea dependancy
Ign http://ftp.fr.debian.org jessie InRelease
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Hit http://ftp.fr.debian.org jessie-updates InRelease
Hit https://deb.nodesource.com jessie InRelease
Get:2 http://security.debian.org jessie/updates/main Sources [196 kB]
Hit https://deb.nodesource.com jessie/main Sources
Hit https://deb.nodesource.com jessie/main amd64 Packages
Get:3 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:4 https://deb.nodesource.com jessie/main Translation-fr [162 B]
Get:5 http://security.debian.org jessie/updates/non-free Sources [14 B]
Get:6 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:7 http://security.debian.org jessie/updates/contrib Sources [1439 B]
Get:8 https://deb.nodesource.com jessie/main Translation-fr [162 B]
Get:9 http://security.debian.org jessie/updates/main amd64 Packages [365 kB]
Get:10 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:11 https://deb.nodesource.com jessie/main Translation-fr [162 B]
Get:12 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:13 https://deb.nodesource.com jessie/main Translation-fr [162 B]
Get:14 https://deb.nodesource.com jessie/main Translation-en [162 B]
Ign https://deb.nodesource.com jessie/main Translation-en
Get:15 https://deb.nodesource.com jessie/main Translation-fr [162 B]
Ign https://deb.nodesource.com jessie/main Translation-fr
Get:16 http://security.debian.org jessie/updates/non-free amd64 Packages [14 B]
Hit http://ftp.fr.debian.org jessie Release.gpg
Get:17 http://security.debian.org jessie/updates/contrib amd64 Packages [2506 B]
Get:18 http://security.debian.org jessie/updates/contrib Translation-en [1211 B]
Hit http://ftp.fr.debian.org jessie-updates/main Sources
Get:19 http://security.debian.org jessie/updates/main Translation-en [201 kB]
Hit http://ftp.fr.debian.org jessie-updates/non-free Sources
Hit http://ftp.fr.debian.org jessie-updates/contrib Sources
Get:20 http://security.debian.org jessie/updates/non-free Translation-en [14 B]
Get:21 http://ftp.fr.debian.org jessie-updates/main amd64 Packages/DiffIndex [7408 B]
Get:22 http://ftp.fr.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
Hit http://ftp.fr.debian.org jessie-updates/contrib amd64 Packages
Hit http://ftp.fr.debian.org jessie-updates/contrib Translation-en
Get:23 http://ftp.fr.debian.org jessie-updates/main Translation-en/DiffIndex [2704 B]
Get:24 http://ftp.fr.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Hit http://ftp.fr.debian.org jessie Release
Hit http://ftp.fr.debian.org jessie/main Sources
Hit http://ftp.fr.debian.org jessie/non-free Sources
Hit http://ftp.fr.debian.org jessie/contrib Sources
Hit http://ftp.fr.debian.org jessie/main amd64 Packages
Hit http://ftp.fr.debian.org jessie/non-free amd64 Packages
Hit http://ftp.fr.debian.org jessie/contrib amd64 Packages
Hit http://ftp.fr.debian.org jessie/contrib Translation-en
Hit http://ftp.fr.debian.org jessie/main Translation-en
Hit http://ftp.fr.debian.org jessie/main Translation-fr
Hit http://ftp.fr.debian.org jessie/non-free Translation-en
Fetched 841 kB in 10s (80.6 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version.
python-dev is already the newest version.
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 118 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version.
libglib2.0-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 118 not upgraded.
Requirement already satisfied (use --upgrade to upgrade): pyudev in /usr/lib/python2.7/dist-packages
Cleaning up...
Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/lib/python2.7/dist-packages
Cleaning up...
Cloning into 'bluepy'...
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/bluepy
copying bluepy/sensortag.py -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/get_services.py -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/btle.py -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/blescan.py -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/__init__.py -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/uuids.json -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/bluez-src.tgz -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/bluepy-helper.c -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/Makefile -> build/lib.linux-x86_64-2.7/bluepy
running install
Working dir is /tmp/bluepy
execute make -C ./bluepy clean
execute make -C bluepy
running build
running build_py
copying bluepy/bluepy-helper -> build/lib.linux-x86_64-2.7/bluepy
running install_lib
copying build/lib.linux-x86_64-2.7/bluepy/bluepy-helper -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/Makefile -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/bluepy-helper.c -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/bluez-src.tgz -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/uuids.json -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/__init__.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/blescan.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/btle.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/get_services.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/sensortag.py -> /usr/local/lib/python2.7/dist-packages/bluepy
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/blescan.py to blescan.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/btle.py to btle.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/get_services.py to get_services.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/sensortag.py to sensortag.pyc
running install_egg_info
running egg_info
creating bluepy.egg-info
writing bluepy.egg-info/PKG-INFO
writing top-level names to bluepy.egg-info/top_level.txt
writing dependency_links to bluepy.egg-info/dependency_links.txt
writing entry points to bluepy.egg-info/entry_points.txt
writing manifest file 'bluepy.egg-info/SOURCES.txt'
reading manifest file 'bluepy.egg-info/SOURCES.txt'
writing manifest file 'bluepy.egg-info/SOURCES.txt'
removing '/usr/local/lib/python2.7/dist-packages/bluepy-1.0.5.egg-info' (and everything under it)
Copying bluepy.egg-info to /usr/local/lib/python2.7/dist-packages/bluepy-1.0.5.egg-info
running install_scripts
Installing blescan script to /usr/local/bin
Installing sensortag script to /usr/local/bin
Everything is successfully installed!
dans le Port clef bluetooth, je suis coincé en 'aucun',

quand je lance dans un terminal, blescan, voici le résultat :

Code : Tout sélectionner

Scanning for devices...
Traceback (most recent call last):
  File "/usr/local/bin/blescan", line 9, in <module>
    load_entry_point('bluepy==1.0.5', 'console_scripts', 'blescan')()
  File "/usr/local/lib/python2.7/dist-packages/bluepy/blescan.py", line 115, in main
    devices = scanner.scan(arg.timeout)
  File "/usr/local/lib/python2.7/dist-packages/bluepy/btle.py", line 670, in scan
    self.stop()
  File "/usr/local/lib/python2.7/dist-packages/bluepy/btle.py", line 619, in stop
    self._mgmtCmd("scanend")
  File "/usr/local/lib/python2.7/dist-packages/bluepy/btle.py", line 276, in _mgmtCmd
    "Failed to execute mgmt cmd '%s'" % (cmd))
bluepy.btle.BTLEException: Failed to execute mgmt cmd 'scanend'
Une idée ?

Merci

Avatar de l’utilisateur
cadavor
Actif
Messages : 1284
Inscription : 21 juin 2015, 22:00
Localisation : 34

Re: Plugin blea

Message par cadavor » 10 avr. 2017, 16:30

Réponse déjà donnée par certain plus tôt.

Déjà commencer par mettre à jour la distribution (118 not upgraded) :

Code : Tout sélectionner

sudo apt-get update -y && apt-get dist-upgrade -y
Ensuite si toujours rien dans la liste déroulante (après reboot), réinstaller bluez
Jeedom Stable 3.3
NUC Z83 + Aeotec Z-Stick Gen5
Z-Wave FGR + FGMS + FGDS + FGFS + FGK + FGWPE + ZW062 + ZW080
GH Mini + Orvibo AllOne + Playbulb + Miband2

Avatar de l’utilisateur
snorlax
Timide
Messages : 202
Inscription : 01 févr. 2016, 15:16

Re: Plugin blea

Message par snorlax » 10 avr. 2017, 16:47

Moi j'dirais plutôt :
sudo systemctl enable hciuart
sudo systemctl start hciuart
ce qui m'a sauvé avec le bluetooth intégré de mon RPi 3...

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin blea

Message par nou » 10 avr. 2017, 17:09

cadavor a écrit :Réponse déjà donnée par certain plus tôt.

Déjà commencer par mettre à jour la distribution (118 not upgraded) :

Code : Tout sélectionner

sudo apt-get update -y && apt-get dist-upgrade -y
Ensuite si toujours rien dans la liste déroulante (après reboot), réinstaller bluez

Merci, application en cours.

(pour le fait que la réponse était déjà postée, sorry, mais pas vu ! hard sur 90 pages :shock: )

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin blea

Message par nou » 10 avr. 2017, 17:25

alors, j'ai fait :
- mise à jour complète
- installation bluez
==> sans résultat

systemctl enable hciuart
==> Failed to execute operation: No such file or directory

broshet
Timide
Messages : 171
Inscription : 04 juin 2015, 13:29
Contact :

Re: Plugin blea

Message par broshet » 10 avr. 2017, 17:50

Bluetooth-pi est installé ?

Envoyé de mon Nexus 6P en utilisant Tapatalk

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin blea

Message par nou » 10 avr. 2017, 17:54

Sur un Nuc ?

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin blea

Message par nou » 10 avr. 2017, 17:56

Pas trouvé le paquet

broshet
Timide
Messages : 171
Inscription : 04 juin 2015, 13:29
Contact :

Re: Plugin blea

Message par broshet » 10 avr. 2017, 18:07

Désolé. C'est pi-bluetooth

Mais désolé j'avais pas vu que c'était un nuc....

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin blea

Message par nou » 10 avr. 2017, 18:08

idem

Avatar de l’utilisateur
kris1208
Actif
Messages : 661
Inscription : 18 juin 2015, 15:53
Contact :

Re: Plugin blea

Message par kris1208 » 10 avr. 2017, 18:41

nou a écrit :Bonjour à tous,

je galère à mettre en place le plugin. Il est installé. la clé aussi.
j'ai essayé de chercher la réponse, mais en vain.
pour info, je suis sur une installation DIY (debian Jessie), à jour bien entendu

Code : Tout sélectionner

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 052: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 005: ID 0409:55aa NEC Corp. Hub
Bus 001 Device 054: ID 0658:0200 Sigma Designs, Inc.
Bus 001 Device 002: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 065: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 003 Device 064: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 003 Device 003: ID 0409:55aa NEC Corp. Hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Les dépendances sont installées :

Code : Tout sélectionner

Working dir is /tmp/bluepy
execute make -C ./bluepy clean
execute make -C bluepy
running build
running build_py
copying bluepy/bluepy-helper -> build/lib.linux-x86_64-2.7/bluepy
running install_lib
copying build/lib.linux-x86_64-2.7/bluepy/bluepy-helper -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/Makefile -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/bluepy-helper.c -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/bluez-src.tgz -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/uuids.json -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/__init__.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/blescan.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/btle.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/get_services.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/sensortag.py -> /usr/local/lib/python2.7/dist-packages/bluepy
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/blescan.py to blescan.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/btle.py to btle.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/get_services.py to get_services.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/sensortag.py to sensortag.pyc
running install_egg_info
running egg_info
creating bluepy.egg-info
writing bluepy.egg-info/PKG-INFO
writing top-level names to bluepy.egg-info/top_level.txt
writing dependency_links to bluepy.egg-info/dependency_links.txt
writing entry points to bluepy.egg-info/entry_points.txt
writing manifest file 'bluepy.egg-info/SOURCES.txt'
reading manifest file 'bluepy.egg-info/SOURCES.txt'
writing manifest file 'bluepy.egg-info/SOURCES.txt'
removing '/usr/local/lib/python2.7/dist-packages/bluepy-1.0.5.egg-info' (and everything under it)
Copying bluepy.egg-info to /usr/local/lib/python2.7/dist-packages/bluepy-1.0.5.egg-info
running install_scripts
Installing blescan script to /usr/local/bin
Installing sensortag script to /usr/local/bin
Everything is successfully installed!
Launch install of blea dependancy
Ign http://ftp.fr.debian.org jessie InRelease
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Hit http://ftp.fr.debian.org jessie-updates InRelease
Hit https://deb.nodesource.com jessie InRelease
Get:2 http://security.debian.org jessie/updates/main Sources [196 kB]
Hit https://deb.nodesource.com jessie/main Sources
Hit https://deb.nodesource.com jessie/main amd64 Packages
Get:3 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:4 https://deb.nodesource.com jessie/main Translation-fr [162 B]
Get:5 http://security.debian.org jessie/updates/non-free Sources [14 B]
Get:6 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:7 http://security.debian.org jessie/updates/contrib Sources [1439 B]
Get:8 https://deb.nodesource.com jessie/main Translation-fr [162 B]
Get:9 http://security.debian.org jessie/updates/main amd64 Packages [365 kB]
Get:10 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:11 https://deb.nodesource.com jessie/main Translation-fr [162 B]
Get:12 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:13 https://deb.nodesource.com jessie/main Translation-fr [162 B]
Get:14 https://deb.nodesource.com jessie/main Translation-en [162 B]
Ign https://deb.nodesource.com jessie/main Translation-en
Get:15 https://deb.nodesource.com jessie/main Translation-fr [162 B]
Ign https://deb.nodesource.com jessie/main Translation-fr
Get:16 http://security.debian.org jessie/updates/non-free amd64 Packages [14 B]
Hit http://ftp.fr.debian.org jessie Release.gpg
Get:17 http://security.debian.org jessie/updates/contrib amd64 Packages [2506 B]
Get:18 http://security.debian.org jessie/updates/contrib Translation-en [1211 B]
Hit http://ftp.fr.debian.org jessie-updates/main Sources
Get:19 http://security.debian.org jessie/updates/main Translation-en [201 kB]
Hit http://ftp.fr.debian.org jessie-updates/non-free Sources
Hit http://ftp.fr.debian.org jessie-updates/contrib Sources
Get:20 http://security.debian.org jessie/updates/non-free Translation-en [14 B]
Get:21 http://ftp.fr.debian.org jessie-updates/main amd64 Packages/DiffIndex [7408 B]
Get:22 http://ftp.fr.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
Hit http://ftp.fr.debian.org jessie-updates/contrib amd64 Packages
Hit http://ftp.fr.debian.org jessie-updates/contrib Translation-en
Get:23 http://ftp.fr.debian.org jessie-updates/main Translation-en/DiffIndex [2704 B]
Get:24 http://ftp.fr.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Hit http://ftp.fr.debian.org jessie Release
Hit http://ftp.fr.debian.org jessie/main Sources
Hit http://ftp.fr.debian.org jessie/non-free Sources
Hit http://ftp.fr.debian.org jessie/contrib Sources
Hit http://ftp.fr.debian.org jessie/main amd64 Packages
Hit http://ftp.fr.debian.org jessie/non-free amd64 Packages
Hit http://ftp.fr.debian.org jessie/contrib amd64 Packages
Hit http://ftp.fr.debian.org jessie/contrib Translation-en
Hit http://ftp.fr.debian.org jessie/main Translation-en
Hit http://ftp.fr.debian.org jessie/main Translation-fr
Hit http://ftp.fr.debian.org jessie/non-free Translation-en
Fetched 841 kB in 10s (80.6 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version.
python-dev is already the newest version.
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 118 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version.
libglib2.0-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 118 not upgraded.
Requirement already satisfied (use --upgrade to upgrade): pyudev in /usr/lib/python2.7/dist-packages
Cleaning up...
Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/lib/python2.7/dist-packages
Cleaning up...
Cloning into 'bluepy'...
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/bluepy
copying bluepy/sensortag.py -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/get_services.py -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/btle.py -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/blescan.py -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/__init__.py -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/uuids.json -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/bluez-src.tgz -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/bluepy-helper.c -> build/lib.linux-x86_64-2.7/bluepy
copying bluepy/Makefile -> build/lib.linux-x86_64-2.7/bluepy
running install
Working dir is /tmp/bluepy
execute make -C ./bluepy clean
execute make -C bluepy
running build
running build_py
copying bluepy/bluepy-helper -> build/lib.linux-x86_64-2.7/bluepy
running install_lib
copying build/lib.linux-x86_64-2.7/bluepy/bluepy-helper -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/Makefile -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/bluepy-helper.c -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/bluez-src.tgz -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/uuids.json -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/__init__.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/blescan.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/btle.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/get_services.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-x86_64-2.7/bluepy/sensortag.py -> /usr/local/lib/python2.7/dist-packages/bluepy
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/blescan.py to blescan.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/btle.py to btle.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/get_services.py to get_services.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/sensortag.py to sensortag.pyc
running install_egg_info
running egg_info
creating bluepy.egg-info
writing bluepy.egg-info/PKG-INFO
writing top-level names to bluepy.egg-info/top_level.txt
writing dependency_links to bluepy.egg-info/dependency_links.txt
writing entry points to bluepy.egg-info/entry_points.txt
writing manifest file 'bluepy.egg-info/SOURCES.txt'
reading manifest file 'bluepy.egg-info/SOURCES.txt'
writing manifest file 'bluepy.egg-info/SOURCES.txt'
removing '/usr/local/lib/python2.7/dist-packages/bluepy-1.0.5.egg-info' (and everything under it)
Copying bluepy.egg-info to /usr/local/lib/python2.7/dist-packages/bluepy-1.0.5.egg-info
running install_scripts
Installing blescan script to /usr/local/bin
Installing sensortag script to /usr/local/bin
Everything is successfully installed!
dans le Port clef bluetooth, je suis coincé en 'aucun',

quand je lance dans un terminal, blescan, voici le résultat :

Code : Tout sélectionner

Scanning for devices...
Traceback (most recent call last):
  File "/usr/local/bin/blescan", line 9, in <module>
    load_entry_point('bluepy==1.0.5', 'console_scripts', 'blescan')()
  File "/usr/local/lib/python2.7/dist-packages/bluepy/blescan.py", line 115, in main
    devices = scanner.scan(arg.timeout)
  File "/usr/local/lib/python2.7/dist-packages/bluepy/btle.py", line 670, in scan
    self.stop()
  File "/usr/local/lib/python2.7/dist-packages/bluepy/btle.py", line 619, in stop
    self._mgmtCmd("scanend")
  File "/usr/local/lib/python2.7/dist-packages/bluepy/btle.py", line 276, in _mgmtCmd
    "Failed to execute mgmt cmd '%s'" % (cmd))
bluepy.btle.BTLEException: Failed to execute mgmt cmd 'scanend'
Une idée ?

Merci
C'est un RASP 3 ??
Moi aussi j'ai galeré, avec plein de commande essayé mais apres un reboot le bluetooth du rasp est bien vu, j'ai essayé ca :
sudo apt-get install bluetooth-pi
sudo apt-get install bluez bluez-firmware
sudo apt-get install blueman
bluetoothctl
power on
agent on
scan on
exit
sudo reboot

et d'autre commande que tu trouvera sur ce post.
courage moi ca a fonctionné. plein d'info sur ce forum.

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin blea

Message par nou » 10 avr. 2017, 18:57

C'est un dongle bt sur Nuc

broshet
Timide
Messages : 171
Inscription : 04 juin 2015, 13:29
Contact :

Re: Plugin blea

Message par broshet » 10 avr. 2017, 21:09

broshet a écrit :Salut

J'ai beau chercher, je ne comprend toujours pas ce problème qui perdure. BLEA fonctionne sur mon RPI3 lorsque mais il s'arrête dès le début.

Si je désactive tout le module dans JEEDOM et que je le redémarre, il détecte bien mes deux MIFLORA et me retourne les valeurs ... par contre à partir de là, il ne remonte plus rien !

A noter que mon RPI3 est posé juste à côté des deux capteurs !

Voici mes logs :

BLEA (à l'activation du module) :

Code : Tout sélectionner

[2017-04-10 13:25:35][INFO] : Début d'activation du plugin
[2017-04-10 13:25:36][INFO] : Info sur le démon : Array (     [log] => blea     [state] => nok     [launchable] => ok     [launchable_message] => Gestion automatique désactivée     [auto] => 0     [last_launch] => 2017-04-10 13:24:26 ) 
[2017-04-10 13:25:36][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=blea function=install callInstallFunction=1

BLEA_Local (Après démarrage du Daémon)

Code : Tout sélectionner

[2017-04-10 13:27:04][INFO] : Start blead
[2017-04-10 13:27:04][INFO] : Log level : debug
[2017-04-10 13:27:04][INFO] : Socket port : 55008
[2017-04-10 13:27:04][INFO] : Socket host : 127.0.0.1
[2017-04-10 13:27:04][INFO] : Device : hci0
[2017-04-10 13:27:04][INFO] : PID file : /tmp/blead.pid
[2017-04-10 13:27:04][INFO] : Apikey : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[2017-04-10 13:27:04][INFO] : Callback : http://127.0.0.1:80/plugins/blea/core/php/jeeBlea.php
[2017-04-10 13:27:04][INFO] : Cycle : 0.3
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.dotti
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.fitbit
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.gigaset
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.hector
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.itag
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.jinlin
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.logiswitch
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.miband
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.miband2
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.miflora
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.miscale
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.myfox
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.niu
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.noke
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.nut
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.playbulb
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.runtastic
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.smartplug
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.tb05
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.ticatag
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.wistiki
[2017-04-10 13:27:04][INFO] : Import de la configuration devices.yeelight
[2017-04-10 13:27:04][DEBUG] : Writing PID 15040 to /tmp/blead.pid
[2017-04-10 13:27:04][DEBUG] : Init request module v2.4.3
[2017-04-10 13:27:04][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:27:04][DEBUG] : "GET /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:27:04][DEBUG] : Socket interface started
[2017-04-10 13:27:04][INFO] : Start listening...
[2017-04-10 13:27:04][DEBUG] : LoopNetServer Thread started
[2017-04-10 13:27:04][INFO] : Preparing Scanner...
[2017-04-10 13:27:04][DEBUG] : Listening on: [127.0.0.1:55008]
[2017-04-10 13:27:04][DEBUG] : Read Socket Thread Launched
[2017-04-10 13:27:04][DEBUG] : Send to jeedom :  {'source': 'local', 'learn_mode': 0}
[2017-04-10 13:27:04][DEBUG] : Read Device Thread Launched
[2017-04-10 13:27:04][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:27:04][DEBUG] : Heartbeat Thread Launched
[2017-04-10 13:27:04][DEBUG] : Send to jeedom :  {'started': 1, 'source': 'local'}
[2017-04-10 13:27:04][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:27:04][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:27:04][DEBUG] : Client connected to [127.0.0.1:60042]
[2017-04-10 13:27:04][DEBUG] : Message read from socket: {"apikey":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","cmd":"add","device":{"id":"C4:7C:8D:62:04:71","delay":"18000","needsrefresh":1,"name":"miflora","refreshlist":[],"islocked":0,"emitterallowed":"all","refresherallowed":"all"}}
[2017-04-10 13:27:04][DEBUG] : Client disconnected from [127.0.0.1:60042]
[2017-04-10 13:27:04][DEBUG] : Client connected to [127.0.0.1:60044]
[2017-04-10 13:27:04][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:27:04][DEBUG] : Message read from socket: {"apikey":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","cmd":"add","device":{"id":"C4:7C:8D:62:07:AC","delay":"18000","needsrefresh":1,"name":"miflora","refreshlist":[],"islocked":0,"emitterallowed":"all","refresherallowed":"all"}}
[2017-04-10 13:27:04][DEBUG] : Client disconnected from [127.0.0.1:60044]
[2017-04-10 13:27:04][WARNING] : Exception on scanner (trying to resolve by myself 6): Failed to execute mgmt cmd 'scanend'
[2017-04-10 13:27:05][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2017-04-10 13:27:05][DEBUG] : Received command from jeedom : add
[2017-04-10 13:27:05][DEBUG] : Add device : {u'needsrefresh': 1, u'name': u'miflora', u'emitterallowed': u'all', u'delay': u'18000', u'refresherallowed': u'all', u'islocked': 0, u'refreshlist': [], u'id': u'C4:7C:8D:62:04:71'}
[2017-04-10 13:27:05][DEBUG] : [(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'95fe'), (22, '16b Service Data', u'95fe3102980007ac07628d7cc40d'), (9, 'Complete Local Name', u'Flower care')] True public c4:7c:8d:62:07:ac
[2017-04-10 13:27:05][DEBUG] : This is a miflora device c4:7c:8d:62:07:ac
[2017-04-10 13:27:05][DEBUG] : It's a known packet but not decoded because this device is not Included and I'am not in learn mode c4:7c:8d:62:07:ac
[2017-04-10 13:27:05][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2017-04-10 13:27:05][DEBUG] : Received command from jeedom : add
[2017-04-10 13:27:05][DEBUG] : Add device : {u'needsrefresh': 1, u'name': u'miflora', u'emitterallowed': u'all', u'delay': u'18000', u'refresherallowed': u'all', u'islocked': 0, u'refreshlist': [], u'id': u'C4:7C:8D:62:07:AC'}
[2017-04-10 13:27:05][INFO] : Attempt to recover successful, reseting counter
[2017-04-10 13:27:05][DEBUG] : [(1, 'Flags', u'06'), (255, 'Manufacturer', u'0100c6495a7fc413'), (7, 'Complete 128b Services', u'9ecadc240ee5a9e093f3a3b50100406e')] True random c6:49:5a:7f:c4:13
[2017-04-10 13:27:05][DEBUG] : It's an unknown packet but not sent because this device is not Included and I'am not in learn mode c6:49:5a:7f:c4:13
[2017-04-10 13:27:05][DEBUG] : [(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'95fe'), (22, '16b Service Data', u'95fe310298004b7104628d7cc40d'), (9, 'Complete Local Name', u'Flower care')] True public c4:7c:8d:62:04:71
[2017-04-10 13:27:05][DEBUG] : This is a miflora device c4:7c:8d:62:04:71
[2017-04-10 13:27:05][DEBUG] : Send to jeedom : {u'devices': {u'C4:7C:8D:62:04:71': {'name': u'Flower care', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'95fe'), (22, '16b Service Data', u'95fe310298004b7104628d7cc40d'), (9, 'Complete Local Name', u'Flower care')]", 'rssi': -72, 'type': 'miflora', 'id': u'C4:7C:8D:62:04:71', 'present': 1}}}
[2017-04-10 13:27:05][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:27:06][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:27:07][INFO] : Attempt to recover successful, reseting counter
[2017-04-10 13:27:09][DEBUG] : This is a miflora device c4:7c:8d:62:07:ac
[2017-04-10 13:27:09][DEBUG] : Send to jeedom : {u'devices': {u'C4:7C:8D:62:07:AC': {'name': u'Flower care', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'95fe'), (22, '16b Service Data', u'95fe3102980007ac07628d7cc40d'), (9, 'Complete Local Name', u'Flower care')]", 'rssi': -63, 'type': 'miflora', 'id': u'C4:7C:8D:62:07:AC', 'present': 1}}}
[2017-04-10 13:27:09][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:27:09][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:27:13][DEBUG] : [(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'0d180f18'), (9, 'Complete Local Name', u'Geonaute BLE HRM')] True public 20:cd:39:97:58:3b
[2017-04-10 13:27:13][DEBUG] : It's an unknown packet but not sent because this device is not Included and I'am not in learn mode 20:cd:39:97:58:3b
BLEA_Local (Après demande de Refresh - Le composant reste actualisé au 06/04 pas à la date du jour)

Code : Tout sélectionner

[2017-04-10 13:28:00][DEBUG] : Send to jeedom :  {'heartbeat': 1, 'source': 'local'}
[2017-04-10 13:28:00][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:28:00][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:28:56][DEBUG] : Send to jeedom :  {'heartbeat': 1, 'source': 'local'}
[2017-04-10 13:28:56][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:28:56][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:29:04][DEBUG] : Connecting : C4:7C:8D:62:07:AC with bluetooth 0
[2017-04-10 13:29:44][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:07:AC, addr type: public attempt 1
[2017-04-10 13:29:45][DEBUG] : Connecting : C4:7C:8D:62:07:AC with bluetooth 0
[2017-04-10 13:29:49][DEBUG] : Client connected to [127.0.0.1:60064]
[2017-04-10 13:29:49][DEBUG] : Message read from socket: {"apikey":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","cmd":"refresh","device":{"id":"C4:7C:8D:62:04:71"},"command":{"device":{"id":"C4:7C:8D:62:04:71","delay":"18000","needsrefresh":1,"name":"miflora"},"name":"miflora"}}
[2017-04-10 13:29:49][DEBUG] : Client disconnected from [127.0.0.1:60064]
[2017-04-10 13:29:49][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2017-04-10 13:29:49][DEBUG] : Received command from jeedom : refresh
[2017-04-10 13:29:49][DEBUG] : Attempt an action on a device
[2017-04-10 13:29:49][DEBUG] : Thread Launched
[2017-04-10 13:29:49][DEBUG] : Attempt to refresh values
[2017-04-10 13:29:49][DEBUG] : Connecting : C4:7C:8D:62:04:71 with bluetooth 0
[2017-04-10 13:29:52][DEBUG] : Send to jeedom :  {'heartbeat': 1, 'source': 'local'}
[2017-04-10 13:29:52][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2017-04-10 13:29:52][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 0
[2017-04-10 13:30:26][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:07:AC, addr type: public attempt 1
[2017-04-10 13:30:27][DEBUG] : Connecting : C4:7C:8D:62:04:71 with bluetooth 0
[2017-04-10 13:30:27][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:04:71, addr type: public attempt 1
[2017-04-10 13:30:28][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:04:71, addr type: public attempt 2
[2017-04-10 13:30:29][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:04:71, addr type: public attempt 3
[2017-04-10 13:30:29][ERROR] : 'str' object has no attribute 'disconnect'
[2017-04-10 13:30:29][DEBUG] : Failed to connect to peripheral C4:7C:8D:62:04:71, addr type: public attempt 1
Il semble que si je change l'état de l'option "Autoriser l'inclusion de devices inconnus" cela fonctionne parfois une seule fois mais cela s'arretes ensuite ...

Avez vous une idée de ce qui ne va pas ?
J'avais pas vu mais j'ai cela en fin de log :

Code : Tout sélectionner

[2017-04-10 18:04:29][DEBUG] : Signal 15 caught, exiting...
[2017-04-10 18:04:29][DEBUG] : Shutdown
[2017-04-10 18:04:29][DEBUG] : Removing PID file /tmp/blead.pid
[2017-04-10 18:04:29][DEBUG] : Closing all potential bluetooth connection
[2017-04-10 18:04:29][DEBUG] : LoopNetServer Thread stopped
[2017-04-10 18:04:29][DEBUG] : Exit 0
Une idée ?

Répondre

Revenir vers « [Plugin Officiel] BLEA »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 1 invité