rando-calrissian / esp32_xiaomi_mi_2_hass

Xiaomi Mi Body Composition Scale integration into Home Assistant using an ESP32 as a BLE to Wifi bridge with Appdaemon processing the data.
MIT License
22 stars 11 forks source link

BodyMetrics is outdated #1

Open prototux opened 5 years ago

prototux commented 5 years ago

Hello,

You're using an old version of the bodymetrics class, which was updated since to include mode data (now it have basically all the data the original mi fit has, including the metabolic age and body score). Here's the updated version (and the original source from which the hass integrtion is based): https://github.com/wiecosystem/Bluetooth/tree/master/sandbox The class is also no divided in 3 classes, bodymetrics (for the body metrics without their scales), bodyscales (that now includes the mi fit and the holtek SDK values) and bodyscore (which is the body score you have in mi fit).

rando-calrissian commented 5 years ago

Thanks! I'll check this out and try to integrate it in soon.