Color change issues with Aeotec Zwave ZW098

After update home assistant from version 0.42.3 to 0.42.4 or 0.43.0 zwave bulb Aeotec ZW098 stop changing color through web interface or any automations.

Log:

17-04-23 10:47:33 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/core.py", line 1015, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/__init__.py", line 246, in async_handle_light_service
    yield from light.async_turn_on(**params)
  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/zwave.py", line 334, in turn_on
    self.values.color.data = rgbw
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/openzwave-0.3.2-py3.4.egg/openzwave/value.py", line 292, in data
    self._network.manager.setValue(self.value_id, value)
  File "src-lib/libopenzwave/libopenzwave.pyx", line 2827, in libopenzwave.PyManager.setValue (src-lib/libopenzwave/libopenzwave.cpp:21766)
TypeError: expected bytes, str found

Can anyone help to solve the problem?

I’m having the exact same issue with identical error log as well. On/Off works, but no switching colors or color temps with my Aeotec ZW098 lights with a Aeotec ZW090 Z-Stick Gen5. Everything works fine from within the OpenZWave Control Panel directly while HA is off.

On version 0.43.0

There is no any changes in new version (0.43.2) with the problem :cry:

Similar to this?

Try to update python-openzwave - no result :sob:

sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
cd /srv/homeassistant/src/python-openzwave
make uninstall
make clean
make update
make build
make install

Not sure then, I guess all I’ll say is double check that the libopenzwave library is version 0.3.3 in your current python install directory. From the issues I’ve seen around the boards the ‘expected bytes, str found’ happens because of the library either being too old with a newer ha version or vice versa.

Yes,you right! :slight_smile:

Thanks to azeroth12!!!:blush::blush::blush:

I have fix the problem by next:

  1. sudo su -s /bin/bash homeassistant
    source /srv/homeassistant/bin/activate
    cd python-openzwave
    make uninstall
    make clean
    cd …/
    rm -rf python-openzwave
    git clone https://github.com/OpenZWave/python-openzwave.git
    cd python-openzwave
    make build
    make install

Change config of HA:

zwave:
   usb_path: /dev/ttyACM0
   config_path: /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/python_openzwave/ozw_config

The problem was in old repository of python-openzwave