Plus de remontée BLE suite à installation suite TGW et MQTT

J’ai suivi le tuto, les capteurs remontent (3 sur 5) mais pas les données.


[2024-11-22 10:05:08] DEBUG  : test from daemon
[2024-11-22 10:05:09] DEBUG  : new message:{"homeassistant":{"sensor":{"E72E00F1F483-tempc":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00F1F483","dev_cla":"temperature","unit_of_meas":"\u00b0C","state_class":"measurement","name":"LYWSD02-tempc","uniq_id":"E72E00F1F483-tempc","val_tpl":"{{ value_json.tempc | is_defined }}","device":{"ids":["E72E00F1F483"],"cns":[["mac","E72E00F1F483"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-F1F483","via_device":"TGW_antenne BLEA"}}},"E72E00F1F483-hum":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00F1F483","dev_cla":"humidity","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-hum","uniq_id":"E72E00F1F483-hum","val_tpl":"{{ value_json.hum | is_defined }}","device":{"ids":["E72E00F1F483"],"cns":[["mac","E72E00F1F483"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-F1F483","via_device":"TGW_antenne BLEA"}}},"E72E00F1F483-batt":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00F1F483","dev_cla":"battery","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-batt","uniq_id":"E72E00F1F483-batt","val_tpl":"{{ value_json.batt | is_defined }}","device":{"ids":["E72E00F1F483"],"cns":[["mac","E72E00F1F483"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-F1F483","via_device":"TGW_antenne BLEA"}}},"E72E00A3C49F-tempc":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00A3C49F","dev_cla":"temperature","unit_of_meas":"\u00b0C","state_class":"measurement","name":"LYWSD02-tempc","uniq_id":"E72E00A3C49F-tempc","val_tpl":"{{ value_json.tempc | is_defined }}","device":{"ids":["E72E00A3C49F"],"cns":[["mac","E72E00A3C49F"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-A3C49F","via_device":"TGW_antenne BLEA"}}},"E72E00A3C49F-hum":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00A3C49F","dev_cla":"humidity","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-hum","uniq_id":"E72E00A3C49F-hum","val_tpl":"{{ value_json.hum | is_defined }}","device":{"ids":["E72E00A3C49F"],"cns":[["mac","E72E00A3C49F"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-A3C49F","via_device":"TGW_antenne BLEA"}}},"E72E00A3C49F-batt":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00A3C49F","dev_cla":"battery","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-batt","uniq_id":"E72E00A3C49F-batt","val_tpl":"{{ value_json.batt | is_defined }}","device":{"ids":["E72E00A3C49F"],"cns":[["mac","E72E00A3C49F"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-A3C49F","via_device":"TGW_antenne BLEA"}}},"4C65A8D9CDD9-tempc":{"config":{"stat_t":"+\/+\/BTtoMQTT\/4C65A8D9CDD9","dev_cla":"temperature","unit_of_meas":"\u00b0C","state_class":"measurement","name":"LYWSDCGQ-tempc","uniq_id":"4C65A8D9CDD9-tempc","val_tpl":"{{ value_json.tempc | is_defined }}","device":{"ids":["4C65A8D9CDD9"],"cns":[["mac","4C65A8D9CDD9"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-D9CDD9","via_device":"TGW_antenne BLEA"}}},"4C65A8D9CDD9-hum":{"config":{"stat_t":"+\/+\/BTtoMQTT\/4C65A8D9CDD9","dev_cla":"humidity","unit_of_meas":"%","state_class":"measurement","name":"LYWSDCGQ-hum","uniq_id":"4C65A8D9CDD9-hum","val_tpl":"{{ value_json.hum | is_defined }}","device":{"ids":["4C65A8D9CDD9"],"cns":[["mac","4C65A8D9CDD9"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-D9CDD9","via_device":"TGW_antenne BLEA"}}},"4C65A8D9CDD9-batt":{"config":{"stat_t":"+\/+\/BTtoMQTT\/4C65A8D9CDD9","dev_cla":"battery","unit_of_meas":"%","state_class":"measurement","name":"LYWSDCGQ-batt","uniq_id":"4C65A8D9CDD9-batt","val_tpl":"{{ value_json.batt | is_defined }}","device":{"ids":["4C65A8D9CDD9"],"cns":[["mac","4C65A8D9CDD9"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-D9CDD9","via_device":"TGW_antenne BLEA"}}}}}}
[2024-11-22 10:05:09] DEBUG  : ==> type='sensor' - content= {"E72E00F1F483-tempc":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00F1F483","dev_cla":"temperature","unit_of_meas":"\u00b0C","state_class":"measurement","name":"LYWSD02-tempc","uniq_id":"E72E00F1F483-tempc","val_tpl":"{{ value_json.tempc | is_defined }}","device":{"ids":["E72E00F1F483"],"cns":[["mac","E72E00F1F483"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-F1F483","via_device":"TGW_antenne BLEA"}}},"E72E00F1F483-hum":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00F1F483","dev_cla":"humidity","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-hum","uniq_id":"E72E00F1F483-hum","val_tpl":"{{ value_json.hum | is_defined }}","device":{"ids":["E72E00F1F483"],"cns":[["mac","E72E00F1F483"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-F1F483","via_device":"TGW_antenne BLEA"}}},"E72E00F1F483-batt":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00F1F483","dev_cla":"battery","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-batt","uniq_id":"E72E00F1F483-batt","val_tpl":"{{ value_json.batt | is_defined }}","device":{"ids":["E72E00F1F483"],"cns":[["mac","E72E00F1F483"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-F1F483","via_device":"TGW_antenne BLEA"}}},"E72E00A3C49F-tempc":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00A3C49F","dev_cla":"temperature","unit_of_meas":"\u00b0C","state_class":"measurement","name":"LYWSD02-tempc","uniq_id":"E72E00A3C49F-tempc","val_tpl":"{{ value_json.tempc | is_defined }}","device":{"ids":["E72E00A3C49F"],"cns":[["mac","E72E00A3C49F"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-A3C49F","via_device":"TGW_antenne BLEA"}}},"E72E00A3C49F-hum":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00A3C49F","dev_cla":"humidity","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-hum","uniq_id":"E72E00A3C49F-hum","val_tpl":"{{ value_json.hum | is_defined }}","device":{"ids":["E72E00A3C49F"],"cns":[["mac","E72E00A3C49F"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-A3C49F","via_device":"TGW_antenne BLEA"}}},"E72E00A3C49F-batt":{"config":{"stat_t":"+\/+\/BTtoMQTT\/E72E00A3C49F","dev_cla":"battery","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-batt","uniq_id":"E72E00A3C49F-batt","val_tpl":"{{ value_json.batt | is_defined }}","device":{"ids":["E72E00A3C49F"],"cns":[["mac","E72E00A3C49F"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-A3C49F","via_device":"TGW_antenne BLEA"}}},"4C65A8D9CDD9-tempc":{"config":{"stat_t":"+\/+\/BTtoMQTT\/4C65A8D9CDD9","dev_cla":"temperature","unit_of_meas":"\u00b0C","state_class":"measurement","name":"LYWSDCGQ-tempc","uniq_id":"4C65A8D9CDD9-tempc","val_tpl":"{{ value_json.tempc | is_defined }}","device":{"ids":["4C65A8D9CDD9"],"cns":[["mac","4C65A8D9CDD9"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-D9CDD9","via_device":"TGW_antenne BLEA"}}},"4C65A8D9CDD9-hum":{"config":{"stat_t":"+\/+\/BTtoMQTT\/4C65A8D9CDD9","dev_cla":"humidity","unit_of_meas":"%","state_class":"measurement","name":"LYWSDCGQ-hum","uniq_id":"4C65A8D9CDD9-hum","val_tpl":"{{ value_json.hum | is_defined }}","device":{"ids":["4C65A8D9CDD9"],"cns":[["mac","4C65A8D9CDD9"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-D9CDD9","via_device":"TGW_antenne BLEA"}}},"4C65A8D9CDD9-batt":{"config":{"stat_t":"+\/+\/BTtoMQTT\/4C65A8D9CDD9","dev_cla":"battery","unit_of_meas":"%","state_class":"measurement","name":"LYWSDCGQ-batt","uniq_id":"4C65A8D9CDD9-batt","val_tpl":"{{ value_json.batt | is_defined }}","device":{"ids":["4C65A8D9CDD9"],"cns":[["mac","4C65A8D9CDD9"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-D9CDD9","via_device":"TGW_antenne BLEA"}}}}
[2024-11-22 10:05:09] DEBUG  : handle config: {"stat_t":"+\/+\/BTtoMQTT\/E72E00F1F483","dev_cla":"temperature","unit_of_meas":"\u00b0C","state_class":"measurement","name":"LYWSD02-tempc","uniq_id":"E72E00F1F483-tempc","val_tpl":"{{ value_json.tempc | is_defined }}","device":{"ids":["E72E00F1F483"],"cns":[["mac","E72E00F1F483"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-F1F483","via_device":"TGW_antenne BLEA"}}
[2024-11-22 10:05:09] DEBUG  : handle config: {"stat_t":"+\/+\/BTtoMQTT\/E72E00F1F483","dev_cla":"humidity","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-hum","uniq_id":"E72E00F1F483-hum","val_tpl":"{{ value_json.hum | is_defined }}","device":{"ids":["E72E00F1F483"],"cns":[["mac","E72E00F1F483"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-F1F483","via_device":"TGW_antenne BLEA"}}
[2024-11-22 10:05:09] DEBUG  : handle config: {"stat_t":"+\/+\/BTtoMQTT\/E72E00F1F483","dev_cla":"battery","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-batt","uniq_id":"E72E00F1F483-batt","val_tpl":"{{ value_json.batt | is_defined }}","device":{"ids":["E72E00F1F483"],"cns":[["mac","E72E00F1F483"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-F1F483","via_device":"TGW_antenne BLEA"}}
[2024-11-22 10:05:09] DEBUG  : handle config: {"stat_t":"+\/+\/BTtoMQTT\/E72E00A3C49F","dev_cla":"temperature","unit_of_meas":"\u00b0C","state_class":"measurement","name":"LYWSD02-tempc","uniq_id":"E72E00A3C49F-tempc","val_tpl":"{{ value_json.tempc | is_defined }}","device":{"ids":["E72E00A3C49F"],"cns":[["mac","E72E00A3C49F"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-A3C49F","via_device":"TGW_antenne BLEA"}}
[2024-11-22 10:05:09] DEBUG  : handle config: {"stat_t":"+\/+\/BTtoMQTT\/E72E00A3C49F","dev_cla":"humidity","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-hum","uniq_id":"E72E00A3C49F-hum","val_tpl":"{{ value_json.hum | is_defined }}","device":{"ids":["E72E00A3C49F"],"cns":[["mac","E72E00A3C49F"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-A3C49F","via_device":"TGW_antenne BLEA"}}
[2024-11-22 10:05:09] DEBUG  : handle config: {"stat_t":"+\/+\/BTtoMQTT\/E72E00A3C49F","dev_cla":"battery","unit_of_meas":"%","state_class":"measurement","name":"LYWSD02-batt","uniq_id":"E72E00A3C49F-batt","val_tpl":"{{ value_json.batt | is_defined }}","device":{"ids":["E72E00A3C49F"],"cns":[["mac","E72E00A3C49F"]],"mf":"Xiaomi\/Mijia","mdl":"LYWSD02","name":"e-ink Clock-A3C49F","via_device":"TGW_antenne BLEA"}}
[2024-11-22 10:05:09] DEBUG  : handle config: {"stat_t":"+\/+\/BTtoMQTT\/4C65A8D9CDD9","dev_cla":"temperature","unit_of_meas":"\u00b0C","state_class":"measurement","name":"LYWSDCGQ-tempc","uniq_id":"4C65A8D9CDD9-tempc","val_tpl":"{{ value_json.tempc | is_defined }}","device":{"ids":["4C65A8D9CDD9"],"cns":[["mac","4C65A8D9CDD9"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-D9CDD9","via_device":"TGW_antenne BLEA"}}
[2024-11-22 10:05:09] DEBUG  : handle config: {"stat_t":"+\/+\/BTtoMQTT\/4C65A8D9CDD9","dev_cla":"humidity","unit_of_meas":"%","state_class":"measurement","name":"LYWSDCGQ-hum","uniq_id":"4C65A8D9CDD9-hum","val_tpl":"{{ value_json.hum | is_defined }}","device":{"ids":["4C65A8D9CDD9"],"cns":[["mac","4C65A8D9CDD9"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-D9CDD9","via_device":"TGW_antenne BLEA"}}
[2024-11-22 10:05:09] DEBUG  : handle config: {"stat_t":"+\/+\/BTtoMQTT\/4C65A8D9CDD9","dev_cla":"battery","unit_of_meas":"%","state_class":"measurement","name":"LYWSDCGQ-batt","uniq_id":"4C65A8D9CDD9-batt","val_tpl":"{{ value_json.batt | is_defined }}","device":{"ids":["4C65A8D9CDD9"],"cns":[["mac","4C65A8D9CDD9"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-D9CDD9","via_device":"TGW_antenne BLEA"}}
[2024-11-22 10:05:09] INFO  : Nouvelle découverte, résumé des configuations:
[2024-11-22 10:05:09] INFO  : - Importées:                 9
[2024-11-22 10:05:09] INFO  : - Auto-création inactive:    0
[2024-11-22 10:05:09] INFO  : - Topic ignoré:              0
[2024-11-22 10:05:09] INFO  : - Erronées:                  0
[2024-11-22 10:05:09] INFO  : - Non supportées:            0
[2024-11-22 10:05:09] INFO  : - Total reçues:              9
[2024-11-22 15:30:42] INFO  : no image available for LYWSDCGQ
[2024-11-22 15:30:42] INFO  : no image available for LYWSD02
[2024-11-22 15:30:42] INFO  : no image available for LYWSD02
[2024-11-22 15:31:01] INFO  : no image available for LYWSDCGQ
[2024-11-22 15:31:01] INFO  : no image available for LYWSD02
[2024-11-22 15:31:01] INFO  : no image available for LYWSD02
[2024-11-22 15:35:03] INFO  : no image available for LYWSDCGQ
[2024-11-22 15:35:03] INFO  : no image available for LYWSD02
[2024-11-22 15:35:03] INFO  : no image available for LYWSD02

Bonjour,

  • pour les 3 équipements: y a-t-il des commandes créés?
  • il faudrait le log du démon également

Oui, les commandes sont créées pour les 3 équipements. Voici pour 1 capteur et le log du démon


MQTTDiscovery_daemon.txt (48,2 Ko)

il faut laisser en mode info, debug ca n’est pas utile ici et du coup coller le contenu dans un Texte préformaté

il n’y a pas d’erreur visible dans le log?
les équipements communiquent avec l’antenne? y a-t-il des infos dispos sur mqtt?
vous pouvez tester avec mqtt explorer

J’ai relancé le demon, voici copie du log en mode standard. Pas d’erreur visible.

Je ne connais pas MQTT Explorer, où puis-je le trouver ?
Merci pour ton aide,
JPhB

1 « J'aime »

C’est un client mqtt à utiliser sur ordi: https://mqtt-explorer.com/

Il faut se connecter au serveur (broker) installé sur jeedom avec le nom d’utilisateur et mot de passe défini.

Ensuite il faudra voir s’il y a des infos qui arrivent dans /home

Bonjour,
J’ai installé mqtt explorer. Les infos remontent bien, mais sur l’antenne TGW, seul l’état de l’antenne remonte…

  • sur /tgw il n’y aura que l’antenne, donc on voit qu’elle est en ligne, comme l’indique plugin-tgw

  • les équipements bluetooth devraient remonter sur /home qui n’existe même pas donc en fait rien n’est publié, aucun équipement n’est détecté par vos antennes

=> est-ce qu’ils sont à portées? quel type de matériel est-ce? est-ce qu’ils sont supportés par theengsgateway?

Les équipements sont des capteurs de température xiaomi type LYWS02 qui remontaient très bien avec le plugin BLE précédent. J’en ai mis un à côté de l’antenne.
J’ai également un message d’erreur récurent qui n’apparaissait pas auparavant. Est ce lié ?

ce n’est pas relevant: ce n’est pas le même plugin et perso je ne m’occupe pas de la compatibilité matériel donc que ca marche avant ou pas n’a aucune importance.
de plus ce plugin ne gère pas que du matériel en bluetooth; bref c’est pas comparable.

donc est-ce que ce capteur est dans la liste du matos compatible? (le lien est dans la documentation)

non, c’est lié à mqtt2 mais ca n’a aucun impact sur ce qui nous concerne ici je pense.

Oui, les capteurs sont dans la doc Xiaomi/Mijia LYWSD02 e-ink Clock | Theengs Decoder: BLE message decoder

Je n’ai plus d’idée là… il y a des piles? les sondes sont allumées?
si rien n’arrive sur mqtt c’est normal que rien ne remonte sur jeedom donc le problème n’est pas au niveau du plugin.

avez-vous d’autres modules bluetooth pour tester si ceux-là remontent?

Oui, il y a des piles ! Ce qui m’étonne, c’est que le plugin trouve bien mes capteurs (enfin 3 sur 5) mais qu’ensuite rien ne remonte…