Re: miband 2
Publié : 20 juin 2018, 19:22
Bonjour,
Faut il écraser le fichier modifié à chaque maj de BLEA ? parce qu'une MAJ est tombée le 15 juin qui a du remettre le fichier original.
Bonjour,
salut voilà le log BLEAsuperbricolo a écrit : ↑15 juin 2018, 17:41tu peux poster les logs de ton scénario et les logs de blea en mode debug au moment du refreshcoke a écrit : ↑15 juin 2018, 14:11SAlut non pas du tout direct sur la smartsuperbricolo a écrit : ↑15 juin 2018, 00:04tu n'as pas une antenne déportée par hasard? Si c'est le cas, il faut également mettre à jour le fichier miband2.py
Code : Tout sélectionner
[2018-06-21 19:25:21][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-21 19:25:22][DEBUG] : SCANNER------[(1, 'Flags', u'04'), (255, 'Manufacturer', u'5701002d6c68075419b1195651910f444fe52902c1e6f16020e8')] True random c1:e6:f1:60:20:e8
[2018-06-21 19:25:22][DEBUG] : SCANNER------It's a unknown packet and I known this device so I send c1:e6:f1:60:20:e8
[2018-06-21 19:25:22][DEBUG] : {'name': '', 'source': 'local', 'rawdata': "[(1, 'Flags', u'04'), (255, 'Manufacturer', u'5701002d6c68075419b1195651910f444fe52902c1e6f16020e8')]", 'rssi': -88, 'type': 'default', 'id': u'C1:E6:F1:60:20:E8'}
[2018-06-21 19:25:22][DEBUG] : SCANNER------This is a miband2 device c1:e6:f1:60:20:e8
[2018-06-21 19:25:22][DEBUG] : SCANNER------This is a miband2 device c1:e6:f1:60:20:e8
[2018-06-21 19:25:22][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'C1:E6:F1:60:20:E8': {'name': u'MI Band 2', 'source': 'local', 'rawdata': "[(1, 'Flags', u'04'), (2, 'Incomplete 16b Services', u'e0fe'), (9, 'Complete Local Name', u'MI Band 2'), (22, '16b Service Data', u'e0fee8110000'), (255, 'Manufacturer', u'5701002d6c68075419b1195651910f444fe52902c1e6f16020e8')]", 'rssi': -89, 'type': 'miband2', 'id': u'C1:E6:F1:60:20:E8', 'present': 1}}}
[2018-06-21 19:25:22][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-21 19:25:23][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
Code : Tout sélectionner
------------------------------------
[2018-06-21 21:23:51][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:23:51][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:23:52][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609031 - 1529608645 > 780] = Faux
[2018-06-21 21:23:52][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:23:52][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:23:59][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:23:59][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:23:59][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609039 - 1529608645 > 780] = Faux
[2018-06-21 21:23:59][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:23:59][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:24:20][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:24:20][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:24:20][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609060 - 1529608645 > 780] = Faux
[2018-06-21 21:24:20][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:24:20][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:24:48][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:24:48][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:24:48][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609088 - 1529608645 > 780] = Faux
[2018-06-21 21:24:48][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:24:48][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:25:00][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:25:00][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:25:00][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609100 - 1529608645 > 780] = Faux
[2018-06-21 21:25:00][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:25:00][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:25:23][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:25:23][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:25:23][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609123 - 1529608645 > 780] = Faux
[2018-06-21 21:25:23][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:25:23][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:26:11][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:26:11][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:26:11][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609171 - 1529608645 > 780] = Faux
[2018-06-21 21:26:11][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:26:11][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:26:12][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:26:12][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:26:12][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609172 - 1529608645 > 780] = Faux
[2018-06-21 21:26:12][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:26:12][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:27:05][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:27:05][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:27:05][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609225 - 1529608645 > 780] = Faux
[2018-06-21 21:27:05][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:27:05][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:27:21][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:27:21][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:27:21][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609241 - 1529608645 > 780] = Faux
[2018-06-21 21:27:21][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:27:21][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:27:59][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:27:59][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:27:59][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609279 - 1529608645 > 780] = Faux
[2018-06-21 21:27:59][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:27:59][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:28:19][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:28:19][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:28:19][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609299 - 1529608645 > 780] = Faux
[2018-06-21 21:28:19][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:28:19][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:28:20][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:28:20][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:28:20][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609300 - 1529608645 > 780] = Faux
[2018-06-21 21:28:20][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:28:20][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:28:52][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:28:52][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:28:52][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609332 - 1529608645 > 780] = Faux
[2018-06-21 21:28:52][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:28:52][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:28:59][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:28:59][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:28:59][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609339 - 1529608645 > 780] = Faux
[2018-06-21 21:28:59][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:28:59][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:29:21][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:29:21][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:29:21][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609361 - 1529608645 > 780] = Faux
[2018-06-21 21:29:21][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:29:21][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:29:49][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:29:49][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:29:49][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609389 - 1529608645 > 780] = Faux
[2018-06-21 21:29:49][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:29:49][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:29:50][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:29:50][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:29:51][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609390 - 1529608645 > 780] = Faux
[2018-06-21 21:29:51][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:29:51][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:30:05][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:30:05][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:30:06][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609405 - 1529608645 > 780] = Faux
[2018-06-21 21:30:06][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:30:06][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:30:57][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:30:57][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:30:57][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609457 - 1529608645 > 780] = Vrai
[2018-06-21 21:30:57][SCENARIO] Exécution du sous-élément de type [action] : then
[2018-06-21 21:30:58][SCENARIO] Exécution de la commande [Appartement][BLE_MIBAND2_STEPH][Refresh]
[2018-06-21 21:30:58][SCENARIO] Affectation de la variable RefreshH => 1529609458 = 1529609458
[2018-06-21 21:30:58][SCENARIO] Fin correcte du scénario
------------------------------------
[2018-06-21 21:32:23][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Appartement][BLE_MIBAND2_STEPH][Present].
[2018-06-21 21:32:23][SCENARIO] Exécution du sous-élément de type [condition] : if
[2018-06-21 21:32:23][SCENARIO] Evaluation de la condition : [1 == 1 and 1529609543 - 1529609458 > 780] = Faux
[2018-06-21 21:32:23][SCENARIO] Exécution du sous-élément de type [action] : else
[2018-06-21 21:32:23][SCENARIO] Fin correcte du scénario
Code : Tout sélectionner
[2018-06-23 00:02:49][DEBUG] : ACTION------Attempt to refresh values
[2018-06-23 00:02:49][DEBUG] : CONNECTOR------Connecting : C0:0E:71:0C:A5:7D with bluetooth 0
[2018-06-23 00:02:49][INFO] : Starting new HTTP connection (1): 192.168.50.46
[2018-06-23 00:02:50][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=PA..................................ZmN8l HTTP/1.1" 200 0
[2018-06-23 00:02:52][DEBUG] : CONNECTOR------Connected... C0:0E:71:0C:A5:7D
[2018-06-23 00:02:52][DEBUG] : CONNECTOR------Reading Characteristic...C0:0E:71:0C:A5:7D
[2018-06-23 00:02:52][DEBUG] : CONNECTOR------Characteristic Readen .... C0:0E:71:0C:A5:7D
[2018-06-23 00:02:52][DEBUG] : CONNECTOR------Reading Characteristic...C0:0E:71:0C:A5:7D
[2018-06-23 00:02:52][DEBUG] : CONNECTOR------Characteristic Readen .... C0:0E:71:0C:A5:7D
[2018-06-23 00:02:52][DEBUG] : CONNECTOR------Reading Characteristic...C0:0E:71:0C:A5:7D
[2018-06-23 00:02:52][DEBUG] : CONNECTOR------Characteristic Readen .... C0:0E:71:0C:A5:7D
[2018-06-23 00:02:52][DEBUG] : {'status': 'D\xc3\xa9branch\xc3\xa9', 'battery': 83, 'firmware': 'V0.1.3.2/V1.0.1.69', 'lastchargelevel': '100', 'id': u'C0:0E:71:0C:A5:7D', 'lastcharge': '20/6/2018 20h55min55s'}
[2018-06-23 00:02:52][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'C0:0E:71:0C:A5:7D': {'status': 'D\xc3\xa9branch\xc3\xa9', 'battery': 83, 'firmware': 'V0.1.3.2/V1.0.1.69', 'source': 'Antenne BLE Bureau', 'lastchargelevel': '100', 'id': u'C0:0E:71:0C:A5:7D', 'lastcharge': '20/6/2018 20h55min55s'}}}
voilàsuperbricolo a écrit : ↑23 juin 2018, 00:15Ton log BLEA ne correspond pas à celui que j'attends. Je voudrais un log fait au moment du refresh effectué soit par ton scénario qui lui fonctionne bien ou soit par un refresh effectué sur le widget du miband2. Dans ton scénario tu as eu refresh à 21:30:57.
Cela doit donner un log de ce style:
Code : Tout sélectionner
[2018-06-23 00:02:49][DEBUG] : ACTION------Attempt to refresh values [2018-06-23 00:02:49][DEBUG] : CONNECTOR------Connecting : C0:0E:71:0C:A5:7D with bluetooth 0 [2018-06-23 00:02:49][INFO] : Starting new HTTP connection (1): 192.168.50.46 [2018-06-23 00:02:50][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=PA..................................ZmN8l HTTP/1.1" 200 0 [2018-06-23 00:02:52][DEBUG] : CONNECTOR------Connected... C0:0E:71:0C:A5:7D [2018-06-23 00:02:52][DEBUG] : CONNECTOR------Reading Characteristic...C0:0E:71:0C:A5:7D [2018-06-23 00:02:52][DEBUG] : CONNECTOR------Characteristic Readen .... C0:0E:71:0C:A5:7D [2018-06-23 00:02:52][DEBUG] : CONNECTOR------Reading Characteristic...C0:0E:71:0C:A5:7D [2018-06-23 00:02:52][DEBUG] : CONNECTOR------Characteristic Readen .... C0:0E:71:0C:A5:7D [2018-06-23 00:02:52][DEBUG] : CONNECTOR------Reading Characteristic...C0:0E:71:0C:A5:7D [2018-06-23 00:02:52][DEBUG] : CONNECTOR------Characteristic Readen .... C0:0E:71:0C:A5:7D [2018-06-23 00:02:52][DEBUG] : {'status': 'D\xc3\xa9branch\xc3\xa9', 'battery': 83, 'firmware': 'V0.1.3.2/V1.0.1.69', 'lastchargelevel': '100', 'id': u'C0:0E:71:0C:A5:7D', 'lastcharge': '20/6/2018 20h55min55s'} [2018-06-23 00:02:52][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'C0:0E:71:0C:A5:7D': {'status': 'D\xc3\xa9branch\xc3\xa9', 'battery': 83, 'firmware': 'V0.1.3.2/V1.0.1.69', 'source': 'Antenne BLE Bureau', 'lastchargelevel': '100', 'id': u'C0:0E:71:0C:A5:7D', 'lastcharge': '20/6/2018 20h55min55s'}}}
Code : Tout sélectionner
[2018-06-24 21:57:13][DEBUG] : SCANNER------[(1, 'Flags', u'04'), (255, 'Manufacturer', u'570100a3bee029784ac9658231a72006b10aed02c1e6f16020e8')] True random c1:e6:f1:60:20:e8
[2018-06-24 21:57:13][DEBUG] : SCANNER------It's a unknown packet and I known this device so I send c1:e6:f1:60:20:e8
[2018-06-24 21:57:13][DEBUG] : {'name': '', 'source': 'local', 'rawdata': "[(1, 'Flags', u'04'), (255, 'Manufacturer', u'570100a3bee029784ac9658231a72006b10aed02c1e6f16020e8')]", 'rssi': -80, 'type': 'default', 'id': u'C1:E6:F1:60:20:E8'}
[2018-06-24 21:57:13][DEBUG] : SCANNER------This is a miband2 device c1:e6:f1:60:20:e8
[2018-06-24 21:57:13][DEBUG] : SCANNER------This is a miband2 device c1:e6:f1:60:20:e8
[2018-06-24 21:57:13][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:13][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'C1:E6:F1:60:20:E8': {'name': u'MI Band 2', 'source': 'local', 'rawdata': "[(1, 'Flags', u'04'), (2, 'Incomplete 16b Services', u'e0fe'), (9, 'Complete Local Name', u'MI Band 2'), (22, '16b Service Data', u'e0fe3b0e0000'), (255, 'Manufacturer', u'570100a3bee029784ac9658231a72006b10aed02c1e6f16020e8')]", 'rssi': -80, 'type': 'miband2', 'id': u'C1:E6:F1:60:20:E8', 'present': 1}}}
[2018-06-24 21:57:13][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:57:13][DEBUG] : HEARTBEAT------Bluepy-Helper cpu is 0.0 and pid is 21469 (Highest CPU 1.0)
[2018-06-24 21:57:14][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:15][DEBUG] : SCANNER------[(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'1d18'), (22, '16b Service Data', u'1d18820000e2070618152f36'), (255, 'Manufacturer', u'5701880f10ac6bfb')] True public 88:0f:10:ac:6b:fb
[2018-06-24 21:57:15][DEBUG] : SCANNER------It's a unknown packet and I known this device so I send 88:0f:10:ac:6b:fb
[2018-06-24 21:57:15][DEBUG] : {'name': '', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'1d18'), (22, '16b Service Data', u'1d18820000e2070618152f36'), (255, 'Manufacturer', u'5701880f10ac6bfb')]", 'rssi': -75, 'type': 'default', 'id': u'88:0F:10:AC:6B:FB'}
[2018-06-24 21:57:15][DEBUG] : SCANNER------This is a miscale device 88:0f:10:ac:6b:fb
[2018-06-24 21:57:15][DEBUG] : MISCALE------Miscale this is a dummy measure
[2018-06-24 21:57:15][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'88:0F:10:AC:6B:FB': {'name': u'MI_SCALE', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'1d18'), (9, 'Complete Local Name', u'MI_SCALE'), (22, '16b Service Data', u'1d18820000e2070618152f36'), (255, 'Manufacturer', u'5701880f10ac6bfb')]", 'rssi': -74, 'type': 'miscale', 'id': u'88:0F:10:AC:6B:FB', 'present': 1}}}
[2018-06-24 21:57:15][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:57:15][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:18][DEBUG] : SCANNER------[(1, 'Flags', u'06'), (22, '16b Service Data', u'95fe5020aa0177e6f0d1a8654c0d1004f2002302')] True public 4c:65:a8:d1:f0:e6
[2018-06-24 21:57:18][DEBUG] : SCANNER------It's a unknown packet and I known this device so I send 4c:65:a8:d1:f0:e6
[2018-06-24 21:57:18][DEBUG] : {'name': '', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (22, '16b Service Data', u'95fe5020aa0177e6f0d1a8654c0d1004f2002302')]", 'rssi': -81, 'type': 'default', 'id': u'4C:65:A8:D1:F0:E6'}
[2018-06-24 21:57:18][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'4C:65:A8:D1:F0:E6': {'name': '', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (22, '16b Service Data', u'95fe5020aa0177e6f0d1a8654c0d1004f2002302')]", 'rssi': -81, 'type': 'default', 'id': u'4C:65:A8:D1:F0:E6'}}}
[2018-06-24 21:57:18][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:57:18][DEBUG] : SCANNER------[(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (255, 'Manufacturer', u'59000003'), (22, '16b Service Data', u'0a18e692527aff68'), (1, 'Flags', u'06')] True random e6:92:52:7a:ff:68
[2018-06-24 21:57:18][DEBUG] : SCANNER------This is a nut device e6:92:52:7a:ff:68
[2018-06-24 21:57:18][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:19][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'E6:92:52:7A:FF:68': {'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'0a18e692527aff68'), (1, 'Flags', u'06')]", 'rssi': -72, 'type': 'nut', 'id': u'E6:92:52:7A:FF:68', 'present': 1}}}
[2018-06-24 21:57:19][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:57:19][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:24][DEBUG] : HEARTBEAT------Bluepy-Helper cpu is 0.0 and pid is 21469 (Highest CPU 1.0)
[2018-06-24 21:57:27][DEBUG] : SCANNER------[(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (255, 'Manufacturer', u'59000001'), (22, '16b Service Data', u'0a18fe49b8dbcd23'), (1, 'Flags', u'06')] True random fe:49:b8:db:cd:23
[2018-06-24 21:57:27][DEBUG] : SCANNER------This is a nut device fe:49:b8:db:cd:23
[2018-06-24 21:57:27][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'FE:49:B8:DB:CD:23': {'name': u'nut', 'source': 'local', 'rawdata': "[(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (255, 'Manufacturer', u'59000001'), (22, '16b Service Data', u'0a18fe49b8dbcd23'), (1, 'Flags', u'06')]", 'rssi': -78, 'type': 'nut', 'id': u'FE:49:B8:DB:CD:23', 'present': 1}}}
[2018-06-24 21:57:27][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:57:27][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:36][DEBUG] : HEARTBEAT------Bluepy-Helper cpu is 0.0 and pid is 21469 (Highest CPU 1.0)
[2018-06-24 21:57:43][DEBUG] : SCANNER------[(1, 'Flags', u'1a'), (255, 'Manufacturer', u'7500420401017e9c8c6e553f8b9e8c6e553f8a01000000000000')] True public 9c:8c:6e:55:3f:8b
[2018-06-24 21:57:43][DEBUG] : SCANNER------It's an unknown packet but not sent because this device is not Included and I'am not in learn mode 9c:8c:6e:55:3f:8b
[2018-06-24 21:57:43][DEBUG] : SCANNER------[(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (255, 'Manufacturer', u'5900001f'), (22, '16b Service Data', u'0a18fe3bbf42de6a'), (1, 'Flags', u'06')] True random fe:3b:bf:42:de:6a
[2018-06-24 21:57:43][DEBUG] : SCANNER------This is a nut device fe:3b:bf:42:de:6a
[2018-06-24 21:57:43][DEBUG] : SCANNER------[(3, 'Complete 16b Services', u'9ffe'), (22, '16b Service Data', u'9ffe0000000000000000000000000000000000000000')] True random 51:96:b5:a2:cf:8b
[2018-06-24 21:57:43][DEBUG] : SCANNER------It's an unknown packet but not sent because this device is not Included and I'am not in learn mode 51:96:b5:a2:cf:8b
[2018-06-24 21:57:43][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'FE:3B:BF:42:DE:6A': {'name': u'nut', 'source': 'local', 'rawdata': "[(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (255, 'Manufacturer', u'5900001f'), (22, '16b Service Data', u'0a18fe3bbf42de6a'), (1, 'Flags', u'06')]", 'rssi': -69, 'type': 'nut', 'id': u'FE:3B:BF:42:DE:6A', 'present': 1}}}
[2018-06-24 21:57:43][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:57:43][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:43][DEBUG] : SCANNER------[(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'1d18'), (22, '16b Service Data', u'1d18820000e2070618152f36'), (255, 'Manufacturer', u'5701880f10ac6bfb')] True public 88:0f:10:ac:6b:fb
[2018-06-24 21:57:43][DEBUG] : SCANNER------It's a unknown packet and I known this device so I send 88:0f:10:ac:6b:fb
[2018-06-24 21:57:43][DEBUG] : {'name': '', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'1d18'), (22, '16b Service Data', u'1d18820000e2070618152f36'), (255, 'Manufacturer', u'5701880f10ac6bfb')]", 'rssi': -82, 'type': 'default', 'id': u'88:0F:10:AC:6B:FB'}
[2018-06-24 21:57:43][DEBUG] : SCANNER------This is a miscale device 88:0f:10:ac:6b:fb
[2018-06-24 21:57:43][DEBUG] : MISCALE------Miscale this is a dummy measure
[2018-06-24 21:57:44][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'88:0F:10:AC:6B:FB': {'name': u'MI_SCALE', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (2, 'Incomplete 16b Services', u'1d18'), (9, 'Complete Local Name', u'MI_SCALE'), (22, '16b Service Data', u'1d18820000e2070618152f36'), (255, 'Manufacturer', u'5701880f10ac6bfb')]", 'rssi': -81, 'type': 'miscale', 'id': u'88:0F:10:AC:6B:FB', 'present': 1}}}
[2018-06-24 21:57:44][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:57:44][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:44][DEBUG] : SCANNER------[(3, 'Complete 16b Services', u'9ffe'), (22, '16b Service Data', u'9ffe0000000000000000000000000000000000000000')] True public f4:f5:e8:4f:4c:4f
[2018-06-24 21:57:44][DEBUG] : SCANNER------It's an unknown packet but not sent because this device is not Included and I'am not in learn mode f4:f5:e8:4f:4c:4f
[2018-06-24 21:57:45][DEBUG] : SENDER------Send to jeedom : {'heartbeat': 1, 'source': 'local'}
[2018-06-24 21:57:45][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:57:45][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:46][DEBUG] : HEARTBEAT------Bluepy-Helper cpu is 0.0 and pid is 21469 (Highest CPU 1.0)
[2018-06-24 21:57:46][DEBUG] : SCANNER------[(1, 'Flags', u'06'), (22, '16b Service Data', u'95fe5020aa0186e6f0d1a8654c0d1004f2002802')] True public 4c:65:a8:d1:f0:e6
[2018-06-24 21:57:46][DEBUG] : SCANNER------It's a unknown packet and I known this device so I send 4c:65:a8:d1:f0:e6
[2018-06-24 21:57:46][DEBUG] : {'name': '', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (22, '16b Service Data', u'95fe5020aa0186e6f0d1a8654c0d1004f2002802')]", 'rssi': -81, 'type': 'default', 'id': u'4C:65:A8:D1:F0:E6'}
[2018-06-24 21:57:46][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'4C:65:A8:D1:F0:E6': {'name': '', 'source': 'local', 'rawdata': "[(1, 'Flags', u'06'), (22, '16b Service Data', u'95fe5020aa0186e6f0d1a8654c0d1004f2002802')]", 'rssi': -81, 'type': 'default', 'id': u'4C:65:A8:D1:F0:E6'}}}
[2018-06-24 21:57:46][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:57:46][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:49][DEBUG] : SCANNER------[(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (255, 'Manufacturer', u'59000003'), (22, '16b Service Data', u'0a18e692527aff68'), (1, 'Flags', u'06')] True random e6:92:52:7a:ff:68
[2018-06-24 21:57:49][DEBUG] : SCANNER------This is a nut device e6:92:52:7a:ff:68
[2018-06-24 21:57:49][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'E6:92:52:7A:FF:68': {'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'0a18e692527aff68'), (1, 'Flags', u'06')]", 'rssi': -72, 'type': 'nut', 'id': u'E6:92:52:7A:FF:68', 'present': 1}}}
[2018-06-24 21:57:49][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:57:50][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:50][DEBUG] : SCANNER------[(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (255, 'Manufacturer', u'59000001'), (22, '16b Service Data', u'0a18fe49b8dbcd23'), (1, 'Flags', u'06')] True random fe:49:b8:db:cd:23
[2018-06-24 21:57:50][DEBUG] : SCANNER------This is a nut device fe:49:b8:db:cd:23
[2018-06-24 21:57:50][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'FE:49:B8:DB:CD:23': {'name': u'nut', 'source': 'local', 'rawdata': "[(9, 'Complete Local Name', u'nut'), (3, 'Complete 16b Services', u'0318'), (255, 'Manufacturer', u'59000001'), (22, '16b Service Data', u'0a18fe49b8dbcd23'), (1, 'Flags', u'06')]", 'rssi': -73, 'type': 'nut', 'id': u'FE:49:B8:DB:CD:23', 'present': 1}}}
[2018-06-24 21:57:50][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:57:50][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:57:57][DEBUG] : HEARTBEAT------Bluepy-Helper cpu is 0.0 and pid is 21469 (Highest CPU 1.0)
[2018-06-24 21:58:03][DEBUG] : SCANNER------[(1, 'Flags', u'04'), (255, 'Manufacturer', u'570100a3bee029784ac9658231a72006b10aed02c1e6f16020e8')] True random c1:e6:f1:60:20:e8
[2018-06-24 21:58:03][DEBUG] : SCANNER------It's a unknown packet and I known this device so I send c1:e6:f1:60:20:e8
[2018-06-24 21:58:03][DEBUG] : {'name': '', 'source': 'local', 'rawdata': "[(1, 'Flags', u'04'), (255, 'Manufacturer', u'570100a3bee029784ac9658231a72006b10aed02c1e6f16020e8')]", 'rssi': -78, 'type': 'default', 'id': u'C1:E6:F1:60:20:E8'}
[2018-06-24 21:58:03][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'C1:E6:F1:60:20:E8': {'name': '', 'source': 'local', 'rawdata': "[(1, 'Flags', u'04'), (255, 'Manufacturer', u'570100a3bee029784ac9658231a72006b10aed02c1e6f16020e8')]", 'rssi': -78, 'type': 'default', 'id': u'C1:E6:F1:60:20:E8'}}}
[2018-06-24 21:58:03][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:58:04][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:58:05][DEBUG] : SCANNER------This is a miband2 device c1:e6:f1:60:20:e8
[2018-06-24 21:58:05][DEBUG] : SCANNER------This is a miband2 device c1:e6:f1:60:20:e8
[2018-06-24 21:58:05][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'C1:E6:F1:60:20:E8': {'name': u'MI Band 2', 'source': 'local', 'rawdata': "[(1, 'Flags', u'04'), (2, 'Incomplete 16b Services', u'e0fe'), (9, 'Complete Local Name', u'MI Band 2'), (22, '16b Service Data', u'e0fe3b0e0000'), (255, 'Manufacturer', u'570100a3bee029784ac9658231a72006b10aed02c1e6f16020e8')]", 'rssi': -81, 'type': 'miband2', 'id': u'C1:E6:F1:60:20:E8', 'present': 1}}}
[2018-06-24 21:58:05][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:58:06][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:58:08][DEBUG] : HEARTBEAT------Bluepy-Helper cpu is 0.0 and pid is 21653 (Highest CPU 1.0)
[2018-06-24 21:58:08][DEBUG] : SCANNER------This is a miband2 device c1:e6:f1:60:20:e8
[2018-06-24 21:58:08][DEBUG] : SCANNER------This is a miband2 device c1:e6:f1:60:20:e8
[2018-06-24 21:58:08][DEBUG] : SENDER------Send to jeedom : {u'devices': {u'C1:E6:F1:60:20:E8': {'name': u'MI Band 2', 'source': 'local', 'rawdata': "[(1, 'Flags', u'04'), (2, 'Incomplete 16b Services', u'e0fe'), (9, 'Complete Local Name', u'MI Band 2'), (22, '16b Service Data', u'e0fe3b0e0000'), (255, 'Manufacturer', u'5701001ebc17352ae5a4ae925042302c5930d102c1e6f16020e8')]", 'rssi': -80, 'type': 'miband2', 'id': u'C1:E6:F1:60:20:E8', 'present': 1}}}
[2018-06-24 21:58:08][INFO] : Starting new HTTP connection (1): 127.0.0.1
[2018-06-24 21:58:09][DEBUG] : "POST /plugins/blea/core/php/jeeBlea.php?apikey=Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk HTTP/1.1" 200 0
[2018-06-24 21:58:13][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:47056]
[2018-06-24 21:58:13][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey":"Hwe0tAaDkRme9ffq9iexTQttXNZUJMENFDgdw1VSU56uBLyk","cmd":"refresh","device":{"id":"C1:E6:F1:60:20:E8"},"command":{"device":{"id":"C1:E6:F1:60:20:E8","delay":0,"needsrefresh":0,"name":"miband2"},"name":"miband2"}}
[2018-06-24 21:58:13][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:47056]
[2018-06-24 21:58:13][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2018-06-24 21:58:13][DEBUG] : SOCKET-READ------Received command from jeedom : refresh
[2018-06-24 21:58:13][DEBUG] : SOCKET-READ------Attempt an action on a device
[2018-06-24 21:58:13][DEBUG] : SOCKET-READ------Action Thread Launched
[2018-06-24 21:58:13][DEBUG] : ACTION------Attempt to refresh values
[2018-06-24 21:58:13][DEBUG] : CONNECTOR------Connecting : C1:E6:F1:60:20:E8 with bluetooth 0
[2018-06-24 21:58:19][DEBUG] : HEARTBEAT------Bluepy-Helper cpu is 0.1 and pid is 21848 (Highest CPU 1.0)
[2018-06-24 21:58:30][DEBUG] : HEARTBEAT------Bluepy-Helper cpu is 0.0 and pid is 21848 (Highest CPU 1.0)
J'ai cru comprendre que la modification est désormais dans la dernière version. Un update devrait donc suffire.jackoz a écrit :@superbricolo
salut, je suis preneur de ton tweak également si c'est possible. Merci d'avance
C'est ce que j'ai cru comprendre des derniers échanges, mais j'ai tout à jour et pourtant rien ne remonte de mes mibands 2.
Code : Tout sélectionner
SI #[Sans localisation][BLE MI Band 2 H ][Present]# == 1 and #timestamp# - variable(RefreshH,0) > 780
ALORS
#[Sans localisation][BLE MI Band 2 H ][Refresh]# - Options : {"background":"0","enable":"1"}
(variable) Affectation de la variable : RefreshH à #timestamp#
SINON