CC2531 USB port not accessible

Hey everyone,

Im running Hassio and im struggling with integrating an CC2531 USB Stick.
I bought this stick (https://www.amazon.de/gp/product/B07ZZ88BWZ/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1) in order to listen to my hue smart button and trigger automations. I used an already installed version, so that I do not need to flash anything. I just put the stick into one of the USB port of the pi.

When I try to set it up I get this Error:

Error setting up entry /dev/ttyUSB2 for zha
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 244, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 215, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 103, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 114, in async_initialize
    await radio.connect(usb_path, baudrate)
  File "/usr/local/lib/python3.7/site-packages/zigpy_deconz/api.py", line 198, in connect
    self._uart = await uart.connect(device, DECONZ_BAUDRATE, self)
  File "/usr/local/lib/python3.7/site-packages/zigpy_deconz/uart.py", line 120, in connect
    xonxoff=False,
  File "/usr/local/lib/python3.7/asyncio/coroutines.py", line 120, in coro
    res = func(*args, **kw)
  File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 410, in create_serial_connection
    ser = serial.serial_for_url(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/serial/__init__.py", line 88, in serial_for_url
    instance.open()
  File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 247, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB2: [Errno 2] No such file or directory: '/dev/ttyUSB2'

I already checked in the GUI of my Hassio and found out, that my HA does not list the dev/ttyUSB2 as a serial. The only once listed are these:

* serial:
  * /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0018E21BDA-if00
  * /dev/ttyAMA0
  * /dev/ttyACM0

Do I need to add this port to the hass.io instance? If so, how?
Is my approach wrong and I need to do something with the stick first?

Tanks for your help already in advance.

You can’t use a CC2531 with zha. A CC2531 is for zigbee2mqtt.

Oh - that’s good to know. Thanks!

However, can I use zigbee2mqtt for my initial intention? Just listening to the smart buttons and triggering automatons with it?

Yes you can.

Thanks! When I will try to set it up as a zigbee2mqtt :slight_smile:

I’ve just been trying to do the same and found this page Zigbee Home Automation - Home Assistant which seems to indicate you CAN use the CC2531 USB stick. I’ve tried using the GUI and it doesn’t detect the port even though I use it with Zigbee2MQTT (stopped the docker container to test).

You’d quoting an old post of mine. Support for the cc2531 in zha has been added in 0.106, which is 2 weeks old.

Did you manage to get this working via ZHA, as I have the same problem?

I am having same issue, no serial device path showing. Is there a solution to this?

Did anyone found a solution? I have the same problem

Any help is appreciated

dmesg output

[113249.788214] usb 3-1: USB disconnect, device number 6
[113264.549361] usb 3-1: new full-speed USB device number 7 using xhci_hcd
[113264.700647] usb 3-1: New USB device found, idVendor=0451, idProduct=16ae, bcdDevice=32.94
[113264.700655] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[113264.700659] usb 3-1: Product: CC2531 USB Dongle
[113264.700662] usb 3-1: Manufacturer: Texas Instruments

I don’t see any serial port

~$ ls -al /dev/tty*
crw-rw-rw- 1 root tty     5,  0 May 23 18:40 /dev/tty
crw--w---- 1 root tty     4,  0 May 22 11:19 /dev/tty0
crw--w---- 1 root tty     4,  1 May 22 11:19 /dev/tty1
crw--w---- 1 root tty     4, 10 May 22 11:19 /dev/tty10
crw--w---- 1 root tty     4, 11 May 22 11:19 /dev/tty11
crw--w---- 1 root tty     4, 12 May 22 11:19 /dev/tty12
crw--w---- 1 root tty     4, 13 May 22 11:19 /dev/tty13
crw--w---- 1 root tty     4, 14 May 22 11:19 /dev/tty14
crw--w---- 1 root tty     4, 15 May 22 11:19 /dev/tty15
crw--w---- 1 root tty     4, 16 May 22 11:19 /dev/tty16
crw--w---- 1 root tty     4, 17 May 22 11:19 /dev/tty17
crw--w---- 1 root tty     4, 18 May 22 11:19 /dev/tty18
crw--w---- 1 root tty     4, 19 May 22 11:19 /dev/tty19
crw--w---- 1 root tty     4,  2 May 22 11:19 /dev/tty2
crw--w---- 1 root tty     4, 20 May 22 11:19 /dev/tty20
crw--w---- 1 root tty     4, 21 May 22 11:19 /dev/tty21
crw--w---- 1 root tty     4, 22 May 22 11:19 /dev/tty22
crw--w---- 1 root tty     4, 23 May 22 11:19 /dev/tty23
crw--w---- 1 root tty     4, 24 May 22 11:19 /dev/tty24
crw--w---- 1 root tty     4, 25 May 22 11:19 /dev/tty25
crw--w---- 1 root tty     4, 26 May 22 11:19 /dev/tty26
crw--w---- 1 root tty     4, 27 May 22 11:19 /dev/tty27
crw--w---- 1 root tty     4, 28 May 22 11:19 /dev/tty28
crw--w---- 1 root tty     4, 29 May 22 11:19 /dev/tty29
crw--w---- 1 root tty     4,  3 May 22 11:19 /dev/tty3
crw--w---- 1 root tty     4, 30 May 22 11:19 /dev/tty30
crw--w---- 1 root tty     4, 31 May 22 11:19 /dev/tty31
crw--w---- 1 root tty     4, 32 May 22 11:19 /dev/tty32
crw--w---- 1 root tty     4, 33 May 22 11:19 /dev/tty33
crw--w---- 1 root tty     4, 34 May 22 11:19 /dev/tty34
crw--w---- 1 root tty     4, 35 May 22 11:19 /dev/tty35
crw--w---- 1 root tty     4, 36 May 22 11:19 /dev/tty36
crw--w---- 1 root tty     4, 37 May 22 11:19 /dev/tty37
crw--w---- 1 root tty     4, 38 May 22 11:19 /dev/tty38
crw--w---- 1 root tty     4, 39 May 22 11:19 /dev/tty39
crw--w---- 1 root tty     4,  4 May 22 11:19 /dev/tty4
crw--w---- 1 root tty     4, 40 May 22 11:19 /dev/tty40
crw--w---- 1 root tty     4, 41 May 22 11:19 /dev/tty41
crw--w---- 1 root tty     4, 42 May 22 11:19 /dev/tty42
crw--w---- 1 root tty     4, 43 May 22 11:19 /dev/tty43
crw--w---- 1 root tty     4, 44 May 22 11:19 /dev/tty44
crw--w---- 1 root tty     4, 45 May 22 11:19 /dev/tty45
crw--w---- 1 root tty     4, 46 May 22 11:19 /dev/tty46
crw--w---- 1 root tty     4, 47 May 22 11:19 /dev/tty47
crw--w---- 1 root tty     4, 48 May 22 11:19 /dev/tty48
crw--w---- 1 root tty     4, 49 May 22 11:19 /dev/tty49
crw--w---- 1 root tty     4,  5 May 22 11:19 /dev/tty5
crw--w---- 1 root tty     4, 50 May 22 11:19 /dev/tty50
crw--w---- 1 root tty     4, 51 May 22 11:19 /dev/tty51
crw--w---- 1 root tty     4, 52 May 22 11:19 /dev/tty52
crw--w---- 1 root tty     4, 53 May 22 11:19 /dev/tty53
crw--w---- 1 root tty     4, 54 May 22 11:19 /dev/tty54
crw--w---- 1 root tty     4, 55 May 22 11:19 /dev/tty55
crw--w---- 1 root tty     4, 56 May 22 11:19 /dev/tty56
crw--w---- 1 root tty     4, 57 May 22 11:19 /dev/tty57
crw--w---- 1 root tty     4, 58 May 22 11:19 /dev/tty58
crw--w---- 1 root tty     4, 59 May 22 11:19 /dev/tty59
crw--w---- 1 root tty     4,  6 May 22 11:19 /dev/tty6
crw--w---- 1 root tty     4, 60 May 22 11:19 /dev/tty60
crw--w---- 1 root tty     4, 61 May 22 11:19 /dev/tty61
crw--w---- 1 root tty     4, 62 May 22 11:19 /dev/tty62
crw--w---- 1 root tty     4, 63 May 22 11:19 /dev/tty63
crw--w---- 1 root tty     4,  7 May 22 11:19 /dev/tty7
crw--w---- 1 root tty     4,  8 May 22 11:19 /dev/tty8
crw--w---- 1 root tty     4,  9 May 22 11:19 /dev/tty9
crw------- 1 root root    5,  3 May 22 11:19 /dev/ttyprintk
crw-rw---- 1 root dialout 4, 64 May 22 11:19 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 May 22 11:19 /dev/ttyS1
crw-rw---- 1 root dialout 4, 74 May 22 11:19 /dev/ttyS10
crw-rw---- 1 root dialout 4, 75 May 22 11:19 /dev/ttyS11
crw-rw---- 1 root dialout 4, 76 May 22 11:19 /dev/ttyS12
crw-rw---- 1 root dialout 4, 77 May 22 11:19 /dev/ttyS13
crw-rw---- 1 root dialout 4, 78 May 22 11:19 /dev/ttyS14
crw-rw---- 1 root dialout 4, 79 May 22 11:19 /dev/ttyS15
crw-rw---- 1 root dialout 4, 80 May 22 11:19 /dev/ttyS16
crw-rw---- 1 root dialout 4, 81 May 22 11:19 /dev/ttyS17
crw-rw---- 1 root dialout 4, 82 May 22 11:19 /dev/ttyS18
crw-rw---- 1 root dialout 4, 83 May 22 11:19 /dev/ttyS19
crw-rw---- 1 root dialout 4, 66 May 22 11:19 /dev/ttyS2
crw-rw---- 1 root dialout 4, 84 May 22 11:19 /dev/ttyS20
crw-rw---- 1 root dialout 4, 85 May 22 11:19 /dev/ttyS21
crw-rw---- 1 root dialout 4, 86 May 22 11:19 /dev/ttyS22
crw-rw---- 1 root dialout 4, 87 May 22 11:19 /dev/ttyS23
crw-rw---- 1 root dialout 4, 88 May 22 11:19 /dev/ttyS24
crw-rw---- 1 root dialout 4, 89 May 22 11:19 /dev/ttyS25
crw-rw---- 1 root dialout 4, 90 May 22 11:19 /dev/ttyS26
crw-rw---- 1 root dialout 4, 91 May 22 11:19 /dev/ttyS27
crw-rw---- 1 root dialout 4, 92 May 22 11:19 /dev/ttyS28
crw-rw---- 1 root dialout 4, 93 May 22 11:19 /dev/ttyS29
crw-rw---- 1 root dialout 4, 67 May 22 11:19 /dev/ttyS3
crw-rw---- 1 root dialout 4, 94 May 22 11:19 /dev/ttyS30
crw-rw---- 1 root dialout 4, 95 May 22 11:19 /dev/ttyS31
crw-rw---- 1 root dialout 4, 68 May 22 11:19 /dev/ttyS4
crw-rw---- 1 root dialout 4, 69 May 22 11:19 /dev/ttyS5
crw-rw---- 1 root dialout 4, 70 May 22 11:19 /dev/ttyS6
crw-rw---- 1 root dialout 4, 71 May 22 11:19 /dev/ttyS7
crw-rw---- 1 root dialout 4, 72 May 22 11:19 /dev/ttyS8
crw-rw---- 1 root dialout 4, 73 May 22 11:19 /dev/ttyS9