merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
364 stars 62 forks source link

Mi LED Smart Color Bulb (B22) #552

Closed alx-xlx closed 7 months ago

alx-xlx commented 7 months ago

Device model yeelink.light.color7

Device name Mi LED Smart Color Bulb (B22)

Does the device require a MiCloud connection? Probably Yes

Anything special about the device?

Discovering devices

upon homebridge restart I get the following logs

upon running miot test I get the following logs

three accessories gets added but they don't work

upon adding force micloud connection in the plugin settings I get the following logs

merdok commented 7 months ago

Hi, the yeelight devices usually use a could connection hence foreMiCloud should be used. The device need to be added in your mi home app and you should be able to co tell it from there, afterwards it should also work with the plugin.

alx-xlx commented 7 months ago

Already tried that, the widgets all show up but they don't seem to actually control anything. The miot test still shows up the same error as shown in the above pic. I have no idea what is possibly wrong

merdok commented 7 months ago

The miot test only tests a local connection using the miot protocol. A handshake timeout usually indicated an incorrect token.

For the cloud connection to work the device needs to be added to your account using the xiaomi home app and actually be online.

alx-xlx commented 7 months ago

I double checked the token and its what the micloud shows when I use the Discover button. I have also added the device to xiaomi home app and the device works fine with the home app. All the devices are connected to the same wifi internet access point. And the home app works fine.

I guess this won't work for some reason anyways thanks for the help,