Github Boards Devices Community Docs Blog

Unable to obtain Mi Scale weight in realtime

Hello all,

What am I missing from my configuration? The issue is that I only receive an arbitrary number as OpenMQTTGateway publishes and I’m not receiving the weight as I step on the scale. Additionally, the weight published doesn’t match the scale reading. I have OpenMQTTGateway v0.9.5 loaded onto an ESP32.

Thank you for publishing this project.

Here’s the payload I receive

9/27/2020, 9:36:47 AM
home/OpenMQTTGateway/BTtoMQTT/C8478CD10EBE : msg : Object
topic: “home/OpenMQTTGateway/BTtoMQTT/C8478CD10EBE”
payload: object
id: “C8:47:8C:D1:0E:BE”
name: “MI SCALE2”
manufacturerdata: “5701c8478cd10ebe”
rssi: -73
distance: 4.756481
model: “XMTZC04HM”
weight: 96.4
qos: 0
retain: false
_msgid: “df1e91d6.078ad”
_event: “node:cd91a9ba.8d7a6”


Maybe the reading given by the gateway correspond to the weight when not stabilized,
you may go down the interval to 20s and wait a little bit on the scale to have the weight caught when stabilized.

That resolved it. I set to 7 seconds and will post a Node Red flow that I created for the scale.

mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m ‘{“interval”:7000}’

1 Like

Cancel that… I wrote too soon.

The value is wrong when the scale is set to lbs via a Mi Fit app. i.e. If the scale is set the Kg, my lbs conversion is accurate. if the scale is set to lbs, the raw (non calculated) value is not Kg nor is it lbs.

I need to do the test with mine.

Would it be appropriate to post this as an issue on GitHub?

Good idea, I will assign it to the next version

Issue #787 posted to GitHub

1 Like