New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yeelight (YLDP02YL) strips is showing up "unavailable" #7990

Closed
rosahas opened this Issue Jun 10, 2017 · 13 comments

Comments

Projects
None yet
6 participants
@rosahas
Copy link

rosahas commented Jun 10, 2017

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

@HydrelioxGitHub

This comment has been minimized.

Copy link
Contributor

HydrelioxGitHub commented Jun 20, 2017

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

@cxlwill

This comment has been minimized.

Copy link

cxlwill commented Jul 12, 2017

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

@lotohov

This comment has been minimized.

Copy link

lotohov commented Jul 15, 2017

i have same problem with xiaomi strip

@HydrelioxGitHub

This comment has been minimized.

Copy link
Contributor

HydrelioxGitHub commented Jul 15, 2017

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

@cxlwill

This comment has been minimized.

Copy link

cxlwill commented Jul 16, 2017

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.

@scottocs11

This comment has been minimized.

Copy link

scottocs11 commented Jul 19, 2017

Does it work after .49?

@cxlwill

This comment has been minimized.

Copy link

cxlwill commented Jul 20, 2017

nope.

@HydrelioxGitHub

This comment has been minimized.

Copy link
Contributor

HydrelioxGitHub commented Jul 20, 2017

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

@scottocs11

This comment has been minimized.

Copy link

scottocs11 commented Jul 20, 2017

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.

@rytilahti

This comment has been minimized.

Copy link
Contributor

rytilahti commented Aug 2, 2017

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.

@cxlwill

This comment has been minimized.

Copy link

cxlwill commented Aug 2, 2017

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

@rytilahti

This comment has been minimized.

Copy link
Contributor

rytilahti commented Aug 21, 2017

@cxlwill is this still an issue?

@rosahas

This comment has been minimized.

Copy link

rosahas commented Aug 21, 2017

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 rosahas closed this Aug 21, 2017

@home-assistant home-assistant locked and limited conversation to collaborators Dec 11, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.