J'ai reçu mon Miflora aujourd hui, et donc j'essaye ce plug in !
Cela ne fonctionne pas avec la derniere version choper sur github en date du 6/12/2016
Voici les logs :
Code : Tout sélectionner
[2016-12-06 15:00:01][DEBUG] : mi flora mac add:C4:7C:8D:61:FA:0C
[2016-12-06 15:00:01][DEBUG] : macAdd:C4:7C:8D:61:FA:0C
[2016-12-06 15:00:01][DEBUG] : is_deporte:local
[2016-12-06 15:00:01][DEBUG] : local call
[2016-12-06 15:00:04][DEBUG] : MiFloraData: connect error: Connection reset by peer (104)
[2016-12-06 15:00:04][ERROR] : erreur: gatttool ne fonctionne pas - connect error: Connection reset by peer (104)
[2016-12-06 15:00:04][DEBUG] : mi flora data::
[2016-12-06 15:00:09][DEBUG] : mi flora data is empty, trying again, nb retry:1
[2016-12-06 15:00:09][DEBUG] : macAdd:C4:7C:8D:61:FA:0C
[2016-12-06 15:00:09][DEBUG] : is_deporte:local
[2016-12-06 15:00:09][DEBUG] : local call
[2016-12-06 15:00:13][DEBUG] : MiFloraData: connect error: Connection reset by peer (104)
[2016-12-06 15:00:13][ERROR] : erreur: gatttool ne fonctionne pas - connect error: Connection reset by peer (104)
[2016-12-06 15:00:13][DEBUG] : mi flora data::
[2016-12-06 15:00:18][DEBUG] : mi flora data is empty, trying again, nb retry:2
[2016-12-06 15:00:18][DEBUG] : macAdd:C4:7C:8D:61:FA:0C
[2016-12-06 15:00:18][DEBUG] : is_deporte:local
[2016-12-06 15:00:18][DEBUG] : local call
[2016-12-06 15:00:23][DEBUG] : MiFloraData: connect error: Connection reset by peer (104)
[2016-12-06 15:00:23][ERROR] : erreur: gatttool ne fonctionne pas - connect error: Connection reset by peer (104)
[2016-12-06 15:00:23][DEBUG] : mi flora data::
[2016-12-06 15:00:28][DEBUG] : mi flora data is empty, trying again, nb retry:3
[2016-12-06 15:00:28][DEBUG] : macAdd:C4:7C:8D:61:FA:0C
[2016-12-06 15:00:28][DEBUG] : is_deporte:local
[2016-12-06 15:00:28][DEBUG] : local call
[2016-12-06 15:00:31][DEBUG] : MiFloraData: connect error: Connection reset by peer (104)
[2016-12-06 15:00:31][ERROR] : erreur: gatttool ne fonctionne pas - connect error: Connection reset by peer (104)
[2016-12-06 15:00:31][DEBUG] : mi flora data::
[2016-12-06 15:00:36][WARNING] : mi flora data is empty, retried 4 times, stop
Code : Tout sélectionner
root@jeedom:/var/www/html/plugins/MiFlora/3rparty# gatttool -b C4:7C:8D:61:FA:0C --char-read -a 0x35
Characteristic value/descriptor: f1 00 00 e2 04 00 00 04 00 00 00 00 00 00 00 00
Code : Tout sélectionner
nico@maison:~/miflora$ python3 demo.py
Getting data from Mi Flora
FW: 2.6.2
Name: Flower mate
Temperature: 23.3
Moisture: 3
Light: 1124
Conductivity: 0
Battery: 100