I understand your point, I’ll get back to you later tonight with that info, but I can confirm that all Wifi devices I have in Mi Home iOS had a 96 char token rather than 32. On the other hand, via miio, all these had 32 char instead.
can you help us to make backup from android and extract it please i tray adb backup but i cant extract it and where the backup save after make it on adb??
I have this bulb https://www.gearbest.com/smart-lighting/pp_644095.html It works with MiHome apk but when I downloaded database token is empty here. Is it possible that something changed and token is not required in MiHome anymore ? What can I do to make it work under Hass ?
During setup of Mi Home devices the device tokens an be retrieved by sending a ping command to the
device. This method uses a tool called Packet Sender(https://packetsender.com/download) which you will need to download. Choose the portable
version which does not require installation.
Download the portable version of Packet Sender.
Reset the device following the instructions from the device manual, this usually means holding one or two
buttons for 10 seconds. This will reset all device settings including the Wi-Fi settings.
After reset the device will create a it's own Wi-Fi network. This network will have a name related to the device
and is used for configuring the device but will also allow us to retrieve the token. Connect to this Wi-Fi network
with your computer which has Packet Sender running.
Open Packet Sender and enter the following details.
HEX: 21310020ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
IP: 192.168.8.1
Port: 54321
Protocol dropdown: UDP
Click send and the device will respond with an answer which contains the unique device token. In the last 16
bytes (32 characters) of the devices response is the device token. Copy and save it somewhere.
Disconnect your computer from the devices network, you can now use the Mi Home app to setup the device
and connect it to your Wi-Fi network.