merdok / homebridge-miot

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

yeelink.light.lamp22 (Xiaomi Mi Computer Monitor Light Bar 1S) does not work #585

Closed JJ-HYK closed 2 months ago

JJ-HYK commented 2 months ago

The device can be connected to the home kit, but it does not respond when operated by the home kit.

merdok commented 2 months ago

Do you use a local connection or over the cloud? It might be that the device is not a miot device hence in that case it would be required that you connect over the cloud.

JJ-HYK commented 2 months ago

image image

JJ-HYK commented 2 months ago

The light bar is connected to the Mi Home, so I think it is a miot device. I can normally control the light bar with the Mi Home app.

The device appears in the Apple Home, but it doesn't show the current state of the device (It is always shown OFF), and also I can't control it.

I have other devices (eg. Xiaomi Smart Standing Fan) connected to this plugin, and they normally works in the Apple Home. What should be the problem here?

merdok commented 2 months ago

My recommendation is that you try to use the MiCloud for the device by specificinf your micloud credentials in the config and setting the flag forceMiCloud to true, and check if that helps.

JJ-HYK commented 2 months ago

Wow.. It DOES works with the micloud. Thank you for the help!!!