Xiaomi Air Purifier is one of the best on the market in the price/value category. Like many other Xiaomi devices, it can be controlled using a great home automation system called Domoticz.
The only problem that I had is that for the 2S version, there is no way to obtain the device token needed for controlling the device using the miIO library.
Here are the steps needed to obtain this token using a Linux machine and a non-rooted Android phone.
./adb backup -noapk com.xiaomi.smarthome -f backup.ab
java -jar abe.jar unpack backup.ab backup.tar
tar -xvf backup.tar
sudo apt-get install sqlitebrowser
SELECT localIP, token FROM devicerecord
As a result, you will get a list of the tokens with the IPs of the devices in your networks to which they belong (I’ve blurred the tokens just in case in the picture):
Now you can take the appropriate token and use it within your Domoticz setup.
The post Extracting the device token from Xiaomi Air Purifier 2S EU for Domoticz usage appeared first on Running with Ruby.
The latest interim release of Ubuntu introduces “devpacks” for popular frameworks like Spring, along with…
Ubuntu 25.04, codenamed “Plucky Puffin”, is here. This release continues Ubuntu’s proud tradition of integrating…
Ubuntu released its 20.04 (Focal Fossa) release 5 years ago, on March 23, 2020. As…
Focal Fossa will reach the End of Standard Support in May 2025, also known as…
Ubuntu MATE 25.04 is ready to soar! 🪽 Celebrating our 10th anniversary as an official…
Welcome to the Ubuntu Weekly Newsletter, Issue 887 for the week of April 6 –…