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.
Kolla Ansible provides production-ready containers (here, Docker) and deployment tools for operating OpenStack clouds. This…
This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…
Time is running out to be in full compliance with the EU Cyber Resilience Act,…
Identity management is vitally important in cybersecurity. Every time someone tries to access your networks,…
Welcome to the Ubuntu Weekly Newsletter, Issue 889 for the week of April 20 –…
Introduction I just returned from RubyKaigi 2025, which ran from April 16th to 18th at…