Yeelight (YLDP02YL) strips is showing up "unavailable"
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
- I have tried it with and without music mode.
- 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
Do you have enabled the Developer mode ? It's is mandatory if you want to use any yeelight product in HA ...
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
i have same problem with xiaomi strip
What is your light strip firmware version ? (Can get it from MiHome)
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.
Does it work after .49?
nope.
Can you try without music mode ? And checker on your routeur that the lightstrip has the right IP (same as the config file )?
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.
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.
The wired thing is that from beginning the developer mode is on.
@cxlwill is this still an issue?
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!