Token info might be gathered using Mi home/device_list API method that returns the list of devices. There are two existing desktop app implementations to make this easier: Use one of these methods to ...