Support for the Xiaomi Mi Smart Scale 2 in ESPHome is here

Disclosure: This post contains affiliate links. If you click through and make a purchase, I will earn a commission, at no additional cost to you. Read my full disclosure here.

The ESP32, a significant upgrade over the ESP8266, offers several advantages, including support for Wi-Fi, Bluetooth, and Bluetooth Low Energy (BLE). Leveraging these features, ESPHome has introduced support for the Xiaomi Mi Smart Scale and Xiaomi Mi Smart Scale 2 in its latest release, version 1.17.0.

Contents

Expanding Support for Xiaomi Devices

With ESPHome and an ESP32, you can integrate various BLE devices from Xiaomi and its partners. Previously, integrations included the Mi Flora for plant soil monitoring, several hygro-thermometers with LCD and e-paper screens for climate tracking, and a smart mosquito repellent. The addition of the Xiaomi Mi Smart Scale and Xiaomi Mi Smart Scale 2 expands this support further.

Integrating the Xiaomi Mi Smart Scale with ESPHome

The new integration supports both the Xiaomi Mi Smart Scale and the Xiaomi Mi Smart Scale 2. The main difference is that the second version includes impedance measurements, which are also read by ESPHome. To set up ESPHome to communicate with the scales, you need the scale's MAC address. A detailed guide on finding the MAC address is available on the ESPHome website.

Here's a basic configuration example:

sensor:
  - platform: xiaomi_miscale2
    mac_address: '5C:CA:D3:70:D4:A2'
    weight:
      name: "Xiaomi Mi Scale Weight"
    impedance:
      name: "Xiaomi Mi Scale Impedance"

To track the weight of multiple users, you can use lambda. An example setup is available on the ESPHome integration page. You will need to know the weight ranges of each user and set up a template for each.

Analysing Body Composition with the bodymiscale Custom Component

Knowing your weight is important, but it doesn't provide a complete picture of your health. The Xiaomi Mi Smart Scale 2 measures impedance, but interpreting these results can be challenging. To address this, a developer has created a custom component called bodymiscale, available through HACS. This component provides detailed metrics such as lean body mass, body fat, water weight, bone mass, and muscle mass. While not as precise as clinical tests, it gives a useful overview of your health.

Why Use the Xiaomi Mi Smart Scale with ESPHome Instead of the App?

The primary reason for integrating the Xiaomi Mi Smart Scale with ESPHome instead of using the official app is privacy. Weight and health data are sensitive, and Xiaomi has previously been caught sharing private data . By using ESPHome, you avoid sharing data with Xiaomi's services. Note that without the app, you cannot update the Xiaomi Mi Smart Scale's firmware.

Using ESPHome to collect data from your scales also allows for creative automations. For instance, you could set up an automation to play a specific song when you reach your goal weight.

Conclusion

The addition of Xiaomi Mi Smart Scale support in ESPHome enhances its versatility and privacy. With the ability to integrate multiple users and detailed body composition analysis, it offers a comprehensive health monitoring solution without relying on external apps and services.

A portrait photo oif Liam Alexander Colman, the author, creator, and owner of Home Assistant Guide wearing a suit.

About Liam Alexander Colman

is an experienced Home Assistant user who has been utilizing the platform for a variety of projects over an extended period. His journey began with a Raspberry Pi, which quickly grew to three Raspberry Pis and eventually a full-fledged server. Liam's current operating system of choice is Unraid, with Home Assistant comfortably running in a Docker container.
With a deep understanding of the intricacies of Home Assistant, Liam has an impressive setup, consisting of various Zigbee devices, and seamless integrations with existing products such as his Android TV box. For those interested in learning more about Liam's experience with Home Assistant, he shares his insights on how he first started using the platform and his subsequent journey.

Comments

Leave a comment

Share to...