question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[New Sensor]: mi scale XMTZC02HM not showed up in HA

See original GitHub issue

Sensor Description

body scale

Additional information

I am using the HA bluetooth integration, not the BLE monitor addon. According with the documentation, it should be already moved to HA bluetooth integration, but the XMTZC02HM doesn’t show up. I was not able to collect the BLE advertisement with the Home Assistant logger (since the bluetooth integration doesn’t have the option to), so I use the HCIdump way.

Debian 11 with Plugable USB-BT4LE (BCM20702A0), bluez 5.66 with experimental and passive mode

Screenshot_2022-12-19-14-22-28-056_com xiaomi hm health

BLE advertisements

HCI sniffer - Bluetooth packet analyzer ver 5.55
device: hci0 snap_len: 1500 filter: 0x2
< 01 0C 20 02 00 00 
> 04 0E 04 01 0C 20 00 
< 01 0B 20 07 00 60 00 30 00 00 00 
> 04 0E 04 01 0B 20 00 
< 01 0C 20 02 01 01 
> 04 0E 04 01 0C 20 00 
> 04 3E 24 02 01 00 01 B1 22 51 0B C1 DD 18 02 01 06 03 02 1B 
  18 10 16 1B 18 02 A6 E6 07 0C 13 0D 10 1C 5E 02 50 37 BC 
> 04 3E 2B 02 01 03 01 B8 E1 FC 9A 52 79 1F 1E FF 06 00 01 09 
  20 02 2B 0E 10 66 21 C8 7F 41 21 51 4A B9 5F FB B4 89 31 ED 
  0E CA CA 2F F6 BC 
> 04 3E 2B 02 01 00 00 7B 81 AA 09 5E CA 1F 02 01 06 1B FF 57 
  01 02 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 02 CA 
  5E 09 AA 81 7B BA 
> 04 3E 28 02 01 02 01 3E 2A FF FE 5B 50 1C 03 03 9F FE 17 16 
  9F FE 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00 00 AA 
> 04 3E 29 02 01 00 00 27 4D 6A 8D 7C C4 1D 02 01 06 03 02 95 
  FE 15 16 95 FE 71 20 98 00 32 27 4D 6A 8D 7C C4 0D 07 10 03 
  F8 00 00 BC 
> 04 3E 2B 02 01 00 00 47 E4 95 BD 8A 80 1F 02 01 1A 1B FF 75 
  00 42 04 01 01 67 80 8A BD 95 E4 47 82 8A BD 95 E4 46 06 00 
  00 00 00 00 00 A0

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
Ernst79commented, Dec 19, 2022

First checks (Work in Progress).

Message from scale 04 3E 24 02 01 00 01 B1 22 51 0B C1 DD 18 02 01 06 03 02 1B 18 10 16 1B 18 02 A6 E6 07 0C 13 0D 10 1C 5E 02 50 37 BC

Result with my local testing parser {'non-stabilized weight': 70.8, 'weight unit': 'kg', 'weight removed': 1, 'stabilized': 1, 'type': 'Mi Scale V2', 'firmware': 'Mi Scale V2', 'mac': 'DDC10B5122B1', 'packet': '02a6e6070c130d101c5e025037', 'rssi': -68, 'data': True}

So, the parser should be fine.

Next step, testing why this doesn’t show up in HA

0reactions
Smandurlocommented, Dec 21, 2022

Yes, very crystal clear now! Thank you very much 😃 I will wait you move everything I would like to use into an official HA integration so I can use the Bluetooth mesh. I can survive without the scale 😂 thank you for your great work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integrating Xiaomi Mi Scale - Home Assistant Community
I've recently purchased a Xiaomi Body Scale online and would like to include weight tracking in HASS. Although the product is still on...
Read more >
Xiaomi Mi Smart scale 1st gen XMTZC01HM #292 - GitHub
no, no messages from the scale. Is it added in the MiHome app? All reactions.
Read more >
2019 Xiaomi Mi Body Composition Scale 2 with Balance test ...
Check the Price or buy the Mi Body Composition scale 2 or Other Order From UK: NEW 2019 Mi body Composition Scale 2...
Read more >
Amazon.com: Xiaomi Mi Body Composition Scale 2 Mi Fit App ...
Best scale. It shows weight, real age, % water, % bones, and a lot of other data about a body.
Read more >
Xiaomi Mi Body Composition Scale 2 not detected
Hi, I recently bought an Xiaomi Mi Body Composition Scale 2, i tried to register it with samsung health but it doesn't get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found