Yeelight integration


I’m trying to add Yeelight Meteorite Pendant Light and Yeelight Ceiling Light 480 to work with Home Assistant
both lights have latest firmware and Lan Control enabled.
they appear in HA Integrations view but have no devices or entities

I’ve added to configuration.yaml

        name: ceiling10
        transition: 1000
        nightlight_switch_type: light
        model: ceiling10
        name: ceiling3
        transition: 1000
        nightlight_switch_type: light
        model: ceiling3

but it doesn’t help

Am I missing something?


assuming you have all that in your configuration.yaml file, you are missing yeelight: at the start as per

However, all of that is (in theory) optional - the devices and entities should show in the integrations page, without any additional config:


do you have static IP addresses for the lights? And are they correct?

hey @walaj ,

I’ve set static IP in my router for yeelight devices and they are correct - I can control them through Yeelight android app

in configuration.yaml I currtently have:

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

# Text to speech
  - platform: google_translate

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

    - yeelight

yeelight: !include yeelight.yaml

and the previously pasted part is in yeelight.yaml

yeelight integrations look like this:

no entities or devices inside

Add an entity card in your lovelace and add light.ceiling10 and light.ceiling3 and see if you can control it.

You have LAN control enabled in the application?

OK - so they definitely not being found correctly.

Do you still have LAN Control enabled? See - some firmware versions have dropped LAN Control…

Also, remove yeelight from the discovery: - I dont have this.

that wont work as there are no entities under the integration…

My Yeelight’s are completely stopped working in 2021.4:

2021-04-09 22:24:09 ERROR (MainThread) [homeassistant.setup] Error during setup of component yeelight
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/", line 240, in _async_setup_component
    result = await task
  File "/usr/local/lib/python3.8/concurrent/futures/", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/yeelight/", line 136, in setup
    discovery.listen(hass, SERVICE_YEELIGHT, device_discovered)
AttributeError: module 'homeassistant.helpers.discovery' has no attribute 'listen'

So I opened a bug ticket, but it was closed by Paul. I don’t exactly understand the reason, but where else to ask for help?

Anyone else have this problem?

for those not checking, looks like hpapagaj had a custom component rather than the default yeelight…