Hello,
I’ve recently added two more yeelight rgbw to my home setup and all the yeelights disappeared and there is an exception is the logs. Home Assistant version is 0.49.0. Also tried the 0.50 dev version and the problem is still there.
Any help is appreciated.
The setup:
light:
- platform: yeelight
devices:
192.168.1.180:
name: room180
transition: 350
use_music_mode: False #(defaults to False)
save_on_change: False #(defaults to True)
192.168.1.181:
name: room181
transition: 350
use_music_mode: False #(defaults to False)
save_on_change: False #(defaults to True)
192.168.1.182:
name: room182
transition: 350
use_music_mode: False #(defaults to False)
save_on_change: False #(defaults to True)
This is the error I am having:
2017-07-22 00:16:38 DEBUG (Thread-4) [yeelight.main] Bulb<192.168.1.180:55443, type=BulbType.Color> > {'id': 1, 'params': ['power', 'bright', 'ct', 'rgb', 'hue', 'sat', 'color_mode', 'flowing', 'delayoff', 'flow_params', 'music_on', 'name'], 'method': 'get_prop'}
2017-07-22 00:16:38 DEBUG (Thread-7) [yeelight.main] Bulb<192.168.1.182:55443, type=BulbType.Unknown> < {'id': 0, 'result': ['off', '100', '4000', '16712448', '240', '100', '3', '0', '0', '', '0', '']}
2017-07-22 00:16:38 INFO (MainThread) [homeassistant.components.notify] Setting up notify.ios
2017-07-22 00:16:38 DEBUG (Thread-5) [yeelight.main] Bulb<192.168.1.181:55443, type=BulbType.Unknown> < {'id': 0, 'result': ['off', '100', '4000', '16711680', '240', '100', '3', '0', '0', '', '0', '']}
2017-07-22 00:16:38 DEBUG (Thread-7) [yeelight.main] Bulb<192.168.1.182:55443, type=BulbType.Color> > {'id': 1, 'params': ['power', 'bright', 'ct', 'rgb', 'hue', 'sat', 'color_mode', 'flowing', 'delayoff', 'flow_params', 'music_on', 'name'], 'method': 'get_prop'}
2017-07-22 00:16:38 DEBUG (Thread-5) [yeelight.main] Bulb<192.168.1.181:55443, type=BulbType.Color> > {'id': 1, 'params': ['power', 'bright', 'ct', 'rgb', 'hue', 'sat', 'color_mode', 'flowing', 'delayoff', 'flow_params', 'music_on', 'name'], 'method': 'get_prop'}
2017-07-22 00:16:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=notify, service=ios_darksuns_iphone6s>
2017-07-22 00:16:38 DEBUG (Thread-4) [yeelight.main] Bulb<192.168.1.180:55443, type=BulbType.Color> < {'id': 1, 'result': ['off', '100', '6329', '262139', '238', '100', '3', '0', '0', '', '0', '']}
2017-07-22 00:16:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=notify, service=notify>
2017-07-22 00:16:38 DEBUG (Thread-7) [yeelight.main] Bulb<192.168.1.182:55443, type=BulbType.Color> < {'id': 1, 'result': ['off', '100', '4000', '16712448', '240', '100', '3', '0', '0', '', '0', '']}
2017-07-22 00:16:38 DEBUG (Thread-5) [yeelight.main] Bulb<192.168.1.181:55443, type=BulbType.Color> < {'id': 1, 'result': ['off', '100', '4000', '16711680', '240', '100', '3', '0', '0', '', '0', '']}
2017-07-22 00:10:31 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 "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity
new_entity, self, update_before_add=update_before_add
File "/usr/local/lib/python3.4/dist-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 "/usr/local/lib/python3.4/dist-packages/homeassistant/components/light/yeelight.py", line 258, in update
self._rgb = self._get_rgb_from_properties()
File "/usr/local/lib/python3.4/dist-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(h*6.0) # XXX assume int() truncates!
TypeError: can't multiply sequence by non-int of type 'float'
2017-07-22 00:10:31 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 "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity
new_entity, self, update_before_add=update_before_add
File "/usr/local/lib/python3.4/dist-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 "/usr/local/lib/python3.4/dist-packages/homeassistant/components/light/yeelight.py", line 258, in update
self._rgb = self._get_rgb_from_properties()
File "/usr/local/lib/python3.4/dist-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(h*6.0) # XXX assume int() truncates!
TypeError: can't multiply sequence by non-int of type 'float'
2017-07-22 00:10:31 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 "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity
new_entity, self, update_before_add=update_before_add
File "/usr/local/lib/python3.4/dist-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 "/usr/local/lib/python3.4/dist-packages/homeassistant/components/light/yeelight.py", line 258, in update
self._rgb = self._get_rgb_from_properties()
File "/usr/local/lib/python3.4/dist-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(h*6.0) # XXX assume int() truncates!
TypeError: can't multiply sequence by non-int of type 'float'