Yeelight integration

Hello

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

devices:
    192.168.2.110:
        name: ceiling10
        transition: 1000
        nightlight_switch_type: light
        model: ceiling10
        
    192.168.2.111:
        name: ceiling3
        transition: 1000
        nightlight_switch_type: light
        model: ceiling3

but it doesn’t help

Am I missing something?

Thanks

assuming you have all that in your configuration.yaml file, you are missing yeelight: at the start as per https://www.home-assistant.io/integrations/yeelight#full-configuration

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

image

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)
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: !include yeelight.yaml

and the previously pasted part is in yeelight.yaml

yeelight integrations look like this:
image

no entities or devices inside
image

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 https://github.com/home-assistant/core/issues/46997 - 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/setup.py", line 240, in _async_setup_component
    result = await task
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/yeelight/__init__.py", 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…