janstol / yeedart

Simple Dart library that lets you control Yeelight devices over LAN.
MIT License
10 stars 4 forks source link

If the device is not detected during the discovery, I hope this will save someone's time. #21

Closed bigbn closed 8 months ago

bigbn commented 8 months ago

I have 4 bulbs, but when running the discovery, the list always contains only one element. Initially, I thought that perhaps these are different models using a modified protocol. After a brief search, I discovered the following: for your device to be visible during scanning, it MUST be enabled in the official Yeeligh application. The option is called Lan Control, and such an option is not available in the Xiaomi SmartHome application, for example. You can read more about it here, https://getyeti.webflow.io/posts/how-to-control-yeelight-and-your-smarthome-with-yeti, but I'll duplicate it because links on the internet are not always reliable.

  1. Tap on your light
  2. Tap on the arrow to open an option menu (eject icon)
  3. Now select the LAN Control option
  4. Finally, enable the LAN Control by tapping on the switch. It will become green once the LAN control is enabled.

Immediately after enabling this option, the device will be detected. Снимок экрана от 2024-02-04 13-38-25