Yeelight odd behviour

Hello everyone,

I’m experiencing something really strange with a yeelight color bulb (new ones).
I have set up two bulbs through yeelight app and they appear in mi home and then integrated them in HA.
I removed them from both apps (I prefer them to be HA only). One of them works perfectly (let’s call it A) though HA only.
The other one (B) disconnect from my router within 2 minutes after removal and of course, becomes un reachable from HA.
I’ve tried:

  • setting them up with static ip > A still works as it did, same behaviour for B, only get recognized in HA and connected when added in the yeelight/mi home app
  • removing the mi-home app and using only yeelight > no changes
  • resetting B multiples times
  • getting B it very close from my router
  • a different component structure in the conf.yaml just in case but both worked the same. (I suspect HA is not the problem though, since it disconnects from the router.

my config setup if it helps:

discovery:
  ignore:
    - yeelight

light: 
  - platforme: yeelight
    devices:
      192.168.1.55:
        name: B
        transition: 1000
      192.168.1.56:
        name: A
        transition: 1000

And yes, I’ve enabled the Lan mode.

Any idea on why it works in one case and not the other. They are exacly the same bulb…

Thanks in advance.

I had some odd connection problem with all kinds of Xiaomi products when my router was in ‘full compatible mode’. To be honest I also have some access points around. I noticed if I change the 2.4GHz WiFi mode to support only 802.11n or 802.11b/g mixed and everything forced to either 20MHz or 40MHz channel width (but not both at the same time nor auto), all connections became solid.

Thanks for takinf the time to reply and share your exp.
What do you mean by “Full compatible mode”?

I’ll do some tries but I don’t think it’s a connection stability problem since it’s not random at all.
As soon as (it takes a couple minutes) I remove that one bulb from the Yeelight App. It disconnects from the router.
If I let it in the app, it works perfectly, even from afar.

It’s like if this bulb wasn’t able to retain wifi connection data and needed to rely on the yeelight app to connect.
While the other one works perfectly without it.

Okay first I didn’t understand your problem but now I got it. It’s strange. I have no idea why that can happen.

I meant ‘full compatible mode’ to use all the protocols in the router for maximum compatibility with old devices. If you don’t need that you probably don’t need b/g/n mixed mode. Using only ‘n’ or ‘g’ is increasing the network speed and decreasing the signal distortion as well. I had problems with Xiaomi products using b/g/n mixed.

Ahah ok, probably my english :slight_smile:
It’s a good tip tough, I’ll try it anyway, can’t be a bad thing.

Anyone else has ever encountered the same behaviour?