core icon indicating copy to clipboard operation
core copied to clipboard

Yeelight (YLDP02YL) strips is showing up "unavailable"

Open rosahas opened this issue 9 years ago • 13 comments

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version): 0.46.0

Python release (python3 --version): Python 3.4.2

Component/platform: yeelight

Description of problem: I added my two new YLDP02YL LED Strips to HA and they always show up as "unavailable". I turned on the debug logging for this component: logger: default: warn logs: homeassistant.components.light.yeelight: debug

But, not much info here:

2017-06-10 10:48:28 ERROR (Thread-4) [homeassistant.components.light.yeelight] Failed to connect to bulb 192.168.1.55, Bedroom: A socket error occurred when sending the command.

2017-06-10 10:49:08 WARNING (Thread-7) [root] Unknown miio device found: ServiceInfo(type='_miio._udp.local.', name='yeelink-light-strip1_miio52079755._miio._udp.local.', address=b'\xc0\xa8\x017', port=54321, weight=0, priority=0, server='yeelink-light-strip1_miio52079755.local.', properties={b'epoch': b'1', b'mac': b'286c07862e07'}) 2017-06-10 10:49:12 DEBUG (Thread-9) [homeassistant.components.light.yeelight] Adding autodetected yeelink-light-strip1_miio52079755.local.

Any thoughts?

Is it adding the light via auto-detect? I tried placing "automatic_add: False" in the configuration, but it still auto detected the light.

Thanks.

Expected: Should show up available and be able to control from the web or the app and use in automation.

Problem-relevant configuration.yaml entries and steps to reproduce:

  - platform: yeelight
#    automatic_add: False
    devices:
      192.168.1.55:
        name: Bedroom
        use_music_mode: True 

  1. I have tried it with and without music mode.
  2. It has a static ip

Traceback (if applicable):


Additional info: I posted it to the component where I believe yeelight came from: https://gitlab.com/stavros/python-yeelight/issues/12

rosahas avatar Jun 10 '17 16:06 rosahas

Do you have enabled the Developer mode ? It's is mandatory if you want to use any yeelight product in HA ...

HydrelioxGitHub avatar Jun 20 '17 17:06 HydrelioxGitHub

I came across the same problem. You mean the Developer mode of HA or Yeelight. I already turn on the Developer mode of strip itself. @HydrelioxGitHub

cxlwill avatar Jul 12 '17 13:07 cxlwill

i have same problem with xiaomi strip

lotohov avatar Jul 15 '17 17:07 lotohov

What is your light strip firmware version ? (Can get it from MiHome)

HydrelioxGitHub avatar Jul 15 '17 23:07 HydrelioxGitHub

in Yeelight app, it shows as 1.4.1_34. I'm not sure it is app's version or the strip itself. While in MiHome app device info page, it shows 1.2(788)_4. Whatever the version it is, I am pretty sure it is the latest firmware.

cxlwill avatar Jul 16 '17 03:07 cxlwill

Does it work after .49?

scottocs11 avatar Jul 19 '17 13:07 scottocs11

nope.

cxlwill avatar Jul 20 '17 03:07 cxlwill

Can you try without music mode ? And checker on your routeur that the lightstrip has the right IP (same as the config file )?

HydrelioxGitHub avatar Jul 20 '17 10:07 HydrelioxGitHub

It still sounds like you don't have developer mode on for the light strip itself. If you update the firmware, I think it turns it off. I would double check that and make sure music mode is on.

scottocs11 avatar Jul 20 '17 12:07 scottocs11

Possibly related bug report in upstream: https://gitlab.com/stavros/python-yeelight/issues/12 - that is, this problem is caused by unavailability of developer mode.

rytilahti avatar Aug 02 '17 04:08 rytilahti

The wired thing is that from beginning the developer mode is on.

cxlwill avatar Aug 02 '17 04:08 cxlwill

@cxlwill is this still an issue?

rytilahti avatar Aug 21 '17 23:08 rytilahti

It does seem to work. I think in the latest release, I have 0.51.2 installed and I can control the lights from the web interface as well. Although it does tend to lock up the controls and then lights needed to be restarted once by unplugging them. But, the developer mode does the trick!

rosahas avatar Aug 21 '17 23:08 rosahas