I got this Strip for quite a while and never make it work since HA 49.1. I found that the components info page got updated today, which saying the model number for strip is YLDD02YL, but mine is YLDD01YL.
I’ve read all topic in forum about Yeelight and strip including this one specifically. My situation is different from this, HA just refuse to add my strip. With yeelight platform setup, my error log and configuration is attached behind.
I am pretty sure about the validity of setup code in configuration.yaml. Also, I try music_mode on and off, both had no effect on the device recognition.
At this stage, I think I run out of methods and resources to help myself. So anyone can help me on this? Thanks a lot~
2017-07-31 14:16:49 WARNING (Thread-7) [root] Unknown miio device found: ServiceInfo(type=’_miio._udp.local.’, name=‘yeelink-light-strip1_miio54692213._miio._udp.local.’, address=b’\xc0\xa82\xd5’, port=54321, weight=0, priority=0, server=‘yeelink-light-strip1_miio54692213.local.’, properties={b’mac’: b’286c072f6ce6’, b’epoch’: b’1’})
2017-07-31 14:16:52 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/tasks.py”, line 233, in _step
result = coro.throw(exc)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 381, in async_process_entity
new_entity, self, update_before_add=update_before_add
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 212, in async_add_entity
yield from self.hass.async_add_job(entity.update)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/yeelight.py”, line 258, in update
self._rgb = self._get_rgb_from_properties()
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/yeelight.py”, line 198, in _get_rgb_from_properties
return colorsys.hsv_to_rgb(hue, sat, val)
File “/usr/lib/python3.4/colorsys.py”, line 146, in hsv_to_rgb
i = int(h6.0) # XXX assume int() truncates!
TypeError: can’t multiply sequence by non-int of type ‘float’
Here’s my configuration. Note that the firmware is the latest version and I already turn on the developer mode. Also I have tried setting use_music_mode to True and False. Both lead to the same result.
File “/usr/lib/python3.4/colorsys.py”, line 146, in hsv_to_rgb
i = int(h6.0) # XXX assume int() truncates!
TypeError: can’t multiply sequence by non-int of type ‘float’
And here:
transition: 1000
I’m guessing that for whatever reason the transition variable needs to be less than 4 digits. Try setting it to 999.
I can confirm my config is working on 0.50.2 … but it is a YLDD02YL, I am not sure the difference between the two light strips and what might have changed in the updates.
Thanks. I have tried remove the music mode and save on change part from yaml flie, but no, it just refused to work.
And I have also read the other thread, but my situation is different from hers. At least she can turn on/off the light, but mine did not even show up at the frontend.
UPDATE - just hard reset my Pi3 and now they no longer work. Here’s my error:
2017-08-03 07:18:46 ERROR (SyncWorker_6) [homeassistant.components.light.yeelight] Failed to connect to bulb 10.10.10.22, office_light_strip: A socket error occurred when sending the command.
I updated to 0.50.2 from 0.50.1, and my lightstrips are still working normally, even after a reboot of the Pi3. I added use_music_mode: true to my config and it works even better (prior to that, using Effects would cause connectivity failure).
Well this is interesting. So I decided to try and ping my light from the hass.io box. nope… can’t reach it. Then pinged it from my local computer. Yep… works fine. Tried pinging my smartthings hub from hass.io… yep… works fine. Hass.io can’t reach the lights. What the heck? same network… but can’t ping them.