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.
Welcome to the Ubuntu Weekly Newsletter, Issue 883 for the week of March 9 –…
In this article, we will see how to install nvidia-smi on Ubuntu or Debian Linux.…
In this article, we will see how to install clang tool on Ubuntu or Debian…
When working with Docker containers on Raspberry Pi devices, you might encounter frustrating signature verification…
You’ve recently upgraded to Ubuntu 18.04 and found that your OpenVPN connection no longer resolves…
Have you ever tried to open System Monitor on your Ubuntu 18.04 system only to…