-
-
Notifications
You must be signed in to change notification settings - Fork 249
[New Sensor]: Add Xiaomi Scale S400 (Model MJTZC01YM) #1446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I will need the BLE advertisements to be able to add this device. Please follow the instructions in the documentation to get this. |
Hi, @Xuantam91 @Ernst79, Something may have been able to move forward? I'll add that the problem is that BLE communication is encrypted, and from the projects I know of, the data only manages to be acquired through Xiaomi gateway: BR, |
Yes there is some development. We are (actually, @zry98 is) currently adding it to the official BLE integration. Related PRs We can copy that to BLE monitor |
Thanks for such good news, I understand you mean this solution?: https://github.com/Bluetooth-Devices/xiaomi-ble How to use (outside of HA) I would like to attach to my integration (sending downloaded and calculated data to Garmin) BR, |
Yes, that is the parser that is used by HA. I don’t know what you mean with “attach it to my integration”. Which integration? |
Hi @Ernst79 I created a solution for importing data from old Mi Body Composition Scale 2 into Garmin Connect: https://github.com/RobertWojtowicz/export2garmin I would like to add a new Xiaomi S400 to this integration. BR, |
Added the scale in 13.2.0-beta for testing. Let me know if it works |
@RobertWojtowicz Hi, unlike the Mi Scale V2, the S400's advertised metrics data is encrypted with a unique bind key. With decryption implemented, the actual data can be easily parsed similarly. I guess it would be better to just import ble_monitor and let its parser do all the job. |
Appreciate your help, I updated 13.2.0 beta, however my Scale S400 is still not added to BLE Monitor intergration. Can you help to guide me on how to make it works. Sorry, I'm stupid at IT code. |
13.2.0-beta not working here too. Only relevant log I could find was |
This data doesn't look like anything I've encountered, are you sure it's from a S400? They usually send two types of adv:
|
Have you tried the Xiaomi BLE component? I can't test with ble_monitor right now as I only have an ESPHome BLE proxy. |
@zry98 Yes, it's from a S400 MJTZC01YM.
The ADV from my log does contain |
@mukaschultze Any other packet after a measurement?
It seems to be containing the 16-bit service UUID 0xfe95, no idea on the 0x160e part though. |
I am using Xiaomi BLE also, but my S400 hasn't been added, only my old scale V2 is added. |
So, I was fiddling around with the scale and couldn't get any advertisement other than the one I pasted above. So I decided to test Xiaomi BLE integration, and as soon as I added it the scale started to advertise more data and this integration created new sensors. The sensors don't have any value, I guess it's somewhat caused by the encryption: Here's some examples of the new ADV:
|
Some devices need to be added to MiHome first, before its starts to send useful data. Next step is getting the encryption key, and add that to the ble monitor settings. You can find the encryption key with one of the methods explained in the FAQ https://custom-components.github.io/ble_monitor/faq#how-to-get-the-mibeacon-v4v5-encryption-key |
Like @mukaschultze I have got the scale recognized but unknown data. |
Unfortunately, it doesn't work for me either. It finds the device but all sensors are unkown |
I've got the same problem. |
Sensor Description
Xiaomi Scale S400 weight and Impedance sensor
Additional information
I have Xiaomi Scale S400 (Model MJTZC01YM), I try to add to home assistant but it not support.
Pls help
BLE advertisements
The text was updated successfully, but these errors were encountered: