2018-05-02 19:18:51 ERROR (Thread-22) [homeassistant.components.light.yeelight] Error when calling <function YeelightLight.set_default at 0x686dc3d8>: Bulb closed the connection.
2018-05-02 19:18:51 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall light.turn_on: entity_id=[‘light.salon_1’], color_temp=304, transition=30.0>
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/yeelight/main.py”, line 299, in send_command
data = self._socket.recv(16 * 1024)
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1002, in _event_to_service_call
await service_handler.func(service_call)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/init.py”, line 360, in async_handle_light_service
await light.async_turn_on(**params)
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/yeelight.py”, line 455, in turn_on
self._bulb.turn_on(duration=duration)
File “”, line 2, in turn_on
File “/srv/homeassistant/lib/python3.5/site-packages/yeelight/main.py”, line 58, in _command
result = self.send_command(method, params).get(“result”, [])
File “/srv/homeassistant/lib/python3.5/site-packages/yeelight/main.py”, line 302, in send_command
self.__socket.close()
AttributeError: ‘NoneType’ object has no attribute ‘close’
2018-05-02 19:18:51 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall light.turn_on: transition=50.0, brightness_pct=100.0, entity_id=[‘light.salon_1’, ‘light.salon_2’]>
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/yeelight/main.py”, line 299, in send_command
data = self._socket.recv(16 * 1024)
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1002, in _event_to_service_call
await service_handler.func(service_call)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/init.py”, line 360, in async_handle_light_service
await light.async_turn_on(**params)
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/yeelight.py”, line 455, in turn_on
self._bulb.turn_on(duration=duration)
File “”, line 2, in turn_on
File “/srv/homeassistant/lib/python3.5/site-packages/yeelight/main.py”, line 58, in _command
result = self.send_command(method, params).get(“result”, [])
File “/srv/homeassistant/lib/python3.5/site-packages/yeelight/main.py”, line 302, in send_command
self.__socket.close()
AttributeError: ‘NoneType’ object has no attribute ‘close’
2018-05-02 19:18:51 DEBUG (Thread-7) [yeelight.main] Bulb<10.0.4.191:55443, type=BulbType.Color> > {‘params’: [‘on’, ‘smooth’, 50000, 0], ‘method’: ‘set_power’, ‘id’: 177}
2018-05-02 19:18:52 DEBUG (Thread-7) [yeelight.main] Bulb<10.0.4.191:55443, type=BulbType.Color> < {‘id’: 177, ‘result’: [‘ok’]}
2018-05-02 19:18:52 DEBUG (Thread-7) [yeelight.main] Bulb<10.0.4.191:55443, type=BulbType.Color> > {‘params’: [100, ‘smooth’, 50000], ‘method’: ‘set_bright’, ‘id’: 178}
2018-05-02 19:18:52 DEBUG (Thread-7) [yeelight.main] Bulb<10.0.4.191:55443, type=BulbType.Color> < {‘id’: 178, ‘result’: [‘ok’]}
2018-05-02 19:18:52 DEBUG (Thread-7) [yeelight.main] Bulb<10.0.4.191:55443, type=BulbType.Color> > {‘params’: [], ‘method’: ‘set_default’, ‘id’: 179}
2018-05-02 19:18:52 DEBUG (Thread-7) [yeelight.main] Bulb<10.0.4.191:55443, type=BulbType.Color> < {‘id’: 179, ‘result’: [‘ok’]}
2018-05-02 19:18:52 DEBUG (Thread-17) [yeelight.main] Bulb<10.0.4.190:55443, type=BulbType.Color> > {‘params’: [‘power’, ‘bright’, ‘ct’, ‘rgb’, ‘hue’, ‘sat’, ‘color_mode’, ‘flowing’, ‘delayoff’, ‘music_on’, ‘name’], ‘method’: ‘get_prop’, ‘id’: 193}
2018-05-02 19:18:52 ERROR (Thread-2) [homeassistant.components.light.yeelight] Unable to turn the bulb off: Bulb closed the connection.
2018-05-02 19:18:52 DEBUG (Thread-13) [yeelight.main] Bulb<10.0.4.191:55443, type=BulbType.Color> > {‘params’: [‘off’, ‘smooth’, 350], ‘method’: ‘set_power’, ‘id’: 180}
2018-05-02 19:18:52 DEBUG (Thread-13) [yeelight.main] Bulb<10.0.4.191:55443, type=BulbType.Color> < {‘id’: 180, ‘result’: [‘ok’]}
2018-05-02 19:18:57 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.salon_1 fails
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/yeelight/main.py”, line 299, in send_command
data = self._socket.recv(16 * 1024)
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 204, in async_update_ha_state
yield from self.async_device_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 327, in async_device_update
yield from self.hass.async_add_job(self.update)
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/yeelight.py”, line 305, in update
self._bulb.get_properties()
File “/srv/homeassistant/lib/python3.5/site-packages/yeelight/main.py”, line 256, in get_properties
response = self.send_command(“get_prop”, requested_properties)
File “/srv/homeassistant/lib/python3.5/site-packages/yeelight/main.py”, line 302, in send_command
self.__socket.close()
AttributeError: ‘NoneType’ object has no attribute ‘close’
2018-05-02 19:18:57 DEBUG (Thread-6) [yeelight.main] Bulb<10.0.4.191:55443, type=BulbType.Color> > {‘params’: [‘power’, ‘bright’, ‘ct’, ‘rgb’, ‘hue’, ‘sat’, ‘color_mode’, ‘flowing’, ‘delayoff’, ‘music_on’, ‘name’], ‘method’: ‘get_prop’, ‘id’: 181}
2018-05-02 19:18:57 DEBUG (Thread-6) [yeelight.main] Bulb<10.0.4.191:55443, type=BulbType.Color> < {‘params’: {‘power’: ‘off’}, ‘method’: ‘props’}
2018-05-02 19:18:57 DEBUG (Thread-6) [yeelight.main] Bulb<10.0.4.191:55443, type=BulbType.Color> < {‘id’: 181, ‘result’: [‘off’, ‘100’, ‘3289’, ‘16711680’, ‘359’, ‘100’, ‘2’, ‘0’, ‘0’, ‘0’, ‘’]}