ble_monitor icon indicating copy to clipboard operation
ble_monitor copied to clipboard

[Bug]: Xiaomi Scale S400 (Model MJTZC01YM) not working

Open djmalin opened this issue 6 months ago • 3 comments

What happened?

Hello, this weight model is still not working in this integration. It added the weight to the integration, but still no information.I have added the weight to MiHome

yunmai.scales.ms104 software: 2.1.1_0006

Home Assistant OS Core 2025.6.0b2 Supervisor 2025.05.4 Operating System 15.2`

Image

Sensor type

No response

Relevant log output


djmalin avatar May 29 '25 12:05 djmalin

Please enable logging for this device, and post the logs here

Ernst79 avatar May 29 '25 14:05 Ernst79

@Ernst79

2025-05-29 14:23:18.386 WARNING (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] Decryption failed: MAC check failed 2025-05-29 14:23:18.387 DEBUG (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] token: 52dcec1e 2025-05-29 14:23:18.387 DEBUG (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] nonce: 9e4fd7754dccd53b0d000000 2025-05-29 14:23:18.387 DEBUG (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] cipherpayload: e0c5f6f0e7eae8746c8f486b 2025-05-29 14:23:18.388 DEBUG (MainThread) [custom_components.ble_monitor.sensor] Data measuring sensor received: {'mac': 'CC4D75D74F9E', 'type': 'MJTZC01YM', 'packet': 13, 'firmware': 'Xiaomi (MiBeacon V5 encrypted)', 'data': False, 'rssi': -90, 'local_name': ''} 2025-05-29 14:23:19.211 WARNING (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] Decryption failed: MAC check failed 2025-05-29 14:23:19.211 DEBUG (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] token: 0ce15d4a 2025-05-29 14:23:19.211 DEBUG (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] nonce: 9e4fd7754dccd53b0e000000 2025-05-29 14:23:19.212 DEBUG (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] cipherpayload: 15b3722549921f87bff93e4a 2025-05-29 14:23:19.213 DEBUG (MainThread) [custom_components.ble_monitor.sensor] Data measuring sensor received: {'mac': 'CC4D75D74F9E', 'type': 'MJTZC01YM', 'packet': 14, 'firmware': 'Xiaomi (MiBeacon V5 encrypted)', 'data': False, 'rssi': -90, 'local_name': ''} 2025-05-29 16:55:55.094 WARNING (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] Decryption failed: MAC check failed 2025-05-29 16:55:55.094 DEBUG (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] token: 07a873b1 2025-05-29 16:55:55.094 DEBUG (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] nonce: 9e4fd7754dccd53b10000000 2025-05-29 16:55:55.095 DEBUG (Thread-202) [custom_components.ble_monitor.ble_parser.xiaomi] cipherpayload: dd24c5ebceaa359aa259a980 2025-05-29 16:55:55.096 DEBUG (MainThread) [custom_components.ble_monitor.sensor] Data measuring sensor received: {'mac': 'CC4D75D74F9E', 'type': 'MJTZC01YM', 'packet': 16, 'firmware': 'Xiaomi (MiBeacon V5 encrypted)', 'data': False, 'rssi': -96, 'local_name': ''} 2025-05-29 16:55:56.551 DEBUG (MainThread) [custom_components.ble_monitor.device_tracker] 0 BLE ADV messages processed last 60 seconds for 0 device tracker device(s)

djmalin avatar May 29 '25 15:05 djmalin

It says that the decryption failed. Most likely, your encryption key has changed. Please check it again, as re-adding it to e.g. MiHome can cause that the scale creates a new encryption key.

Ernst79 avatar May 29 '25 15:05 Ernst79