Open keptenkurk opened 7 years ago
First tests show advertisements of the scale but connecting is not possible. Probably because the BTstack (not yet?) supports connecting with the 'random' parameter like in gatttool
Left a note in the Pycom forum and got that confirmed. Just some more patience. https://forum.pycom.io/topic/1036/connect-to-ble-device-using-random-adddress-type
or you can use ESPHome firmware, I noted that they have managed to get Xiaomi Mi Scale working on a esp32 board
maybe some inspiration here, I'm not a dev ;-) https://github.com/esphome/feature-requests/issues/209
It looks lik BLE support in micropython has improved lately: https://github.com/micropython/micropython/pull/5171 Might be worth another go sometime during the long winternights...
or you can use ESPHome firmware, I noted that they have managed to get Xiaomi Mi Scale working on a esp32 board
maybe some inspiration here, I'm not a dev ;-) esphome/feature-requests#209
Knowing that the ESP32 supports both Bluetooth and WiFi this could be a great low power device to interface between the scale and the home network. The ESP32 is capable of running micropython and, by sheer coincidence [not!], i do own a Pycom LoPy. But for this purpose cheaper ESP32 boards are available which can be flashed with micropython. From the docs it looks like the Bluetooth BLE development has reached a state where is becomes usable for our purpose.
Well then, stop chatting and get on with it!