2024年11月24日星期日 下午10:10:19

European version : i have a Xiaomi Smart Plu, European version, that wasn’t detected by HA. Anyone knows how to configurate it?

2 年 前
#174 引用
Hi, i have a Xiaomi Smart Plu, European version, that wasn’t detected by HA.
Anyone knows how to configurate it?

model

Xiaomi ZNCZ05CM

it’s wifi, not zigbee

You would need either a Xiaomi hub and integrate that or Zigbee2Mqtt stick (or any other zigbee stick). I use the last one with the xiaomi plugs without any issues.

Well…let’s see if i remember all the steps.
1-Download this version 123 of the mi home app (possibly in other phone or tablet)

2-Install EX file explorer file manager

3-Enter EX file explorer and in the root, create the folders “/vevs/logs”

4-Enter this new MiHome app, sign in, and choose “Chinese Mainland”

5-After you enter and see all your devices, close the app and return to the EX file explorer, to the folder “logs”. There should be a file named “Devices.txt”. Enter and ther you can find all the tokens of your devices.

6-Then in configuration.yaml, use this:
switch:
  - platform: xiaomi_miio
    host: 192.168.1.78  (your device's IP Address)
    token: b253cb89d2??????????4a049ebe2634



The part with EX file explorer can be skipped since the IP & token can be read out through the app when set to china.

where in the app I can find IP & token?

It is in the additional settings-network info. If it does not show, download the Russian Xiaomi Home app, it can read out the tokens even for EU devices.
0
2 年 前
#176 引用
For those struggling with the android version:

Download an old version of the .apk here 165

Install the app and configure your device

Using a file explorer, find the sqlite file at apps/com.xiaomi.smarthome/db/miio2.db or /data/data/com.xiaomi.smarthome/databases/miio2.db (root needed) and move it to your computer

Read the file with sqliteonline.com 28 with the following command: SELECT name,token FROM devicerecord;
0