I’m using the Mi IO Binding - not the Yeelight binding.
I’ve read somewhere that the Mi IO Binding would be the better choice. In my case it seems that it’s not.
Quite confusing
@Selter if you see only these, you have a new unsupported type.
Please give the following a try…
Change the model in the thing config to
yeelink.light.color1
This will give you the channels that belong to the the v1 version of the color bulb.
If that works well, let me know the original model and I can update the database with your model
First thing: the hardest part: get the token from the mihome android app.
See the first post from the xiaomi vacuum topic, or for more elaborate see here
So, with the binding installed, run discovery. This should find your light. It may be there twice. Only one of the 2 should be enabled, it does not really matter which of the two.
Than enter the token and save.Give the binding a minute or 2 to configure itself.
If the token is correct and the your lamp is known… it should work and the light will be online and stays online. If after a minute or so it goes offline, it indicates a token issue.
In case your light is not yet supported (which could be the case based on your earlier email) than you can override the model by entering the yeelink.light.color1 string in the configuration as model. NB, you should already see a model there if it is empty, again it indicates a token issue.
hope this helps. If not, see the vacuum topic how to enable the debug logging, and send (PM) a log from the start of the binding to a minute or 2 later, including sending some on/offs and
So, first question is if the token is right and communication is working. You can check that by looking in the thing use “show properties” is should be something similar to this
Than to override the model is, go to the thing configuration, and edit (use show more to make the model visible)
You can see in the device model string, you can there override it with one of the known models (you can try various ones and see which best matches your light)
Status is online BUT I’m getting these warnings every 30 seconds in the log:
[WARN ] [nal.transport.MiIoAsyncCommunication] - Send command '{"id":89,"method":"miIO.info","params":[]}' -> 192.168.XXX.XX (Device: XXXFEAFC) gave error Given final block not properly padded
Yes, the online means that the light can be reached (networking is fine)
It does not mean the token is correct
Yeelight app communicates via the cloud, so indeed it is different path to the lamp.
Also the mihome app retreives the correct token each time from the cloud… so it will always match the token on the light. Note that each new inclusion will change the token, so if you reset it, or change network etc it will change the token again.
Hi,
I had to reconfigure my devices, means no communication was possible and I reset my Yeelight bolor bulb (4pcs) and Xiaomi robot.
Mi Home (installed on mobile devie) was used to connect them again - control is possible.
Now I used tool “MiToolkit 1.4” to read new tokes from mobile device - but they are the same.
Before I have used MiServer “China Mainland” and tried to change to “Germay”.
Only vac cleaner was found, but when reading tokes, all have be shown and they are same as for China mainland server.
In additon no yeelight.has been found.
Those tokens did not work - any idea how to fix problem with old tokes / find new token ?
Thanks for your reply
Markus
Hi Marcel thank you for the really astonishing work with this binding, I can confirm that yeelight color bulb 2 is working with model string “yeelink.light.color2”.
I had some trouble at the begging, but was my bad, I pasted the wrong token and manually set the device model string that was blank and nothing was working than I read the post and your tip about checking “show properties”.
This drove me back to the right way, thank you again.
One last thing is there a way to extract the token from Yeelight app? The point is that Yeelight color bulb 2 seem to work only with MiHome china server and there is no straight way with this setting to use the light with Alexa