keptenkurk / BS440

Python code to talk to Medisana BS440 bluetooth enabled bathroom scale
MIT License
49 stars 34 forks source link

Would BS440.py run on a ESP32 ? #43

Open keptenkurk opened 7 years ago

keptenkurk commented 7 years ago

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!

keptenkurk commented 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

keptenkurk commented 7 years ago

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

elRadix commented 4 years ago

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

keptenkurk commented 4 years ago

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...

bwynants commented 6 months ago

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

https://github.com/bwynants/weegschaal