Hi,
i read a bit all the topics around Xiaomi gateway issues around enabling the dev mode.
My gateway was bought in HK recently, and cannot be used with the Mi Home App in Mainland China region, the app must be in HK region.
Today i managed to retrieve a MIIO token, via an older version of the MI Home app that leaks the tokens in the logs.
The token is of the form: 57454e5841623171564654597141706e
It cannot be used in the HA configuration as it’s not 16 characters long.
However, it is used successfully using the MIIO protocol, for instance with this tool i can get this output:
Device ID: 73128122
Model info: lumi.gateway.mihk01
Address: 192.168.1.10
Token: 57454e5841623171564654597141706e via stored token
Support: At least generic
Type info: miio
Capabilities:
Firmware version: 3.3.10_110
Hardware version: Linux
MCU firmware version: 0143
WiFi: GotRouter (54:A0:50:58:6C:F8) RSSI: 67/100
Remote access (Mi Home App): Maybe
I also checked with nmap
, but ports are closed:
Starting Nmap 7.70 ( [https://nmap.org](https://nmap.org/) ) at 2019-04-12 08:42 HKT
Nmap scan report for xiaomi-gateway.home (192.168.1.10)
Host is up (0.12s latency).
PORT STATE SERVICE
4321/udp closed rwhois
9898/udp closed monkeycom
MAC Address: 78:11:DC:6D:9A:ED (Xiaomi Electronics,co.)
Nmap done: 1 IP address (1 host up) scanned in 0.22 seconds
Does anyone know if something can be done via the MIIO protocol, using the token i have already, to integrate in HA?
For instance my Air Purifier is controller using this protocol/token in HA.
Thanks