hi, I check the library and looks like everything still works, but there is another opcion, the documentation of python-miio also has the python-yeelight gitlab, here the link check the steps, look like you can enable now the “development mode” ussing the YeeLight app. https://gitlab.com/stavros/python-yeelight/.
my only suggestion is to confirm the IP of the device, also you can try pip install -U python-miio to update the library.
Another suggestion is to use the cloud option in miiocli to get the ip and the token, I will update the tutorial with this new step, make everything easier. here the example:
The simplest way to acquire the tokens is by using the miiocli cloud command, which fetches them for you from your cloud account using micloud:
miiocli cloud
Username: [email protected]
Password:
== name of the device (Device offline ) ==
Model: example.device.v1
Token: b1946ac92492d2347c6235b4d2611184
IP: 192.168.xx.xx (mac: ab:cd:ef:12:34:56)
DID: 123456789
Locale: cn
I had already set as static IP for the bulb in the router before trying to configure it in HA.
The point is each time you add the bulb to your Mi Home account, the token changes.
I had checked the token each time I remove from my account, but it does not work until the third time. I do not know why, because other conditions have not changed.
Thank you! You saved my day… I used to follow the APK path, but doesn’t worth the trouble. Your solution works perfectly with the latest version of Mi Home app which is much much better on finding devices on the local network than the crap Yeelight… And enabling developer mode with these bulbs is really easy.
Hi, yes, do you know your IP? you set it like 192.168.1.xx. but you should but the IP of the device, use nmap or the fing app to see the Led IP and set it, also do you have the tocken? that is by using the app and the token extractor, let me know if you have another issue. the command is and exable, bou need to change it to the correct data, the IP and the token should be correct for it to work
Hi, Thank you for your reply.
Yes I know my IP and token. I copy same information.
I can ping my MI Smart LED.
Today, I changed IP adress. I have same error.
I use Get Mi Home devices token (W11) and miiocli cloud (linux) for get token
Hey,
first of all thanks for that amazing guide and the work you put in. Works flawlessly (kinda).
I have the Miami mi smart bulb E27
To my problem:
Every like 30-60 days the light goes unavailable/ offline in ha. The light works in the app, I can control it and it shows up as online. To get it working again I have to remove the light from the Xiaomi app and repair it there. After that it automatically becomes available in ha again. No need to reconfigure it. This is an easy fix and quick but shouldn’t be normal. I do only have one bulb so I can’t state if the light may be detected, but it should be alright since it works in the app. Does anybody else have this issue or knows how to fix it?