Ran into this problem today because I installed new D1 3-rocker switches.
Did not see them in HA so I decided to delete the integration and try again. Turns out the “About” page is gone from updated Mi Home App.
For anyone in the same boat, I found out 3 hours later, just download an old apk of the mi home app (mine was way back June). You can get the old interface there and enable developer mode again. (Click version x times and look for the about) Password for lan access is there.
However, after getting it back. HA sees all my old switches but can’t see the D1 switches.
Nice tool but for MIO gateways (DGNWG02LM) we need the KEY (developper mode or LAN Mode) and not the TOKEN…this tool only retreived the TOKEN, not the KEY need in HA to integrate the gateway…
I think the best solution is to buy some AQARA gateway before they are no more sells…or any other gateway HOME KIT COMPATIBLE because the key is provide on the sticker of the gateway and on the sticker on the box of the gateway, and that what HA is asking for to integrate…
Or you need to revert back Xiaomi Home APP to 5.8.42 and dont make upgrade…to have access of the LAN MODE for DGNWG02LM gateways.
Hi everyone. For those still lost. It works! You need the Xiaomi Mijia Smart Multi-Mode Gateway ZNDMWG03LM.
Hass recognizes automatically as HomeKit Controller. Aqara D1 is now working - i have triple rockers. 6 switches and rewiring of my lines have not gone to waste!
Sorry but that’s not true. ZNDMWG03LM is supported as you said, Hass recognizes automatically as HomeKit Controller, but you need to still enter gateway key, which is from the device sticker (don’t use ‘-’ while entering into HA configuration)
Hi everyone. I am having the same trouble getting the key for a Xiaomi Gateway. What is really frustrating is that I had it working fine. Then the SD card on my Pi died, and I found that my config backups were not running! So I once had the key (using the old method in the app), and now I don’t have it. I am trying to get it from the Mi Home app on iOS and in the new version, as everyone has found, the trick for getting the key no longer works.
I have tried running the oldest version of the Xiaomi Home app for android on an emulator. The oldest one if could find in Aptoide is 5.6.91. It connects fine, but it doesn’t have the old interface for getting the key either.
@Antoni_Czaplicki thanks for your work on this. I tried to drop in the main.bundle file you linked to but I could find the exact same file path. When I got to …files/plugin, I could see “rnsdk” not “rn”. In there, I found “10048”. In there, I found “android”. I copied the main.bundle file into here, but there was nothing to overwrite. The files in here are bundle.cert, bundle.sign, project.json and sdk.bundle.
Do I need to do something else here?
When I did run the app, I could see the token in the screen for “Additional Settings / Network Info”, but not the key unfortunately.
I feel like I am close so hopefully there is a fix from here.
I am just kicking myself that I didn’t make more backups of the hassio config in the first place
All help much appreciated! Thanks.
Hi, I got along with the developer of the modified application and you can now easily install the plugin by creating a custom.json file in the vevs folder.
Hi. Many thanks for responding so quickly.
I think I might be missing something here. Sorry, I don’t use Android usually so I am on a steep learning curve here! This might not be right…
I have created a file called custom.json and copied in the text from your post. I have put that file into /vevs
Is that right?! Do I need to do anything else? I suspect I have not done this right
I have re-opened the modfied app and I can’t see that anything has changed…
I would be really grateful if you could explain further.
Many thanks!
FWIW I noticed that in the latest version of Hassio (i only updated for the first time in months yesterday), there is the Xiaomi Miio Gateway integration, as well as the Xiaomi Aqara intergration.
The Xiaomi Aqara integration needs the key to connect.
The Xiaomi Miio integration needs the token to connect.
As above, its really easy to get the token.
So enabling the Xiaomi Miio worked right away. Hassio sees the gateway light and the illuminance sensor on it. It also appears to see the Temperature humidity sensors. Although the sensors are not with the gateway right now so I think it is reading the last recorded data.
The downside is that it looks like most of the other sensors are still work-in-progress with this integration. In the documentation above it says
“These subdevices are recognized by the python-miio code but are still being worked on (not yet implemented).”
Then lists pretty much all the sensor types!
So pending at least the motion and door sensors and the wireless switches being supported in the Miio integration, I still need to get this key so I can get the Aqara integration working…
Thanks again for any assistance.
My problem seems to be different, I have both a V1 Aqara Hub and a M1S version, both can be made working with HA as homekit and the XXX-XX-XXX code on the sticker, but I don’t get the xiaomi_aquara.play_ringtone services…
Does anyone know what I am getting wrong??
The About menu is there, and when you click a few times on the plug-in version at the bottom of the page, not empty space, you get the “Wireless communication Protocol” menu appears, and you can get the password (aka the key) that you need to connect Hassio to the gateway via the Xiaomi Aqara integration.
I have tested in Hassio and I can see all the sensors I was expecting. I added a new vibration sensor and it works perfectly.
In case it matters, the firmware on my gateway is 1.4.1_176.0220, which the app tells me is that latest version.