I removed certificate pinning from xiaomi smarthome app and captured data.
There is a lot of data but maybe the following is intressting:
{
"code": 0,
"message": "ok",
"result": {
"list": [{
"did": "260XXX",
"token": "316742527370XXX,
"longitude": "XXXX",
"latitude": "XXXX",
"name": "Mi Robot Vacuum 1S",
"pid": "0",
"localip": "192.168.50.15",
"mac": "50:EC:50:01:XX:XX",
"ssid": "smartnet",
"bssid": "AC:84:C6:A1:XX:XX",
"parent_id": "",
"parent_model": "",
"show_mode": 1,
"model": "roborock.vacuum.m1s",
"adminFlag": 1,
"shareFlag": 0,
"permitLevel": 16,
"isOnline": true,
"desc": "Zurück zum Dock...",
"extra": {
"isSetPincode": 0,
"fw_version": "3.4.5_0800",
"needVerifyCode": 0,
"isPasswordEncrypt": 0
},
"event": {
"consumable_item_prop_cache": "{\"filter_work_time\":\"61915\",\"main_brush_work_time\":\"61915\",\"sensor_dirty_time\":\"61915\",\"side_brush_work_time\":\"61915\"}",
"event.back_to_dock": "{\"timestamp\":1561455580,\"value\":[0]}",
"event.back_to_dock_no_power": "{\"timestamp\":1560703972,\"value\":[0]}",
"event.bin_full": "{\"timestamp\":1561366361,\"value\":[0]}",
"event.clean_complete": "{\"timestamp\":1561366182,\"value\":[0]}",
"event.error_code": "{\"timestamp\":1561455748,\"value\":[0]}",
"event.low_power_back": "{\"timestamp\":1559745457,\"value\":[0]}",
"event.power_resume_clean": "{\"timestamp\":1559752937,\"value\":[0]}",
"event.segment_clean_succ": "{\"timestamp\":1561455493,\"value\":[0]}",
"event.segment_map_done": "{\"timestamp\":1561366283,\"value\":[0]}",
"event.status": "{\"timestamp\":1561455748,\"value\":[{\"battery\":86,\"clean_area\":2565000,\"clean_time\":103,\"dnd_enabled\":0,\"error_code\":0,\"fan_power\":102,\"in_cleaning\":0,\"in_fresh_state\":0,\"in_returning\":1,\"lab_status\":1,\"map_present\":1,\"map_status\":3,\"msg_seq\":2489,\"msg_ver\":1,\"state\":6}]}",
"prop.battery": "86",
"prop.fan_power": "102",
"prop.ota_progress": "101",
"prop.ota_progress_ts": "1559736713",
"prop.ota_state": "idle",
"prop.ota_state_ts": "1561425797",
"prop.scene_check_pre_battery": "86",
"prop.state": "6"
},
"uid": 1685998586,
"pd_id": 66080,
"password": "",
"p2p_id": "",
"rssi": -47,
"family_id": 0,
"reset_flag": 0
}]
}
}
The clean_area\":2565000
changes every time if I start an cleaning by room.
So every room has an unique ID.
Can some pls help to implement this ?