Failing to setup EnOcean Hub

Hi Home Assistant users,

I could do with some assistants!

I am trying to configure my EnOcean USB 300 USB gateway in HA but I get this message from HA States page

Invalid Config
The following components and platforms could not be set up:
enocean

Please check your config

I have installed Home Assistant on Volumio 2 (Raspbian Jessie) on a Rpi3 according to instructions found on here i.e I have HA in virtual environment and I have added user homeassistant to dialout grupe.

My USB 300 USB gateway has the path /dev/ttyUSB0 and my entry in configuration.yaml looks like this:

# EnOcean

  device: /dev/ttyUSB0```

(there are two blank spaces in front of "device:" but I can't get the forum formatting to show it correctly)

I have verified with a python 3 script that I can talk to /dev/ttyUSB0 (open, write, close from within HA virtual environment).

If I open HA log I get one error message at the end that looks like it could have something to do with my problem but I am not sure (see log below).

Is there anybody who has any idea what could be wrong?!

yoggi

----------



```2017-06-03 12:05:16 ERROR (MainThread) [homeassistant.setup] Error during setup of c$
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py", line$
    None, component.setup, hass, processed_config)
  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/lib/python3.4/site-packages/homeassistant/components/enoc$
    ENOCEAN_DONGLE = EnOceanDongle(hass, serial_dev)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/enoc$
    from enocean.communicators.serialcommunicator import SerialCommunicator
  File "/home/homeassistant/.homeassistant/deps/enocean/communicators/serialcommunic$
    from enocean.communicators.communicator import Communicator
  File "/home/homeassistant/.homeassistant/deps/enocean/communicators/communicator.p$
    from enocean.protocol.packet import Packet
  File "/home/homeassistant/.homeassistant/deps/enocean/protocol/packet.py", line 10$
    eep = EEP()
  File "/home/homeassistant/.homeassistant/deps/enocean/protocol/eep.py", line 17, i$
    self.soup = BeautifulSoup(f.read(), "html.parser")
  File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2119: ordinal n$```

If I do a google search on “UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc2” I get answers like this

"You need to decode data from input string into unicode, before using it, to avoid encoding problems.

field.text = data.decode(“utf8”)"

I also found this;

Home Assistant breaking change 0.44 (https://github.com/home-assistant/home-assistant/releases/tag/0.44)

Fixes utf-8 encoding no longer required by python-openzwave0.3.3 (@keatontaylor - #7266) (climate.zwave docs) (breaking change)

It kind of sound like the Z-Wave plug-in had a similar problem.

Any input would be appreciated!

yoggi

… so I did a re-install on the Pi3 with Raspian Jessie Lite and Home Assistant is no longer complaining. It appears that Volumio 2’s Jessie image is the “culprit” her. I assume this has something to do with unicode/utf8 decoding but I am not sure

The question is, can Volumio 2 and Home Assistant with EnOcean be made to work together?