Voici le log de découverte :
{"sensor":{"582D34XXXXXX-tempc":{"stat_t":"+/+/BTtoMQTT/582D34XXXXXX","dev_cla":"temperature","unit_of_meas":"°C","state_class":"measurement","name":"CGDK2-tempc","uniq_id":"582D34XXXXXX-tempc","val_tpl":" value_json.tempc | is_defined ","device":{"ids":["582D34XXXXXX"],"cns":[["mac","582D34XXXXXX"]],"mf":"Qingping","mdl":"CGDK2","name":"TH Lite-XXXXXX","via_device":"TheengsGateway"}},"582D34XXXXXX-hum":{"stat_t":"+/+/BTtoMQTT/582D34XXXXXX","dev_cla":"humidity","unit_of_meas":"%","state_class":"measurement","name":"CGDK2-hum","uniq_id":"582D34XXXXXX-hum","val_tpl":" value_json.hum | is_defined ","device":{"ids":["582D34XXXXXX"],"cns":[["mac","582D34XXXXXX"]],"mf":"Qingping","mdl":"CGDK2","name":"TH Lite-XXXXXX","via_device":"TheengsGateway"}},"582D34XXXXXX-batt":{"stat_t":"+/+/BTtoMQTT/582D34XXXXXX","dev_cla":"battery","unit_of_meas":"%","state_class":"measurement","name":"CGDK2-batt","uniq_id":"582D34XXXXXX-batt","val_tpl":" value_json.batt | is_defined ","device":{"ids":["582D34XXXXXX"],"cns":[["mac","582D34XXXXXX"]],"mf":"Qingping","mdl":"CGDK2","name":"TH Lite-XXXXXX","via_device":"TheengsGateway"}},"582D34XXXXXX-volt":{"stat_t":"+/+/BTtoMQTT/582D34XXXXXX","dev_cla":"voltage","unit_of_meas":"V","state_class":"measurement","name":"CGDK2-volt","uniq_id":"582D34XXXXXX-volt","val_tpl":" value_json.volt | is_defined ","device":{"ids":["582D34XXXXXX"],"cns":[["mac","582D34XXXXXX"]],"mf":"Qingping","mdl":"CGDK2","name":"TH Lite-XXXXXX","via_device":"TheengsGateway"}}}}
L’attribut battery en fait partie et comme je l’indiquai, le plugin BLEA arrive à remonter la valeur.
Je viens de remarquer également que l’info de batterie ne remonte pas non plus pour les sondes Xiamo mijiaa LYWSDCGQ alors que l’info de découverte traite bien l’attribut :
{"sensor":{"4C65A8XXXXXX-tempc":{"stat_t":"+/+/BTtoMQTT/4C65A8XXXXXX","dev_cla":"temperature","unit_of_meas":"°C","state_class":"measurement","name":"LYWSDCGQ-tempc","uniq_id":"4C65A8XXXXXX-tempc","val_tpl":" value_json.tempc | is_defined ","device":{"ids":["4C65A8XXXXXX"],"cns":[["mac","4C65A8XXXXXX"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-XXXXXX","via_device":"TheengsGateway"}},"4C65A8XXXXXX-hum":{"stat_t":"+/+/BTtoMQTT/4C65A8XXXXXX","dev_cla":"humidity","unit_of_meas":"%","state_class":"measurement","name":"LYWSDCGQ-hum","uniq_id":"4C65A8XXXXXX-hum","val_tpl":" value_json.hum | is_defined ","device":{"ids":["4C65A8XXXXXX"],"cns":[["mac","4C65A8XXXXXX"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-XXXXXX","via_device":"TheengsGateway"}},"4C65A8XXXXXX-batt":{"stat_t":"+/+/BTtoMQTT/4C65A8XXXXXX","dev_cla":"battery","unit_of_meas":"%","state_class":"measurement","name":"LYWSDCGQ-batt","uniq_id":"4C65A8XXXXXX-batt","val_tpl":" value_json.batt | is_defined ","device":{"ids":["4C65A8XXXXXX"],"cns":[["mac","4C65A8XXXXXX"]],"mf":"Xiaomi","mdl":"LYWSDCGQ","name":"Mi Jia round-XXXXXX","via_device":"TheengsGateway"}}}}