How to add Xiaomi Mijia scale S400 (model: MJTZC01YM) into Home Assisstant

OK I got it to work, and I believe I know the issue.

  1. Go to: Devices & services → Bluetooth → CONFIGURE → CONFIGURE BLUETOOTH OPTIONS -
    Passive scanning (CLICK the box)
  2. Restart Home Assistant - Reboot system



If that does not help do this:
3. Remove the scale from the MiHome app and FORCE close it
4. Stop the Bluetooth on your phone
5. Reboot the scale (on the bottom there is a small hole, stick a needle and hold it for 10 sec)
6. Remove Xiaomi BLE integration
7. Restart Home Assistant
8. It should be auto discovered now and added, and will ask you to - Repair: Authorization for the Xiaomi BLE Scale was “expired”
9. Enter email and password
10. Step on the scale for 30+ seconds
11. Restart Home Assistant
12. Step on the scale for 30+ seconds
13. Check again, WHOLAAA you should have more than “signal strength”

NOT ALL of those steps are needed!!! IT might show up after step 2, but if NOT then dig in. Somewhere at some point it worked for me. Feel free turn ON your phone Bluetooth and open MiHome app again and add the scale if you feel like. IT should be OK.

P.S. It takes some time ~ 5-10 min or so for all the data to show up.

Don’t forget to install and set up properly the BodyMiscale integration: GitHub - dckiller51/bodymiscale: Custom_components Body Metrics for Xiaomi Miscale 1 and 2 (esphome or BLE monitor for Homeassistant)
This will translate all the measurements into the HA.

One more little quirk I forgot:

  • I have no BT adapter on my HA server (it runs on Proxmox) but use ESPHome Bluetooth Proxies.
  • At the point where you have to enter email & password, the “Xiaomi Home” app should be open for some reason.
  • Once it has integrated, HA will show all values grayed out (unavailable), since the Xiaomi Home app has paired (and thus blocked) the scale.
  • Close the Xiaomi Home app on your phone completely (it will try to keep running in the background).
  • If that fails, disable Bluetooth so the device cannot be accessed anymore.
  • Weigh yourself again, to initiate a new transmission.
  • After a few seconds, HA should start populating the values.

And yes, it works nicely with only ESP BT proxies (i.e., no HA BT host adapter).

Does it have the Same Features as the mi scale 2?
Can it also track multiple persons?
I want to buy me a mi scale but i also want the values in Home Assistent

Thank you for your very detailed instructions. I will try again