[RASP-3B+] [DOCKER] HA not detecting any light bulb despite correct configuration

Hi,

I’m currently setting things up at home, and can’t seem to make it work reliably…
My 3 Xiaomi Yeelight V3 are ALMOST never recognized by Home Assistant (the ui starts just fine).

I first integrated them using home-assistant for Windows, on my desktop, and it was working great, so I know my configuration.yaml is somewhat correct.

I then decided to buy a raspberry pi 3b+ and install home-assistant via docker (on raspbian) on it, that’s where issues started.

I said “ALMOST never recognized” because in some cases I was able to have my bulbs recognized, after trying a lot of things (like rebooting the pi, rebooting my router, restarting the container). Since yesterday I tried rebooting my setup tenths of time without success, so I’m kinda stuck right now.

My configuration:

# Discover some devices automatically
discovery:

light:
  - platform: yeelight
    devices:
      192.168.0.21:
        name: Ampoule cuisine
      192.168.0.20:
        name: Ampoule salon
      192.168.0.22:
        name: Ampoule chambre

my container run script :

sudo docker run --init -d --name="ha" -v /home/pi/ha:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/raspberrypi3-homeassistant:latest

I even tried pingin my light bulbs both from the pi and from the container, they can be seen no problem.

Does anyone have an idea ?

Thanks in advance for any help :slight_smile:

I’m not familiar with Yeelight lamps but I couldn’t help notice that the documentation shows a different way of defining them in the configuration file. They can either be discovered automatically or defined manually under the yeelight: domain.

Example - Configuration Manual

discovery:
  ignore:
    - yeelight
yeelight:
  devices:
    192.168.1.25:
      name: Living Room

Well, I’ll be damned. It appears there are two ways of connecting yeelights :

https://www.home-assistant.io/components/light.yeelight/
https://www.home-assistant.io/components/yeelight/#example-configuration-manual

Both are described as doing the same, but the one I used only worked correctly on my Windows test server, and the one you propose works just fine on my pi.

I spent more than five ours trying to solve this, and you just did it by pointing me to a slightly different page on the official website.

I’m so happy right now! Thanks a lot!