ToastWithCheeze Posted September 26, 2022 Share Posted September 26, 2022 (edited) I Have an vm and i passthrough my conbee stick with usb manager plugin but i get this error on zigbee2mqtt Error: Error while opening serialport 'Error: Error: Operation not permitted, cannot open /dev/input/by-id/usb-QEMU_QEMU_USB_Tablet_28754-0000:00:07.7-2-event-mouse' Edited September 26, 2022 by ToastWithCheeze Typo Quote Link to comment
ToastWithCheeze Posted September 26, 2022 Author Share Posted September 26, 2022 Im using Unraid version 6.11.0 Quote Link to comment
Solution SimonF Posted September 26, 2022 Solution Share Posted September 26, 2022 1 hour ago, ToastWithCheeze said: Im using Unraid version 6.11.0 It should be a device with serial not tablet. /dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.7-4-if00-port0 Quote Link to comment
sjoerd Posted September 26, 2022 Share Posted September 26, 2022 (edited) Checkout this thread : And this thread has the answer: You need to hack into the vm's xml - It works as described * I removed the old hotplug usb addon and installed the usbmanager * copy past the xml snippet into the vm's xml devices node <serial type='dev'> <source path='/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_***-***'/> <target type='usb-serial' port='1'> <model name='usb-serial'/> </target> <alias name='serial1'/> <address type='usb' bus='0' port='4'/> </serial> * Hassio does not see it like you are used to but has the following format now: /dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-****:**:**.*-*-****-port0 (something like that). I assume zigbee2mqtt see it the same since it's how the vm (qemu) sees it now. Without the snippet Hassio detected the stick but could not connect (resulting in timeouts) * Also - not sure, but is the user that zigbee2mqtt is user allowed to access the serial port ? Edited September 26, 2022 by sjoerd Quote Link to comment
Erik Weisbrod Posted April 28, 2023 Share Posted April 28, 2023 (edited) I am moving my home assistant installation to my unraid server running on a vm. I used the snap shot function to move the installation. After I found this thread Installed the usb manager to pass through my conbee II stick to the home assistant. The stick shows up in the deconz app config but in deconz it is not connected and I also can´t connect it. Any idea what I am missing? Edit: I solved the problem on my own. Of course all the information was allready there. Maybe a little bit scattered for a rookie like me but I got it together. What I got worong was the fact that you need both the plugin "USB Manager" as well as the modification to the xml file. So for other rookies here is the way I did it. Also I would kindly ask the professionals in this forum to check this solution for mistakes. Get the plugin "USB Manager" and configure the conbee by clicking on the link in the first part of the line (marked in red). Configure it like in the next screen shot with the radio buttons toggled and assigned to the right vm. Then you need to get the id of your device by opening the console in unraid and type cd /dev/serial/by-id/, then enter. Next type ls. The part behind the "DE" except for the "@" is your id. You will need this in the next step. Edit your vm and toggle the xml view with the switch in the top right. Then search for the part where it says " </interface> " and after that put: <serial type='dev'> <source path='/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2XXXXXX-XXXX'/> <target type='usb-serial' port='1'> <model name='usb-serial'/> </target> <alias name='serial1'/> <address type='usb' bus='0' port='4'/> </serial> with your device id behind the "_Conbee_II_DE". Apply the changes and start the vm. Now you can enter the home assistant webserver and configure the deconz plugin by selecting your conbee stick and restart the plugin. Edited April 28, 2023 by Erik Weisbrod 3 3 Quote Link to comment
Pira Posted December 30, 2023 Share Posted December 30, 2023 On 4/28/2023 at 3:25 PM, Erik Weisbrod said: I am moving my home assistant installation to my unraid server running on a vm. I used the snap shot function to move the installation. After I found this thread Installed the usb manager to pass through my conbee II stick to the home assistant. The stick shows up in the deconz app config but in deconz it is not connected and I also can´t connect it. Any idea what I am missing? Edit: I solved the problem on my own. Of course all the information was allready there. Maybe a little bit scattered for a rookie like me but I got it together. What I got worong was the fact that you need both the plugin "USB Manager" as well as the modification to the xml file. So for other rookies here is the way I did it. Also I would kindly ask the professionals in this forum to check this solution for mistakes. Get the plugin "USB Manager" and configure the conbee by clicking on the link in the first part of the line (marked in red). Configure it like in the next screen shot with the radio buttons toggled and assigned to the right vm. Then you need to get the id of your device by opening the console in unraid and type cd /dev/serial/by-id/, then enter. Next type ls. The part behind the "DE" except for the "@" is your id. You will need this in the next step. Edit your vm and toggle the xml view with the switch in the top right. Then search for the part where it says " </interface> " and after that put: <serial type='dev'> <source path='/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2XXXXXX-XXXX'/> <target type='usb-serial' port='1'> <model name='usb-serial'/> </target> <alias name='serial1'/> <address type='usb' bus='0' port='4'/> </serial> with your device id behind the "_Conbee_II_DE". Apply the changes and start the vm. Now you can enter the home assistant webserver and configure the deconz plugin by selecting your conbee stick and restart the plugin. Worked like a charm, thank you 🙏 Quote Link to comment
Todilo Posted April 11 Share Posted April 11 (edited) I have tried this but it still wont configure ZHA. My settings I couldn't figure outif i should setup the usb icon or the screen icon. Both have the same values. With Connect as Serial Guest Port Number: 4 Then vm xaml: <serial type='dev'> <source path='/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2132783-if00'/> <target type='usb-serial' port='4'> <model name='usb-serial'/> </target> <alias name='serial1'/> <address type='usb' bus='0' port='4'/> </serial> <serial type='dev'> <source path='/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_Dxxxxxf00'/> <target type='usb-serial' port='4'> <model name='usb-serial'/> </target> <alias name='serial1'/> <address type='usb' bus='0' port='4'/> </serial> Not 100% sure which port to use for target and adress. In home assistant HA finds: /dev/ttyUSB0 - QEMU USB SERIAL, s/n: 1-0000:00:07.7-4 - QEMU Not sure if it is the correct thing but it does not work at least. Aything obvious error I make? Btw is the "USB manager hotplug" part of usb manager, I saw a reference of someone "removing it" but I can't find it as a separate plugin I have installed: Edited April 11 by Todilo Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.