Is this issue related?
https://github.com/home-assistant/home-assistant/issues/7274
My error log:
Apr 25 15:07:53 hassbian hass[1602]: 17-04-25 15:07:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=turn_on, domain=light, service_call_id=1977389296-3757, service_data=entity_id=light.aeotec_zw098_led_bulb_level_35_0, rgb_color=[39, 235, 255]>
Apr 25 15:07:53 hassbian hass[1602]: 17-04-25 15:07:53 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 25 15:07:53 hassbian hass[1602]: Traceback (most recent call last):
Apr 25 15:07:53 hassbian hass[1602]: File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
Apr 25 15:07:53 hassbian hass[1602]: result = coro.throw(exc)
Apr 25 15:07:53 hassbian hass[1602]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1014, in _event_to_service_call
Apr 25 15:07:53 hassbian hass[1602]: yield from service_handler.func(service_call)
Apr 25 15:07:53 hassbian hass[1602]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/__init__.py", line 246, in async_handle_light_service
Apr 25 15:07:53 hassbian hass[1602]: yield from light.async_turn_on(**params)
Apr 25 15:07:53 hassbian hass[1602]: File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
Apr 25 15:07:53 hassbian hass[1602]: yield self # This tells Task to wait for completion.
Apr 25 15:07:53 hassbian hass[1602]: File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
Apr 25 15:07:53 hassbian hass[1602]: value = future.result()
Apr 25 15:07:53 hassbian hass[1602]: File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
Apr 25 15:07:53 hassbian hass[1602]: raise self._exception
Apr 25 15:07:53 hassbian hass[1602]: File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
Apr 25 15:07:53 hassbian hass[1602]: result = self.fn(*self.args, **self.kwargs)
Apr 25 15:07:53 hassbian hass[1602]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/zwave.py", line 334, in turn_on
Apr 25 15:07:53 hassbian hass[1602]: self.values.color.data = rgbw
Apr 25 15:07:53 hassbian hass[1602]: File "/srv/homeassistant/lib/python3.4/site-packages/openzwave-0.3.2-py3.4.egg/openzwave/value.py", line 292, in data
Apr 25 15:07:53 hassbian hass[1602]: self._network.manager.setValue(self.value_id, value)
Apr 25 15:07:53 hassbian hass[1602]: File "src-lib/libopenzwave/libopenzwave.pyx", line 2827, in libopenzwave.PyManager.setValue (src-lib/libopenzwave/libopenzwave.cpp:21766)
Apr 25 15:07:54 hassbian hass[1602]: TypeError: expected bytes, str found
I get the same error whether trying to use the color picker or an automation. It also throws a similar error when I try to change the color temperature, but works fine for brightness. Was doing everything fine before.
when I look deeper in my log I notice something strange. The way the states are reported for the Aeotec Bulb, and a Hue bulb is different. Color_temp and brightness are integers for the hue, and decimals for the aeotec. RGB_color is in parentheses for the hue and n square brackets for the aeotec.
<state light.hue_color_lamp_2=on; xy_color=[0.409, 0.518], supported_features=127, color_temp=289, rgb_color=(235, 255, 67), effect_list=['colorloop', 'random'], brightness=254, friendly_name=Hue color lamp 2 @ 2017-04-25T15:30:00.774289+02:00>
<state light.aeotec_zw098_led_bulb_level_35_0=on; color_temp=327.0, node_id=35, rgb_color=[255, 105, 55], friendly_name=Aeotec ZW098 LED Bulb Level, brightness=245.0, supported_features=51 @ 2017-04-24T10:14:38.573627+02:00>