Can't detect Yeelight in HASS

Tags: #<Tag:0x00007f73a5ea5180>

OK, so try and add in one bulb with the config listed above using the IP from your router, reboot HA, and see if you can see it listed.

After following the instructions I do not have any entries in Developer Tools --> States, or Configuration --> Devices for the bulb.

I can see the friendly name for the one bulb which was added to the configuration the Yeelight panel in Configuration --> Integrations, additional to the two entries which were added via discovery in the UI.

What do you see when you click on that device? Does it show a new window that has “1 device” and 1"entity"?

No, it’s just Yeelight, Friendly Name. Below that there is Rename and Options and a menu icon that contains System Options and Delete.

I have this for Yeelight in configuration.yaml and have all devices manually listed by IP according to the config I listed earlier.

discovery:
  ignore:
    - yeelight

Are the bulbs on the same LAN as HA? Have you doubled checked you have LAN control enabled in the app?

I can turn the bulb off & on via telnet control, the LAN Control switch is enabled in the Yeelight app.
HA & the bulbs are all on the 192.168.1.0 /24 subnet

telnet 192.168.1.200 55443
Trying 192.168.1.200...
Connected to 192.168.1.200.
Escape character is '^]'.
 {"id":1,"method":"set_power","params":["off","smooth",500]}
{"method":"props","params":{"power":"off"}}
{"id":1,"result":["ok"]}
 {"id":1,"method":"set_power","params":["on","smooth",500]}
{"method":"props","params":{"power":"on"}}
{"id":1,"result":["ok"]}

Have you tried this in configuration.yaml?

discovery:
  ignore:
    - yeelight

yeelight:
  devices:
    192.168.1.200:
      name: NAME OF BULB

This is the whole configuration.yaml , most of it’s default content.


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

discovery:
  ignore:
    - yeelight

yeelight:
  devices:
    192.168.1.200:
      name: Desk Lamp

Have you had a look at : https://github.com/home-assistant/core/pull/40251 ?
Apparently, there is a bug when HA and yeelight are not in the same subnet. Looks like it is your case.
Revert back to 0.114.3 “fixed” the issue for me. It should be corrected in an upcoming 0.115.x

1 Like

I’ll take a look, to clarify though the Yeelights and HA are both on the same /24

Have you got a “special” network configuration? E.g some firewalling rules out or in HA ?

Nothing special, it’s all consumer grade stuff. No firewall running on the LAN traffic.
HA is connected to Wireless AP / switch, Yeelights are running off a different AP that’s connected to the other AP via ethernet.

This one fixed my issue, got the same scenario described by Skirmish.

How did you fix your issue?

I found I’m able to temporarily pick up the lights if I do the following:

  1. Power bulbs off
  2. Power bulbs on
  3. Reboot HA’s host

Unfortunately it’s only a temporary fix: they drop out again after a while and the entities’ status is listed as “Restored” with a red circle.

I’ve tried variations on the above procedure but all three steps are definitely required for the entities to come up properly in HA.

from that PR, I grabbed the yeelight component and put it under custom_components and then restart. It was able to scan my yeelights under integrations. Make sure to remove it once there’s a new HA release containing that PR.

Hi. New here but not shy about it. Can you give me a little more detail as to what you copied, where you got it, and where you put it please? Thanks!

  1. Download the zip or git clone this https://github.com/shenxn/home-assistant-core/tree/yeelight-fix.
  2. Copy the yeelight folder from that zip/git (homeassistant/components/) and paste it to custom_components on your config folder.
  3. restart
1 Like

I have upgraded to 0.115.3 hoping the fix to be included but apparently not…
As explained in Yeelight in 0.115 not working yeelight is working fine in 0.114.4 and can’t be managed in 0.115.x (tried .1 and .3).

This is the result of a known issue. The bug for the issue is this one: After HA upgrade to 0.115.0b8, yeelights entities are not available. (There’s another issue for the same problem, not yet marked as a duplicate.)

There is a "pull request"1, Fix yeelight connection issue, currently in progress. But it’s not yet "merged"2, so the problem isn’t fixed as of HA version 0.115.6. It seems like it’s going to take some additional work for the PR to be ready to be added to a HA release.

1 A pull request, or “PR”, is GitHub mechanism for proposing an improvement to a piece of code. In this case, think of it as a candidate fix that’s not yet verified or approved.

2 Merged is git terminology for “accepted” or “incorporated”. In this case, because the pull request isn’t merged, we’re still waiting for the fix to become available.

Hi,
so I’ve just updated to 0.116.1 but the issue seems to be still present.
Any idea about the release date? I’ve 5 Yeelight Bulbs and I can’t use them in HomeAssistant :frowning:

Thansk in advance