Truenas Usb passthrough, conbee2 and zha

Hi and help!

Running Haos as a vm in truenas scale bluefin. I have been running pci-passthrough of the entire usb controller to get access to a conbee2 stick. Unfortunately that ment that no usb ports where available for the rest of the system. Now (with latest scale) usb-passthrough should be working. But no go.

When passing the conbee2 stick (usb-passthrough) to HA ZHA won’t pick it up. From what I can see the stick has the same “by-id” path as it had before, have checked that in “core.config_entries” and with “ls / dev /serial /*”. The conbee stick also shows up in the hardware section in HA.

As I understand it it should pick it back up where it was left of before with pci-pass as its the same stick/controller??

should any specific “controller-type” be chosen in truenas for the stick to passthrough??

Can somebody give me any advice?? What am I missing. Or do I just assume to much. As you might notice i dont know alot about these systems.

thank you

this is the error i get in the loggs.

Logger: homeassistant.components.zha.core.gateway
Source: components/zha/core/gateway.py:205
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 00:29:30 (1 occurrences)
Last logged: 00:29:30

Couldn’t start deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II coordinator (attempt 3 of 3)
Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/serial/serialposix.py”, line 322, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
OSError: [Errno 5] I/O error: ‘/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2400863-if00’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py”, line 205, in async_initialize
self.application_controller = await app_controller_cls.new(
File “/usr/local/lib/python3.10/site-packages/zigpy/application.py”, line 216, in new
await app.startup(auto_form=auto_form)
File “/usr/local/lib/python3.10/site-packages/zigpy/application.py”, line 190, in startup
await self.connect()
File “/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py”, line 80, in connect
await api.connect()
File “/usr/local/lib/python3.10/site-packages/zigpy_deconz/api.py”, line 275, in connect
self._uart = await zigpy_deconz.uart.connect(self._config, self)
File “/usr/local/lib/python3.10/site-packages/zigpy_deconz/uart.py”, line 134, in connect
_, protocol = await zigpy.serial.create_serial_connection(
File “/usr/local/lib/python3.10/site-packages/zigpy/serial.py”, line 37, in create_serial_connection
transport, protocol = await pyserial_asyncio.create_serial_connection(
File “/usr/local/lib/python3.10/site-packages/serial_asyncio/init.py”, line 448, in create_serial_connection
serial_instance = serial.serial_for_url(*args, **kwargs)
File “/usr/local/lib/python3.10/site-packages/serial/init.py”, line 90, in serial_for_url
instance.open()
File “/usr/local/lib/python3.10/site-packages/serial/serialposix.py”, line 325, in open
raise SerialException(msg.errno, “could not open port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 5] could not open port /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2400863-if00: [Errno 5] I/O error: ‘/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2400863-if00’

You can try Lost my zigbee integration - ConBee II - #10 by maro.

Than you. I’ll look in to that.